mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Fix sugar cane growth rules: Surface, water dist.
- It also grows on coarse dirt, (red) sand, podzol - Water distance reduced to 1
This commit is contained in:
parent
fc02d0730e
commit
a7e40050d0
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ mcl_core.grow_reeds = function(pos, node)
|
|||
pos.y = pos.y-1
|
||||
local name = minetest.get_node(pos).name
|
||||
if minetest.get_node_group(name, "soil_sugarcane") ~= 0 then
|
||||
if minetest.find_node_near(pos, 3, {"group:water"}) == nil then
|
||||
if minetest.find_node_near(pos, 1, {"group:water"}) == nil then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y+1
|
||||
|
@ -135,7 +135,7 @@ minetest.register_abm({
|
|||
|
||||
minetest.register_abm({
|
||||
nodenames = {"mcl_core:reeds"},
|
||||
neighbors = {"mcl_core:dirt", "mcl_core:dirt_with_grass"},
|
||||
neighbors = {"group:soil_sugarcane"},
|
||||
interval = 25,
|
||||
chance = 10,
|
||||
action = function(pos)
|
||||
|
|
Loading…
Reference in a new issue