How to repeat a procedure every certain amount of ticks

Started by Hyper Toast on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to repeat a procedure every certain amount of ticks

I have a keybind that when pressed will have a random chance to increase a variable by 1, plus it adds slowness as long as you hold the key, I want it where as long as you hold the key it  repeats that chance to increase variable, kinda like how poison works and it repeats dmg every certain amount of ticks.

The easiest would be some…
Tue, 07/25/2023 - 11:11

The easiest would be some sort of counter.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei