mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-17 07:50:29 +01:00
Merge pull request #92
This commit is contained in:
commit
9bd3f7d53f
|
@ -726,6 +726,23 @@ function default.register_mgv6_decorations()
|
|||
y_max = 30,
|
||||
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
|
||||
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
local p_pos = area:index(x,y,z)
|
||||
local content_id = data[p_pos]
|
||||
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
|
||||
else
|
||||
-- nope
|
||||
|
|
Loading…
Reference in New Issue
Block a user