]> git.lizzy.rs Git - minetest.git/commitdiff
Use default values from cpp_api/s_env.cpp for register_abm in lua_api.txt (#13163)
authorveprogames <75524847+veprogames@users.noreply.github.com>
Sat, 21 Jan 2023 08:43:20 +0000 (09:43 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Jan 2023 08:43:20 +0000 (09:43 +0100)
doc/lua_api.txt

index de0517d42d6a75b41875d8b08d8dbe0d58ddb6fd..61743e5f432a08ffb84bb3b1dc9c1cffba13ce7d 100644 (file)
@@ -7941,12 +7941,11 @@ Used by `minetest.register_abm`.
         -- If left out or empty, any neighbor will do.
         -- `group:groupname` can also be used here.
 
-        interval = 1.0,
+        interval = 10.0,
         -- Operation interval in seconds
 
-        chance = 1,
-        -- Chance of triggering `action` per-node per-interval is 1.0 / this
-        -- value
+        chance = 50,
+        -- Chance of triggering `action` per-node per-interval is 1.0 / chance
 
         min_y = -32768,
         max_y = 32767,