Posted December 4, 20204 yr I have some values attached to chunks through capabilities, and I would like to update this values on every tick (if there is a more commom, stantard, efficient way of doing this I'd like to know). I've tried subscribing to the TickEvent, but the event doesn't have a reference to the world, I could use Minecraft.getInstance().world, but I heard that that can break the server. So how should go about implementing this
December 4, 20204 yr TickEvent has multiple sub events, in this case you should use WorldTickEvent which provides the world instance.
December 4, 20204 yr Author 9 minutes ago, poopoodice said: TickEvent has multiple sub events, in this case you should use WorldTickEvent which provides the world instance. ohh Okay, when I typed TickEvent, intellisense didn't show the other events, only TickEvent.
December 4, 20204 yr They are located inside TickEvent. https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html
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.