Fix oak trees never generating
This commit is contained in:
parent
c354424a7d
commit
6a596f5f11
@ -77,7 +77,7 @@ function default.grow_sapling(pos, variety)
|
|||||||
z = pos.z - 2
|
z = pos.z - 2
|
||||||
},
|
},
|
||||||
minetest.get_modpath("default")
|
minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts", "0", {}, false)
|
.. "/schematics/default_appletree.mts", "0", {}, false)
|
||||||
elseif variety == "oak" then
|
elseif variety == "oak" then
|
||||||
minetest.place_schematic(
|
minetest.place_schematic(
|
||||||
{
|
{
|
||||||
@ -86,12 +86,7 @@ function default.grow_sapling(pos, variety)
|
|||||||
z = pos.z - 2
|
z = pos.z - 2
|
||||||
},
|
},
|
||||||
minetest.get_modpath("default")
|
minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts", "0",
|
.. "/schematics/default_oaktree.mts", "0", {}, false)
|
||||||
{
|
|
||||||
["default:leaves"] = "default:leaves_oak",
|
|
||||||
["default:tree"] = "default:tree_oak",
|
|
||||||
["default:apple"] = "air"
|
|
||||||
}, false)
|
|
||||||
elseif variety == "birch" then
|
elseif variety == "birch" then
|
||||||
minetest.place_schematic(
|
minetest.place_schematic(
|
||||||
{
|
{
|
||||||
|
@ -413,7 +413,7 @@ minetest.register_decoration(
|
|||||||
biomes = {"Orchard"},
|
biomes = {"Orchard"},
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
schematic = minetest.get_modpath("default")
|
schematic = minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts",
|
.. "/schematics/default_appletree.mts",
|
||||||
y_min = 10,
|
y_min = 10,
|
||||||
y_max = 32000,
|
y_max = 32000,
|
||||||
})
|
})
|
||||||
@ -432,7 +432,7 @@ minetest.register_decoration(
|
|||||||
["default:apple"] = "air",
|
["default:apple"] = "air",
|
||||||
},
|
},
|
||||||
schematic = minetest.get_modpath("default")
|
schematic = minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts",
|
.. "/schematics/default_appletree.mts",
|
||||||
y_min = -32000,
|
y_min = -32000,
|
||||||
y_max = 32000,
|
y_max = 32000,
|
||||||
})
|
})
|
||||||
@ -477,7 +477,7 @@ minetest.register_decoration(
|
|||||||
["default:apple"] = "air",
|
["default:apple"] = "air",
|
||||||
},
|
},
|
||||||
schematic = minetest.get_modpath("default")
|
schematic = minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts",
|
.. "/schematics/default_appletree.mts",
|
||||||
y_min = -32000,
|
y_min = -32000,
|
||||||
y_max = 32000,
|
y_max = 32000,
|
||||||
})
|
})
|
||||||
@ -490,13 +490,8 @@ minetest.register_decoration(
|
|||||||
fill_ratio = 0.004,
|
fill_ratio = 0.004,
|
||||||
biomes = {"Wilderness"},
|
biomes = {"Wilderness"},
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
replacements = {
|
|
||||||
["default:leaves"] = "default:leaves_oak",
|
|
||||||
["default:tree"] = "default:tree_oak",
|
|
||||||
["default:apple"] = "air",
|
|
||||||
},
|
|
||||||
schematic = minetest.get_modpath("default")
|
schematic = minetest.get_modpath("default")
|
||||||
.. "/schematics/default_tree.mts",
|
.. "/schematics/default_oaktree.mts",
|
||||||
y_min = -32000,
|
y_min = -32000,
|
||||||
y_max = 32000,
|
y_max = 32000,
|
||||||
})
|
})
|
||||||
|
BIN
mods/default/schematics/default_oaktree.mts
Normal file
BIN
mods/default/schematics/default_oaktree.mts
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user