How to run procedure every random tick update

Started by Michael Unrau on

Topic category: Help with modding (Java Edition)

Last seen on 20:41, 8. Aug 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to run procedure every random tick update

Hello, I am new to MCreator, I am on version 2021.1 and forge 1.16.5.  I am trying to make a fairly simple mod. I've been looking around on the forums here and on youtube and can't find an answer to this. I need the mod to run the procedure every random tick update, and i need the coordinates of the block its ticking. World update Trigger doesn't have coords of any blocks and player only uses player coords. Thank you for answering in advance.

Last seen on 20:02, 5. Dec 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, you could grab the…
Sun, 08/08/2021 - 04:49

Hello, you could grab the coordinates right above the player stands with a while loop until reachs a solid block. In this case you would use the "on player tick update". I think I grab the idea, but if you could give a example of what you want it would better for understanding