diff options
author | sfence <sfence.software@gmail.com> | 2021-06-20 17:21:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 17:21:35 +0200 |
commit | b10091be9b6b6c74a170b9444f856f83dd3fe952 (patch) | |
tree | c806e74b870be70fafe2323858bbd5bd4071f399 /doc/lua_api.txt | |
parent | 1805775f3d54043c3b1e75e47b9b85e3b12bab00 (diff) | |
download | minetest-b10091be9b6b6c74a170b9444f856f83dd3fe952.tar.gz minetest-b10091be9b6b6c74a170b9444f856f83dd3fe952.tar.bz2 minetest-b10091be9b6b6c74a170b9444f856f83dd3fe952.zip |
Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)
This check can be used by ABM to reduce CPU usage.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0c81ca911..ded416333 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4484,6 +4484,8 @@ Utilities -- degrotate param2 rotates in units of 1.5° instead of 2° -- thus changing the range of values from 0-179 to 0-240 (5.5.0) degrotate_240_steps = true, + -- ABM supports min_y and max_y fields in definition (5.5.0) + abm_min_max_y = true, } * `minetest.has_feature(arg)`: returns `boolean, missing_features` @@ -7187,6 +7189,11 @@ Used by `minetest.register_abm`. chance = 1, -- Chance of triggering `action` per-node per-interval is 1.0 / this -- value + + min_y = -32768, + max_y = 32767, + -- min and max height levels where ABM will be processed + -- can be used to reduce CPU usage catch_up = true, -- If true, catch-up behaviour is enabled: The `chance` value is |