need help to figure out bug

Post Reply
icser
New member
Posts: 6
Joined: Tue Oct 04, 2022 15:05
GitHub: icser303
In-game: icser

need help to figure out bug

by icser » Post

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

User avatar
cx384
Member
Posts: 653
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: need help to figure out bug

by cx384 » Post

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.

Code: Select all

local res = minetest.get_craft_result({method = "cooking", items = {"3d_armor:boots_nether"}})
print(res.item)
Can your read this?

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: need help to figure out bug

by AiTechEye » Post

the code is working, but it seems like the item "3d_armor:boots_nether" doesn't exists

icser
New member
Posts: 6
Joined: Tue Oct 04, 2022 15:05
GitHub: icser303
In-game: icser

Re: need help to figure out bug

by icser » Post

Thanks it works now

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests