mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Add a second huge jungle tree schematic, tweak the 1st one
This commit is contained in:
parent
4d63d5b36d
commit
427eb32448
@ -629,8 +629,10 @@ end
|
|||||||
-- Generate huge jungle tree with 2×2 trunk.
|
-- Generate huge jungle tree with 2×2 trunk.
|
||||||
-- With pos being the lower X and the higher Z value of the trunk.
|
-- With pos being the lower X and the higher Z value of the trunk.
|
||||||
function mcl_core.generate_huge_jungle_tree(pos)
|
function mcl_core.generate_huge_jungle_tree(pos)
|
||||||
|
-- 2 variants
|
||||||
|
local r = math.random(1, 2)
|
||||||
local path = minetest.get_modpath("mcl_core") ..
|
local path = minetest.get_modpath("mcl_core") ..
|
||||||
"/schematics/mcl_core_jungle_tree_huge.mts"
|
"/schematics/mcl_core_jungle_tree_huge_"..r..".mts"
|
||||||
minetest.place_schematic({x = pos.x - 6, y = pos.y - 1, z = pos.z - 7}, path, "random", nil, false)
|
minetest.place_schematic({x = pos.x - 6, y = pos.y - 1, z = pos.z - 7}, path, "random", nil, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Binary file not shown.
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_jungle_tree_huge_1.mts
Normal file
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_jungle_tree_huge_1.mts
Normal file
Binary file not shown.
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_jungle_tree_huge_2.mts
Normal file
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_jungle_tree_huge_2.mts
Normal file
Binary file not shown.
@ -1780,18 +1780,36 @@ local function register_decorations()
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Jungle tree
|
-- Jungle tree
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "schematic",
|
-- Huge jungle tree (2 variants)
|
||||||
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
for i=1, 2 do
|
||||||
sidelen = 80,
|
minetest.register_decoration({
|
||||||
fill_ratio = 0.0025,
|
deco_type = "schematic",
|
||||||
biomes = {"jungle"},
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
||||||
y_min = 4,
|
sidelen = 80,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
fill_ratio = 0.00125,
|
||||||
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree_huge.mts",
|
biomes = {"jungle"},
|
||||||
flags = "place_center_x, place_center_z",
|
y_min = 4,
|
||||||
rotation = "random",
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
})
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree_huge_"..i..".mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
rotation = "random",
|
||||||
|
})
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "schematic",
|
||||||
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
||||||
|
sidelen = 80,
|
||||||
|
fill_ratio = 0.004,
|
||||||
|
biomes = {"jungle_m"},
|
||||||
|
y_min = 4,
|
||||||
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree_huge_"..i..".mts",
|
||||||
|
flags = "place_center_x, place_center_z",
|
||||||
|
rotation = "random",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Common jungle tree
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
||||||
@ -1817,18 +1835,6 @@ local function register_decorations()
|
|||||||
rotation = "random",
|
rotation = "random",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "schematic",
|
|
||||||
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
|
||||||
sidelen = 80,
|
|
||||||
fill_ratio = 0.008,
|
|
||||||
biomes = {"jungle_m"},
|
|
||||||
y_min = 4,
|
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
|
||||||
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree_huge.mts",
|
|
||||||
flags = "place_center_x, place_center_z",
|
|
||||||
rotation = "random",
|
|
||||||
})
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
||||||
|
Loading…
Reference in New Issue
Block a user