Posted August 29, 20196 yr Hi I'm going to try and tackle chunk loading now, and I would like to start with just a block that loads the chunk it is present in. It looks like I need to use ForgeChunkManager, but I can't find it for some reason. And then I'm not really sure how to use it. ChunkLoaderBaseTileEntity.java Spoiler public class ChunkLoaderBaseTileEntity extends TileEntity implements ITickableTileEntity { public ChunkLoaderBaseTileEntity() { super(IntercraftTileEntities.CHUNKLOADER); } @Override public void tick() { if (world.isRemote) return; BlockState state = getBlockState(); if (!state.get(BlockProperties.ACTIVE)) return; Chunk chunk = world.getChunkAt(pos); } } Edited August 29, 20196 yr by Simon_kungen Updated to 1.14.4
August 29, 20196 yr Author Not sure if it's taboo about talking about it here, but this Fabric mod is the only example which does not use the ForgeChunkManager. But I'm not even sure how that mod does the loading of the chunk, even after reading through the entire project, I narrowed it down to that line. I also updated to 1.14.4 to rule out possible update implementing it again (mappings_version=20190806-1.14.3, forge_version=28.0.49).
September 1, 20196 yr Author The closest in vanilla that does Chunkloading would probably be the forceload command. But it does only load it has a lazy chunk, which is probably going to be its own separate Chunkloader type. I'm currently deciphering the command so it can be applied to my own Chunkloader type, but I still need a Chunkloader which can process entities.
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.