Started by
CozyOrSomething
on
Topic category: Help with Minecraft modding (Java Edition)
What it says on the tin. How can I make a block run a procedure every tick? The "on tick update" and "on random client display tick" fields for procedures don't work.
You can use "on tick update" if you set the block's tick rate to 1 under advanced properties, so long as the block doesn't naturally generate in the world. Getting a naturally-generated block to tick (outside of random ticks, which probably aren't what you're trying to do) is complicated, and I don't fully remember the exact process right now. (I think it has something to do with spawning it in an nbt structure-based feature with falling sand entity above it)
Also, if you change a block's tick rate, sometimes blocks that you already have placed in a world won't tick until you break and replace them.
Alright, didn't think I'd need to mention this, but lo and behold. The specific type of block I'm trying to run these procedures with is a plant, which doesn't allow you to add tick rates to. I've already tried adding a tick rate to a normal block and copying it over in code, but the tick rate doesn't show up in the normal block's code.
Unfortunately, I don't know how to make a plant tick regularly.