minetest.register_craft({
type = "cooking",
output = "nether:nether_ingot 4",
recipe = "3d_armor:boots_nether",
cooktime = 50,
})
I wrote this code for a mod but still the boot is still not cookable. Can anyone please help me to correct the bug.
thanks in advance
need help to figure out bug
Re: need help to figure out bug
Your cooktime is a bit high, maybe it just takes very long. The default cooktime is 3, I think.
Otherwise try to debug it with minetest.get_craft_result.
e.g.
Otherwise try to debug it with minetest.get_craft_result.
e.g.
Code: Select all
local res = minetest.get_craft_result({method = "cooking", items = {"3d_armor:boots_nether"}})
print(res.item)
Can your read this?
Re: need help to figure out bug
the code is working, but it seems like the item "3d_armor:boots_nether" doesn't exists
Re: need help to figure out bug
Thanks it works now
Who is online
Users browsing this forum: No registered users and 10 guests