1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Updated homedecor and plantlife

- New coloured signs
This commit is contained in:
LeMagnesium
2015-06-27 18:37:21 +02:00
parent b7f4a01d4d
commit d66bc2a416
5 changed files with 68 additions and 4 deletions

View File

@ -110,11 +110,17 @@ minetest.register_node("ferns:tree_fern_leaves_giant", {
not_in_creative_inventory=1
},
drop = {
max_items = 1,
max_items = 2,
items = {
{
-- occasionally, drop a second sapling instead of leaves
-- (extra saplings can also be obtained by replanting and
-- reharvesting leaves)
items = {"ferns:sapling_giant_tree_fern"},
rarity = 10,
},
{
items = {"ferns:sapling_giant_tree_fern"},
rarity = 40,
},
{
items = {"ferns:tree_fern_leaves_giant"},

View File

@ -18,7 +18,11 @@ abstract_ferns.grow_tree_fern = function(pos)
return
end
local size = math.random(1, 5)
local size = math.random(1, 4) + math.random(1, 4)
if (size > 5) then
size = 10 - size
end
size = size + 1
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
local i = 1