mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-11-05 18:00:34 +01:00
d21d4d2fb4
(planks and trunks are already covered by default mod via wood and tree groups).
66 lines
1.3 KiB
Lua
66 lines
1.3 KiB
Lua
|
|
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"}
|
|
}
|
|
})
|
|
|
|
|