function default.grow_papyrus(pos, node)
pos.y = pos.y - 1
local name = minetest.get_node(pos).name
- if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
+ if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and
+ name ~= "default:sand" then
return
end
if not minetest.find_node_near(pos, 3, {"group:water"}) then
minetest.register_abm({
nodenames = {"default:papyrus"},
- neighbors = {"default:dirt", "default:dirt_with_grass"},
+ neighbors = {"default:dirt", "default:dirt_with_grass", "default:sand"},
interval = 50,
chance = 20,
action = function(...)
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
- y_min = 1,
+ y_min = 5,
y_max = 31000,
heat_point = 95,
humidity_point = 10,
--depth_water_top = ,
--node_water = "",
y_min = -112,
- y_max = 0,
+ y_max = 4,
heat_point = 95,
humidity_point = 10,
})
persist = 0.6
},
biomes = {"desert"},
- y_min = 2,
+ y_min = 5,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/large_cactus.mts",
flags = "place_center_x",
persist = 0.6
},
biomes = {"desert"},
- y_min = 2,
+ y_min = 5,
y_max = 31000,
decoration = "default:cactus",
height = 2,
- height_max = 5,
+ height_max = 5,
})
-- Papyrus