-- The recipe is only registered if mobs mod exist
if minetest.get_modpath("mobs") then
minetest.register_craft({
output = "backpacks:backpack_leather",
recipe = {
{"mobs:leather", "mobs:leather", "mobs:leather"},
{"mobs:leather", "", "mobs:leather"},
{"mobs:leather", "mobs:leather", "mobs:leather"},
}
})
end
taikedz wrote:Thanks for the suggestion
I've updated this so that the leather backpack and the recipe are both dependent on mobs
2017-01-21 19:27:36: WARNING[Main]: Undeclared global variable "mobs" accessed at .../minetest_game/mods/backpacks/init.lua:106
Users browsing this forum: No registered users and 10 guests