How to make random things happen when player spawned

Started by Happy_AlexRO on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make random things happen when player spawned

So, I want to recreate minecraft ERR422 into a mod. In ERR422, random wierd things happen after some time when the player joins the game. How can I do that in MCreator? For example, when the player joins, I want to choose a random amount of ticks to wait, then it will choose random between spawning a glitched entity or giving the player a random potion effect.

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a procedure that…
Thu, 02/03/2022 - 20:07

create a procedure that triggers on player tick update, which uses a variable that increases every tick, then checks if the variable is greater or equal to x amount, and if so, reset the variable to 0, and then randomly spawns your entity or potion effect.