Wait Function Found

Started by 8BitBunnie on

Topic category: Help with MCreator software

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait Function Found

Hey there! you're probably one of  the many people who need a wait function in Mcreator, and have looked almost everywhere for one. well there is one! it's just under the "Flow control" Tab when you're making a procedure. if you scroll all the way to the bottom, you'll see a "Wait 20 ticks then on server-side do" block! you can change the amount of ticks to anything and it'll work!

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For anyone who sees this 20…
Wed, 03/09/2022 - 18:40

For anyone who sees this 20 ticks = 1 second!

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But for me if i do use it…
Mon, 03/14/2022 - 18:19

But for me if i do use it absolutely nothing happens when i use it in like

When block is broken by player do:

Wait 1200 ticks on server side

Place (Block) on X Y Z 

 

and when i test it nothing happens

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For me it works, but not…
Tue, 02/20/2024 - 15:42

For me it works, but not with local variables, at least to my knowledge. Can someone give a solution/alternative? (for context im trying to set the players hp to a local variable's value)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I personally don't use local…
Mon, 03/18/2024 - 03:13

I personally don't use local variables, (although I'm sure they can be useful in certain situations) and although I may be biased, I'd recommend just using a global variable instead

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global variables break it.
Mon, 12/16/2024 - 22:29

Global variables break it.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Technically yes, but it won…
Mon, 07/21/2025 - 11:27

Technically yes, but it won't do what you want it to. Anything in the wait block will still run 20 times per second (on player tick update) but its start will be delayed by the time in the wait block. I would recommend looking up a variable counter, an nbt counter, or a potion timer instead.