forked from VoxeLibre/VoxeLibre
Tweak chorus flower aging
This commit is contained in:
parent
5e47bce74e
commit
af1465ab0c
|
@ -114,6 +114,7 @@ minetest.register_abm({
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local grown = false
|
||||||
if node_above.name == "air" and air_around then
|
if node_above.name == "air" and air_around then
|
||||||
local branching = false
|
local branching = false
|
||||||
local h = 0
|
local h = 0
|
||||||
|
@ -150,7 +151,6 @@ minetest.register_abm({
|
||||||
grow_chance = 20
|
grow_chance = 20
|
||||||
end
|
end
|
||||||
|
|
||||||
local grown = false
|
|
||||||
if grow_chance then
|
if grow_chance then
|
||||||
local new_flowers = {}
|
local new_flowers = {}
|
||||||
local r = math.random(1, 100)
|
local r = math.random(1, 100)
|
||||||
|
@ -190,10 +190,10 @@ minetest.register_abm({
|
||||||
grown = true
|
grown = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if not grown then
|
if not grown then
|
||||||
minetest.set_node(pos, {name = "mcl_end:chorus_flower_dead"})
|
minetest.set_node(pos, {name = "mcl_end:chorus_flower_dead"})
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue