diff --git a/mods/default/functions.lua b/mods/default/functions.lua index b2bf1e4..bf4ddb6 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -77,7 +77,7 @@ function default.grow_sapling(pos, variety) z = pos.z - 2 }, minetest.get_modpath("default") - .. "/schematics/default_tree.mts", "0", {}, false) + .. "/schematics/default_appletree.mts", "0", {}, false) elseif variety == "oak" then minetest.place_schematic( { @@ -86,12 +86,7 @@ function default.grow_sapling(pos, variety) z = pos.z - 2 }, minetest.get_modpath("default") - .. "/schematics/default_tree.mts", "0", - { - ["default:leaves"] = "default:leaves_oak", - ["default:tree"] = "default:tree_oak", - ["default:apple"] = "air" - }, false) + .. "/schematics/default_oaktree.mts", "0", {}, false) elseif variety == "birch" then minetest.place_schematic( { diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index b5935ef..c8ce824 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -413,7 +413,7 @@ minetest.register_decoration( biomes = {"Orchard"}, flags = "place_center_x, place_center_z", schematic = minetest.get_modpath("default") - .. "/schematics/default_tree.mts", + .. "/schematics/default_appletree.mts", y_min = 10, y_max = 32000, }) @@ -432,7 +432,7 @@ minetest.register_decoration( ["default:apple"] = "air", }, schematic = minetest.get_modpath("default") - .. "/schematics/default_tree.mts", + .. "/schematics/default_appletree.mts", y_min = -32000, y_max = 32000, }) @@ -477,7 +477,7 @@ minetest.register_decoration( ["default:apple"] = "air", }, schematic = minetest.get_modpath("default") - .. "/schematics/default_tree.mts", + .. "/schematics/default_appletree.mts", y_min = -32000, y_max = 32000, }) @@ -490,13 +490,8 @@ minetest.register_decoration( fill_ratio = 0.004, biomes = {"Wilderness"}, 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") - .. "/schematics/default_tree.mts", + .. "/schematics/default_oaktree.mts", y_min = -32000, y_max = 32000, }) diff --git a/mods/default/schematics/default_tree.mts b/mods/default/schematics/default_appletree.mts similarity index 100% rename from mods/default/schematics/default_tree.mts rename to mods/default/schematics/default_appletree.mts diff --git a/mods/default/schematics/default_oaktree.mts b/mods/default/schematics/default_oaktree.mts new file mode 100644 index 0000000..bfdccb5 Binary files /dev/null and b/mods/default/schematics/default_oaktree.mts differ