Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 by Simon_kungen
Updated to 1.14.4

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

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.