Map block loading
This would be useful for mobs, map generation mods, etc.
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)
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)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- 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)