Make A Block Run A Procedure Every Tick

Started by CozyOrSomething on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make A Block Run A Procedure Every Tick

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.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use "on tick update"…
Tue, 03/03/2026 - 21:14

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.

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, didn't think I'd…
Wed, 03/04/2026 - 01:35

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.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately, I don't know…
Wed, 03/04/2026 - 22:30

Unfortunately, I don't know how to make a plant tick regularly.