How to make random things happen when player spawned

Started by Happy_AlexRO on

Topic category: Help with modding (Java Edition)

Last seen on 16:04, 18. Jul 2023
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.

Last seen on 22:34, 11. Feb 2023
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.