make a procedure happen randomly

Started by komila on

Topic category: Help with MCreator software

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a procedure happen randomly

How do I make a procedure happen randomly instead of depending on a specific action?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There are world triggers for…
Tue, 11/25/2025 - 20:35

There are world triggers for "entity tick update," "player tick update," and "world tick update" that you can use. Just check if a random number between 1 and 10, 100, 10, 100, 1000 etc (depending on how rare you want it to be) is equal to 1, and if you want a cooldown, you can make a world variable clock and just check at the beginning of the procedure if the cooldown is done.