Procedure SLEEP, TIMING ECT.

Started by ItsTaRealChewie on Fri, 08/14/2020 - 14:35

Topic category: Help with modding (Java Edition)

Last seen on 15:34, 12. Sep 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure SLEEP, TIMING ECT.
Fri, 08/14/2020 - 14:35

Alright, I've been trying to figure this out for awhile, but I've gotten nowhere.

Wondering if there's a way to set specific timing on procedures and stuff, example:

Say I make a block,

"When block broken"

Let's say I wanted to make it spawn xp orbs for 30 seconds

 

Or another example:

say I made a mob, and I wanted it to send chat messages when spawned

Send chat message "hi"

wait for 2 seconds

Send chat message "hi again"

 

Would i have to edit the code manually or is there a way I could do it by simply making procedures

One word: timers I suggest…
Fri, 08/14/2020 - 14:48

One word: timers

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

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
here is a example how to do…
Sat, 08/15/2020 - 00:24

here is a example how to do that:

(Set this procedure on your Entity - 'When entity spawns')  - 20 ticks = 1 second so 2 seconds is 40 ticks;

asas

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
the procedure will say 'hi'…
Sat, 08/15/2020 - 00:27

the procedure will say 'hi' when the entity spawn, then it will 'count' to 40 ticks, when it reach 40 it fires the other message, in this case it only make this once, but you can use 'when entity/block/item Ticks' to create loops and timers for machine sounds for example, and many many other things... i believe there is a way to do that without NBT tags, not sure how thou.

Last seen on 15:34, 12. Sep 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you, it worked
Wed, 08/19/2020 - 14:48

Thank you, it worked

Last seen on 15:34, 12. Sep 2021
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks!
Wed, 08/19/2020 - 14:50

Thanks!