Posted October 31, 20159 yr How can I remotely load a chunk, or keep a chunk loaded? I've looked into ForgeChunkManager#forceChunk(ticket, chunk) but I can't seem to figure out how to use it. Could anyone provide an example, or point me in the right direction? Thanks in advance. I'm Fisk, but people tend to call me "you" or "the TransformersMod guy".
November 2, 20159 yr Hey there in my mod I have a basic one chunk chunk loader and a complex quarry chunk loader that loads the block the quarry is in and the block it is currently digging in order to prevent massive updates when returning to the area. Here are the parts, if you need more help feel free to ask. Chunk loading callback registered in postinit in main mod class : @EventHandler public void postInit(FMLPostInitializationEvent event) { ForgeChunkManager.setForcedChunkLoadingCallback(instance, new AdvancedUtilitiesChunkLoadCallback()); https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/AdvancedUtilitiesChunkLoadCallback.java Tileentity Chunk loader : https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/tileentity/TileEntityChunkLoader.java Tile Entity quarry: https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/tileentity/TileEntitySteamQuarry.java
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.