merge the functions.lua update

functions.lua :
- abm des cactus et papyrus modifiées (la pousse est plus lente)
- abm des papyrus modifiée (ne pousse que sur la dirt/dirt with grass)

(Le reste c’est des prises de Carbone)
This commit is contained in:
Ombridride 2014-12-09 13:32:48 +01:00
parent b0871dfe0f
commit c1043f0120
1 changed files with 8 additions and 8 deletions

View File

@ -144,7 +144,7 @@ end
minetest.register_abm({
nodenames = {"default:lava_flowing"},
neighbors = {"group:water"},
interval = 1,
interval = 2,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
default.cool_lava_flowing(pos, node, active_object_count, active_object_count_wider)
@ -154,7 +154,7 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:lava_source"},
neighbors = {"group:water"},
interval = 1,
interval = 2,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
default.cool_lava_source(pos, node, active_object_count, active_object_count_wider)
@ -168,8 +168,8 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:cactus"},
neighbors = {"group:sand"},
interval = 50,
chance = 20,
interval = 30,
chance = 25,
action = function(pos, node)
pos.y = pos.y-1
local name = minetest.get_node(pos).name
@ -192,8 +192,8 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:papyrus"},
neighbors = {"default:dirt", "default:dirt_with_grass"},
interval = 50,
chance = 20,
interval = 30,
chance = 25,
action = function(pos, node)
pos.y = pos.y-1
local name = minetest.get_node(pos).name
@ -254,8 +254,8 @@ minetest.register_abm({
nodenames = {"group:leafdecay"},
neighbors = {"air", "group:liquid"},
-- A low interval and a high inverse chance spreads the load
interval = 2,
chance = 5,
interval = 1,
chance = 2,
action = function(p0, node, _, _)
--print("leafdecay ABM at "..p0.x..", "..p0.y..", "..p0.z..")")