1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Add forceloading

This commit is contained in:
Novatux 2014-01-11 17:54:00 +01:00
parent e21b29f422
commit 84b94eb198
9 changed files with 136 additions and 1 deletions

View file

@ -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