Skip to content
Snippets Groups Projects
Commit a0e98c68 authored by Milan's avatar Milan
Browse files

update redwood_tree.mts

use individual redwood_tree decoration function
update y for redwood_tree placement from sapling
update node check for redwood sapling
parent 36fd52a0
No related merge requests found
......@@ -191,7 +191,18 @@ local add_schem = function(a, b, c, d, e, f, g)
end
-- redwood tree
add_schem({"ethereal:mesa_dirt"}, 0.0025, {"mesa"}, 1, 100, path .. "redwood.mts", ethereal.mesa)
minetest.register_decoration({
deco_type = "schematic",
place_on = {"ethereal:mesa_dirt"},
sidelen = 80,
fill_ratio = 0.0025,
biomes = mesa,
rotation = "random",
y_min = 1,
y_max = 100,
schematic = path .. "redwood_tree.mts",
flags = "place_center_y",
})
-- banana tree
add_schem({"ethereal:grove_dirt"}, 0.015, {"grove"}, 1, 100, ethereal.bananatree, ethereal.grove)
......
......@@ -107,11 +107,7 @@ function ethereal.grow_willow_tree(pos)
end
function ethereal.grow_redwood_tree(pos)
if math.random(1, 2) == 1 then
ethereal.add_tree(pos, 9, 3, 9, path .. "redwood.mts") -- shinji
else
ethereal.add_tree(pos, 8, 6, 8, path .. "redwood_tree.mts") -- iska
end
ethereal.add_tree(pos, 8, 34, 8, path .. "redwood_tree.mts") -- iska
end
function ethereal.grow_orange_tree(pos)
......@@ -189,7 +185,7 @@ ethereal.grow_sapling = function (pos, node)
ethereal.grow_willow_tree(pos)
elseif node.name == "ethereal:redwood_sapling"
and under == "bakedclay:red" then
and under == "ethereal:mesa_dirt" then
ethereal.grow_redwood_tree(pos)
elseif node.name == "ethereal:orange_tree_sapling"
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment