Help with Random Events

Started by FreddyFoxGam3r on Sun, 07/05/2020 - 16:34

Topic category: Help with modding (Java Edition)

Last seen on 15:38, 14. Jun 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with Random Events
Sun, 07/05/2020 - 16:34

I am trying to make it so that there is a 10% chance every night that an undead invasion will happen. I have already made the event work but it can only happen once and if you sleep in a bed the event is still happening.

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well for the sleep in bed…
Wed, 02/17/2021 - 22:19

well for the sleep in bed you can maybe add a new "fake" bed and when they sleep in it turn varible off ending the attack then for the code just do a check maybe every time a player trades with a villager and it is night time?

Last seen on 15:38, 14. Jun 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok, thank you! :)
Thu, 02/18/2021 - 07:53

Ok, thank you! :)

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
glad i could help
Thu, 02/18/2021 - 15:23

glad i could help

Last seen on 15:38, 14. Jun 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
:)
Thu, 02/18/2021 - 18:29

:)