Skip to content

Wait

wait {time} [random]

Also searchable as: Wait · delay · pause script

wait pauses the script.

Parameter Meaning
time How long. A time is a number of ticks of 50 ms (20 is one second), or a whole number of seconds followed by
s (5s).
random Optional. Up to this much longer, a different random amount each time. Same units.

For pauses in milliseconds, or shorter than one tick, use sleep. Pressing Stop ends a wait at once.

wait 20 ; 1 second
wait 5s ; 5 seconds
wait 2s 1s ; between 2 and 3 seconds
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.