[Looking for help] How to make a chance every morning to get an event to occur

Started by VioletPyre on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Looking for help] How to make a chance every morning to get an event to occur

Hi! I have made a gamerule for an event, but i want it to have, say, 10% to activate every morning. For some reason i can't find anything that would make this happen.
I don't want it to Spam it like 23 times either. I just need it to run the procedure once



If someone could enlighten me, i'll be really happy c:
While waiting for a response, i'll still try some things here and there, if i find a solution before anyone else shows up, i'll post it here in case someone has the same issue.

Thanks for any help ~ <3

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The simplest way is to…
Thu, 10/20/2022 - 08:52

The simplest way is to generate a random number between 0 and 10 and check if it is less than 10.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry i explained myself…
Mon, 10/24/2022 - 06:13

Sorry i explained myself badly i think..

i know how to do randoms and stuff.

but i don’t know how to call that procedure only once the very second it turns day. 
If i have to, i might need to install some systems in-game.. but i’m trying to blend that kind of stuff inside the mod itself.

still, very appreciated <3

cheers