Correct growth height

master
Starbeamrainbowlabs 2020-05-28 21:48:16 +01:00
parent 16798eeed2
commit 9090aba92d
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
This mod adds a simple fast-growing bamboo plant to Minetest.
- It grows up to ~24 blocks tall, or as low as 4 blocks tall
- It grows up to 25 blocks tall, or as low as 4 blocks tall
- Every 45 seconds it has a 1 in 4 chance of of growing
- It requires an air node above it in order to grow
- Breaking a lower node in the plant causes all the upper ones to break too

View File

@ -30,7 +30,7 @@ minetest.register_node("bamboo:bamboo", {
-- Randomly set param2 to vary the eventual height it grows to, but only if it hasn't been set already
local node = minetest.get_node(pos)
if node.param2 == 0 then
node.param2 = math.random(0, 20)
node.param2 = math.random(0, 21)
minetest.set_node(pos, node)
end
end