aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-10-13 05:17:33 +0100
committerparamat <mat.gregory@virginmedia.com>2015-10-18 16:42:59 +0100
commit3b9f99e0d61957c571ba857301d58ad29fb44527 (patch)
treee42aca267416df268d0e971b73c1db4a7e6358fe /doc
parent2364449d7a173086c2681eae267b32e5c1596b00 (diff)
downloadminetest-3b9f99e0d61957c571ba857301d58ad29fb44527.tar.gz
minetest-3b9f99e0d61957c571ba857301d58ad29fb44527.tar.bz2
minetest-3b9f99e0d61957c571ba857301d58ad29fb44527.zip
ABMs: Make catch-up behaviour optional
Default is true for backwards compatibility Update lua_api.txt
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index f0f70d073..489154fb3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3063,10 +3063,14 @@ Definition tables
{
-- In the following two fields, also group:groupname will work.
nodenames = {"default:lava_source"},
- neighbors = {"default:water_source", "default:water_flowing"}, -- (any of these)
- -- ^ If left out or empty, any neighbor will do
- interval = 1.0, -- (operation interval)
- chance = 1, -- (chance of trigger is 1.0/this)
+ neighbors = {"default:water_source", "default:water_flowing"}, -- Any of these --[[
+ ^ If left out or empty, any neighbor will do ]]
+ interval = 1.0, -- Operation interval in seconds
+ chance = 1, -- Chance of trigger per-node per-interval is 1.0 / this
+ catch_up = true, -- If true, catch-up behaviour is enabled --[[
+ ^ The chance value is temporarily reduced when returning to
+ an area to simulate time lost by the area being unattended.
+ ^ Note chance value can often be reduced to 1 ]]
action = func(pos, node, active_object_count, active_object_count_wider),
}