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