mirror of
https://github.com/mt-mods/moretrees.git
synced 2025-07-01 07:30:43 +02:00
weeded out all the old node and texture names from jungletree and conifers
mods, added aliases for backwards compatibility. All nodes are named moretrees:something_sapling, moretrees:something_trunk moretrees:something_leaves moretrees:something_planks Also, added sideways trunks for all trees and crafting recipes for them, plus added in the missing trunks -> planks recipes.
This commit is contained in:
88
crafts.lua
88
crafts.lua
@ -1,32 +1,96 @@
|
||||
--
|
||||
-- Conifers crafting definitions
|
||||
--
|
||||
|
||||
for i in ipairs(simple_trees) do
|
||||
minetest.register_craft({
|
||||
output = "moretrees:"..simple_trees[i].."_trunk_sideways 2",
|
||||
recipe = {
|
||||
{"moretrees:"..simple_trees[i].."_trunk", "moretrees:"..simple_trees[i].."_trunk"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "moretrees:"..simple_trees[i].."_trunk 2",
|
||||
recipe = {
|
||||
{"moretrees:"..simple_trees[i].."_trunk_sideways"},
|
||||
{"moretrees:"..simple_trees[i].."_trunk_sideways"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..simple_trees[i].."_planks 4",
|
||||
recipe = {
|
||||
"moretrees:"..simple_trees[i].."_trunk"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..simple_trees[i].."_planks 4",
|
||||
recipe = {
|
||||
"moretrees:"..simple_trees[i].."_trunk_sideways"
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
----
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'node "conifers:trunk_reversed" 2',
|
||||
output = "moretrees:jungletree_trunk_sideways 2",
|
||||
recipe = {
|
||||
{'node "conifers:trunk"', 'node "conifers:trunk"'},
|
||||
{"default:jungletree", "default:jungletree"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'node "conifers:trunk" 2',
|
||||
output = "default:jungletree 2",
|
||||
recipe = {
|
||||
{'node "conifers:trunk_reversed"'},
|
||||
{'node "conifers:trunk_reversed"'}
|
||||
{"moretrees:jungletree_trunk_sideways"},
|
||||
{"moretrees:jungletree_trunk_sideways"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:wood 4',
|
||||
output = "moretrees:jungletree_planks 4",
|
||||
recipe = {
|
||||
{'conifers:trunk'}
|
||||
{"default:jungletree"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:wood 4',
|
||||
output = "moretrees:jungletree_planks 4",
|
||||
recipe = {
|
||||
{'conifers:trunk_reversed'}
|
||||
{"moretrees:jungletree_trunk_sideways"}
|
||||
}
|
||||
})
|
||||
|
||||
----
|
||||
|
||||
minetest.register_craft({
|
||||
output = "conifers:trunk_reversed 2",
|
||||
recipe = {
|
||||
{"conifers:trunk", "conifers:trunk"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "conifers:trunk 2",
|
||||
recipe = {
|
||||
{"conifers:trunk_reversed"},
|
||||
{"conifers:trunk_reversed"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:wood 4",
|
||||
recipe = {
|
||||
{"conifers:trunk"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:wood 4",
|
||||
recipe = {
|
||||
{"conifers:trunk_reversed"}
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user