Help with Random Events

Started by FreddyFoxGam3r on

Topic category: Help with modding (Java Edition)

Last seen on 19:41, 25. Mar 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Random Events

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:
  • 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 19:41, 25. Mar 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • MCreator plugins:
  • Comments:
glad i could help
Thu, 02/18/2021 - 15:23

glad i could help

Last seen on 19:41, 25. Mar 2024
Joined Sep 2019
Points:

User statistics:

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

:)

Last seen on 14:10, 26. Jan 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FreddyFoxGam3r, can you tell…
Thu, 09/14/2023 - 04:57

FreddyFoxGam3r, can you tell me how you did random event thing, please

Last seen on 09:00, 9. Dec 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah me too please
Mon, 11/27/2023 - 20:56

yeah me too please