/schedule
op 2Technical/schedule queues a function for later. A function that schedules itself is the standard way to build a repeating loop without a command block.
Command2 to fix
20
- Function is required.
- Delay is required.
Press C to copy
Function is required.
Delay is required.
optional
Examples
- In 5 seconds
/schedule function my_pack:tick 5s - Cancel it
/schedule clear my_pack:tick
Common questions about /schedule
›What is the difference between replace and append?
replace cancels any existing schedule for that function and sets a new one. append adds another, so it can be queued several times over.
›Do schedules survive a restart?
Yes. Pending schedules are saved with the world.