mirror of
https://github.com/mt-mods/moretrees.git
synced 2025-07-05 01:20:40 +02:00
Add setting to disable tree specific plank variants
Useful for games like Voxelgarden that have only one plank type with a generic plank crafting recipe. Disabling the planks implicitly disables stair and fence variants depending on these planks as well as the log to plank crafting recipe.
This commit is contained in:
16
crafts.lua
16
crafts.lua
@ -3,13 +3,15 @@ local S = minetest.get_translator("moretrees")
|
||||
for i in ipairs(moretrees.treelist) do
|
||||
local treename = moretrees.treelist[i][1]
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..treename.."_planks 4",
|
||||
recipe = {
|
||||
"moretrees:"..treename.."_trunk"
|
||||
}
|
||||
})
|
||||
if moretrees.enable_planks then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "moretrees:"..treename.."_planks 4",
|
||||
recipe = {
|
||||
"moretrees:"..treename.."_trunk"
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
|
Reference in New Issue
Block a user