Make sugar canes grow on more blocks
This commit is contained in:
parent
06f8ec3b25
commit
b513385e7b
3 changed files with 8 additions and 7 deletions
|
@ -77,7 +77,7 @@ end
|
|||
grow_reeds = function(pos, node)
|
||||
pos.y = pos.y-1
|
||||
local name = minetest.get_node(pos).name
|
||||
if name == "default:dirt" or name == "default:dirt_with_grass" then
|
||||
if minetest.get_node_group(name, "soil_sugarcane") ~= 0 then
|
||||
if minetest.find_node_near(pos, 3, {"group:water"}) == nil then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue