cucina_vegana/recipes_5xx.lua

38 lines
1.6 KiB
Lua
Raw Normal View History

2019-02-14 16:45:33 +01:00
-- *******************************************
-- ** Support for 5.0 **
-- *******************************************
2019-02-14 21:18:28 +01:00
local modname = minetest.get_current_modname()
2019-02-14 16:45:33 +01:00
local nodes = {}
nodes = { { name = "default:sand_with_kelp", -- Name
output = "cucina_vegana:vegan_sushi", -- Output
recipe = { -- Recipe
{"cucina_vegana:imitation_fish", "cucina_vegana:bowl_rice", ""},
{"default:sand_with_kelp", "", ""}
},
repclaements = nil -- Replacements
-- replacements = {{"cucina_vegana:molasses", "vessels:drinking_glass"}}
}
}
for node, value in ipairs(nodes) do
--print("[MT 5.x.x] Found " .. value.name .. " to register.")
if(minetest.registered_nodes[value.name] or minetest.registered_items[value.name]) then
minetest.register_craft({
output = value.output,
recipe = value.recipe,
replacements = replacements
})
2019-02-14 21:18:28 +01:00
minetest.log("info", "[MOD] " .. modname .. " Added a 5.x.x-Recipe with " .. value.name .. "\".")
2019-02-14 16:45:33 +01:00
print("[MT 5.x.x] " .. value.output .. " Recipe with " .. value.name .. " registered.")
end -- if(minetest.registered_nodes
end -- for node