How do I load a chunk if it is unloaded within a script?
For context: I'm building an addon that will give players a way to use their own hunger games maps with the system I'm building. No coding required (although you'll be more than free to make any changes you see fit given you have the know how) well anyways its going great, I have the core system for registering a map to work with the system along with how to receive the data in regards to chests, barriers and spawns (Among other things) But now comes the real work taking the data and using it to initialize a game. (filling chests with loot, placing barrier blocks, moving the players to spawn.)
My question: While doing this I realized that I can't seem to find a method under the dimension class for loading a chunk just for checking if it is loaded? Am I missing something? what's the best approach for this as I'll need to check if the chunk is loaded and if not I need to load it do what needs to be done there and then unload it for the sake of memory usage. I would like to design this to take longer rather than bog the system down and cause a huge lag spike. Any help is appreciated thanks in advance!