This is similar to an entities keep loaded pull request, but this is much more controllable.
(if map generation mods, ie dr who, want to generate a tardis at 0,-3000,0, then it wont work because it is unloaded)
Code: Select all
minetest.request_load_block(x,y,z)
minetest.register_on_unload_request(function(mapmanip,pos)
-- returns false/null if it is ok to unload this area, according to this mod
end)