I am working on a mod, which adds a machine. This machine uses a unique fuel, like the furnace's "fuel", but the name is "eng" (stands for Energy - this will be any Enmatter (energy-matter, high-energy-density fuel) found or created). However, trying to load Minetest results in an error, and minetest does not load. This is the error log from debug.txt:
[spoiler=Error (click to expand)]15:59:16: ERROR[main]: Error loading mod "morestuff2": LuaError: Unknown crafting definition type: "eng"
15:59:16: ERROR[main]: stack traceback:
15:59:16: ERROR[main]: [C]: in function 'register_craft'
15:59:16: ERROR[main]: C:\Minetest\bin\..\mods\morestuff2/segments/machine.lua:272: in main chunk
15:59:16: ERROR[main]: [C]: in function 'dofile'
15:59:16: ERROR[main]: C:\Minetest\bin\..\mods\morestuff2\init.lua:34: in main chunk
15:59:16: ERROR[main]: Server: Failed to load and run C:\Minetest\bin\..\mods\morestuff2\init.lua
15:59:16: ERROR[main]: ModError: Failed to load and run C:\Minetest\bin\..\mods\morestuff2\init.lua
[/spoiler]
I can tell that the issue lies with the crafting definition type, "eng". I have yet to find how "fuel" crafting definition type is registered, so how could I register the one I made, and thus fix this error?
Thank you.
EDIT: solved. It seems that the issue is with the crafting definition types simply being cary-overs from <0.4. What a shame.