mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-17 15:58:26 +01:00
Added "default:cherry_tree" to mapgen.
This commit is contained in:
parent
a0d0c7f00b
commit
54fae593fc
@ -726,6 +726,23 @@ function default.register_mgv6_decorations()
|
|||||||
y_max = 30,
|
y_max = 30,
|
||||||
decoration = "default:dry_shrub",
|
decoration = "default:dry_shrub",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Cherry tree
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = "default:dirt_with_grass",
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0,
|
||||||
|
scale = 0.005,
|
||||||
|
spread = {x=100, y=100, z=100},
|
||||||
|
seed = 278,
|
||||||
|
octaves = 2,
|
||||||
|
persist = 0.7
|
||||||
|
},
|
||||||
|
decoration = "default:mg_cherry_sapling",
|
||||||
|
height = 1,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
local p_pos = area:index(x,y,z)
|
local p_pos = area:index(x,y,z)
|
||||||
local content_id = data[p_pos]
|
local content_id = data[p_pos]
|
||||||
if content_id == c_mg_cherry_sapling then
|
if content_id == c_mg_cherry_sapling then
|
||||||
mapgen.grow_tree({x=x, y=y, z=z}, false, "default:cherry_tree", "default:cherry_blossom_leaves")
|
default.grow_cherry_tree({x=x, y=y, z=z}, false, "default:cherry_tree", "default:cherry_blossom_leaves")
|
||||||
trees_grown = trees_grown + 1
|
trees_grown = trees_grown + 1
|
||||||
else
|
else
|
||||||
-- nope
|
-- nope
|
||||||
|
Loading…
Reference in New Issue
Block a user