1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-11-10 20:30:35 +01:00
moretrees/crafts.lua

66 lines
1.3 KiB
Lua
Raw Normal View History

for i in ipairs(moretrees.treelist) do
treename = moretrees.treelist[i][1]
minetest.register_craft({
output = "moretrees:"..treename.."_trunk_sideways 2",
recipe = {
{"moretrees:"..treename.."_trunk", "moretrees:"..treename.."_trunk"}
}
})
minetest.register_craft({
output = "moretrees:"..treename.."_trunk 2",
recipe = {
{"moretrees:"..treename.."_trunk_sideways"},
{"moretrees:"..treename.."_trunk_sideways"}
}
})
minetest.register_craft({
type = "shapeless",
output = "moretrees:"..treename.."_planks 4",
recipe = {
"moretrees:"..treename.."_trunk"
}
})
minetest.register_craft({
type = "shapeless",
output = "moretrees:"..treename.."_planks 4",
recipe = {
"moretrees:"..treename.."_trunk_sideways"
}
})
minetest.register_craft({
type = "fuel",
recipe = "moretrees:"..treename.."_sapling",
burntime = 10,
})
end
minetest.register_craft({
type = "fuel",
recipe = "group:moretrees_leaves",
burntime = 1,
})
-- extra crafting in case user has old jungle trees.
minetest.register_craft({
output = "moretrees:jungletree_trunk_sideways 2",
recipe = {
{"default:jungletree", "default:jungletree"},
}
})
minetest.register_craft({
output = "moretrees:jungletree_planks 4",
recipe = {
{"default:jungletree"}
}
})