random events?

Started by scaryclown on Sat, 06/13/2020 - 20:23

Topic category: Help with modding (Java Edition)

Last seen on 13:04, 19. Jun 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
random events?
Sat, 06/13/2020 - 20:23

any tips on how to make random events, i.e, between every 2 to 6 minecraft days, a horde of zombies spawn near the player etc.

Last seen on 23:27, 4. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
On player tick update create…
Sun, 06/14/2020 - 07:51

On player tick update create a timer, whole days in minecraft are around 1200sec, IF logic nbt = false DO day = 2400+round rand*1200+...+round rand*1200 until there is chance from 2 to 6 days, set logic nbt to true. IF time>day DO spawn zombies and set logic nbt to false and time to 0 to restart the procedure for another wave

I suggest you check our…
Sun, 06/14/2020 - 18:17

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