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

Hello, 

I have a 'storage' attached to a chunk via capability, and I want this to update with the rest of Minecraft to modify it. Currently, I'm subscribed to onWorldTick and iterating through a list of chunks that have this storage attached to it, then calling an 'internal update' function to do this modification. This issue with this, however, all values update at the same time, I want them to update separately from each other as their values need to be changed (similar to how TE's work off different ticks). I looked into implementing ITickable, however, the update function is never called, presumably because it does not know my class exists. Is there any way to 'register' my tickable, or is there another way to achieve what I want?

 

Thank you.

1 hour ago, unassigned said:

similar to how TE's work off different ticks

They don't all TE's are ticked at the same time from the world being ticked.

 

1 hour ago, unassigned said:

I want them to update separately from each other as their values need to be changed

Generate a random number and determine if the update method is called from that?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

On 12/13/2018 at 9:49 AM, unassigned said:

is there another way to achieve what I want?

Not really, this is probably the best way.

 

On 12/13/2018 at 9:49 AM, unassigned said:

This issue with this, however, all values update at the same time, I want them to update separately from each other as their values need to be changed (similar to how TE's work off different ticks).

Could you please elaborate on the issue a bit more? It almost sounds like you are using static fields but I can't tell for sure.

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.