Posted October 24, 20231 yr How do I have a block run a function every few ticks while it is on the world? I have looked at the Hopper and Repeater blocks and I can't figure it out. It looks like the "tick" method on a Block is deprecated, but it doesn't say anything about what to replace it with.
October 28, 20231 yr Mojang marks methods as deprecated when you should not call them, overriding them is okay. But i would recommend you to use a BlockEntity instead. You can use the Beacon as an example (BeaconBlock & BeaconBlockEntity)
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.