How to make a event on a certain in-game time

Started by gustavowizard123 on

Topic category: Help with modding (Java Edition)

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a event on a certain in-game time

 

Im trying to make a very simple procedure here; to make my alarm clock ring in-game at the morning (set time 0 ingame)

the procedure is linked to a block on Tick Update:  But it wont work, nothing happens, whats im missing here? Thanks!

 

a

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try putting in print or chat…
Fri, 07/17/2020 - 07:21

try putting in print or chat code block to see if the procedure is being triggered.

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its not being triggered…
Fri, 07/17/2020 - 21:59

its not being triggered since the sound dont play at time = 0, i looked that procedure, but its to send a message i think, the part i need its just like it.. or i have to set like Get current world time > 0 AND Get current world time < 1000 for example? but would that not making the sound play over and over?

 

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe i need a time interval…
Fri, 07/17/2020 - 23:17

maybe i need a time interval? like 0 - 40 ticks for example, if my sound is 2 seconds long? (20 tick/sec)

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah i was right on my code…
Sat, 07/18/2020 - 06:11

yeah i was right on my code there there was not time enough to trigger the event, i changed the Get Current World Time = 0 to

 

Get Current World Time  > 0  AND Get Current World Time  < 140   (140 ticks = 7 seconds; the time of my sound), so its working perfect now ;)

Last seen on 19:23, 17. May 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did it that way but it…
Sun, 04/11/2021 - 04:53

I did it that way but it didn't work :(

https://ibb.co/VVjZ85W