mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 18:10:26 +01:00
commented our modiff
This commit is contained in:
parent
83ca6e934c
commit
56161ae978
|
@ -228,8 +228,8 @@ function default.grow_cactus(pos, node)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
local name = minetest.get_node(pos).name
|
local name = minetest.get_node(pos).name --MFF
|
||||||
if minetest.get_item_group(name, "sand") == 0 and name ~= "watershed:drygrass" then
|
if minetest.get_item_group(name, "sand") == 0 and name ~= "watershed:drygrass" then --MFF
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
|
@ -249,7 +249,7 @@ end
|
||||||
function default.grow_papyrus(pos, node)
|
function default.grow_papyrus(pos, node)
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
local name = minetest.get_node(pos).name
|
local name = minetest.get_node(pos).name
|
||||||
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and name ~= "default:sand" and name ~= "default:desert_sand" then
|
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and name ~= "default:sand" and name ~= "default:desert_sand" then --MFF
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not minetest.find_node_near(pos, 3, {"group:water"}) then
|
if not minetest.find_node_near(pos, 3, {"group:water"}) then
|
||||||
|
@ -271,7 +271,7 @@ end
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:cactus"},
|
nodenames = {"default:cactus"},
|
||||||
neighbors = {"group:sand", "watershed:drygrass"},
|
neighbors = {"group:sand", "watershed:drygrass"}, --MFF
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 25,
|
chance = 25,
|
||||||
action = function(...)
|
action = function(...)
|
||||||
|
@ -281,7 +281,7 @@ minetest.register_abm({
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:papyrus"},
|
nodenames = {"default:papyrus"},
|
||||||
neighbors = {"default:dirt", "default:dirt_with_grass", "default:sand", "default:desert_sand"},
|
neighbors = {"default:dirt", "default:dirt_with_grass", "default:sand", "default:desert_sand"}, --MFF
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 25,
|
chance = 25,
|
||||||
action = function(...)
|
action = function(...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user