I decided to add aluminium to the mod "MoreOres". Tools, ores, etc. works perfectly. Problem came when I wanted to add some aluminium items. I wanted to add aluminium bars, so I wrote that:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craftitem("moreores:aluminium_bars", {
description = "Aluminium bars",
inventory_image = {"moreores_aluminium_bars.png"},
})
And here is the craft recipe:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craft({
output="'moreores:aluminium_bars' 16",
recipe = {{"moreores:aluminium_ingot", "", ""},
{"moreores:aluminium_ingot", "", ""},
{"", "", ""}}
})
When I put 2 aluminium ingots together and craft them, I obtain an "unknown item". Pressing right button of the mouse when having the item in my hand makes the server broadcast this message: ERROR[ServerThread]:Item "moreores:aluminium_bars" not defined.
I tried to search if someone had this issue, but I couldn't find anything on the Internet. Any idea?
