How do I Load Chunk in all areas I want? without having players around? ~ API: 2.0.0 I tried but it does not work on this API https://github.com/Blugin/ChunkLoader-PMMP
Create a class that implements ChunkLoader, example MyChunkLoader Its best to store this somewhere and retrieve it later PHP: $this->chunkLoader = new MyChunkLoader(); Then do this for any chunk you want to keep loaded PHP: $level->registerChunkLoader($this->chunkLoader,$chunkX,$chunkZ);
I want to put it in a room, in a house, so things inside it continue to work, this would not stay in the whole room, what should I do?
Get the chunks the room is in and follow my last post $chunk = $level->getChunk($pos->x >> 4,$pos->z >> 4);
I did, but how can I determine a block that when I put it up it is loading the 16x16 Chunk? Close to the block.
For everything to work, we have to be close, and instead of a player being close, but a certain block?
You can save the positions of that block when it is placed then on LevelLoadEvent, register the chunkloader at those saved positions