From 84b94eb19804484b689cec441e175628fd10335f Mon Sep 17 00:00:00 2001 From: Novatux Date: Sat, 11 Jan 2014 17:54:00 +0100 Subject: Add forceloading --- doc/lua_api.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/lua_api.txt') 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 -- cgit v1.2.3