2013-01-22 02:31:28 +01:00
|
|
|
|
2013-02-12 04:07:40 +01:00
|
|
|
for i in ipairs(moretrees.treelist) do
|
|
|
|
treename = moretrees.treelist[i][1]
|
|
|
|
|
2013-01-22 02:31:28 +01:00
|
|
|
minetest.register_craft({
|
2013-02-12 04:07:40 +01:00
|
|
|
output = "moretrees:"..treename.."_trunk_sideways 2",
|
2013-01-22 02:31:28 +01:00
|
|
|
recipe = {
|
2013-02-12 04:07:40 +01:00
|
|
|
{"moretrees:"..treename.."_trunk", "moretrees:"..treename.."_trunk"}
|
2013-01-22 02:31:28 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2013-02-12 04:07:40 +01:00
|
|
|
output = "moretrees:"..treename.."_trunk 2",
|
2013-01-22 02:31:28 +01:00
|
|
|
recipe = {
|
2013-02-12 04:07:40 +01:00
|
|
|
{"moretrees:"..treename.."_trunk_sideways"},
|
|
|
|
{"moretrees:"..treename.."_trunk_sideways"}
|
2013-01-22 02:31:28 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-02-12 04:07:40 +01:00
|
|
|
output = "moretrees:"..treename.."_planks 4",
|
2013-01-22 02:31:28 +01:00
|
|
|
recipe = {
|
2013-02-12 04:07:40 +01:00
|
|
|
"moretrees:"..treename.."_trunk"
|
2013-01-22 02:31:28 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-02-12 04:07:40 +01:00
|
|
|
output = "moretrees:"..treename.."_planks 4",
|
2013-01-22 02:31:28 +01:00
|
|
|
recipe = {
|
2013-02-12 04:07:40 +01:00
|
|
|
"moretrees:"..treename.."_trunk_sideways"
|
2013-01-22 02:31:28 +01:00
|
|
|
}
|
|
|
|
})
|
2013-02-22 04:35:31 +01:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "moretrees:"..treename.."_sapling",
|
|
|
|
burntime = 10,
|
|
|
|
})
|
2013-01-22 02:31:28 +01:00
|
|
|
end
|
|
|
|
|
2013-02-22 04:35:31 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "group:moretrees_leaves",
|
|
|
|
burntime = 1,
|
|
|
|
})
|
|
|
|
|
2013-02-12 04:07:40 +01:00
|
|
|
-- extra crafting in case user has old jungle trees.
|
2013-01-22 02:31:28 +01:00
|
|
|
|
|
|
|
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"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|