Jump to content

[1.14.4] Chunk Loading


Recommended Posts



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.




public class ChunkLoaderBaseTileEntity extends TileEntity implements ITickableTileEntity

    public ChunkLoaderBaseTileEntity()

    public void tick()
        if (world.isRemote) return;

        BlockState state = getBlockState();
        if (!state.get(BlockProperties.ACTIVE)) return;

      	Chunk chunk = world.getChunkAt(pos);




Edited by Simon_kungen
Updated to 1.14.4
Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.