diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f4bc95786..4e73136de 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1590,6 +1590,15 @@ minetest.rotate_node(itemstack, placer, pointed_thing) the creative mode setting, and checks for "sneak" to set the invert_wall parameter. +minetest.forceload_block(pos) +^ forceloads the position pos. +^ returns true if area could be forceloaded + +minetest.forceload_free_block(pos) +^ stops forceloading the position pos. + +Please note that forceloaded areas are saved when the server restarts. + Global objects: minetest.env - EnvRef of the server environment and world. ^ Any function in the minetest namespace can be called using the syntax |