← Back to Command Directory ← Back to Home

/schedule

Queues a function to run after a delay.

Syntax

/schedule function <function> <time> [replace]

Parameters

NameRequiredDescription
functionYesFunction identifier.
timeYesDelay (ticks, seconds, or days).
replaceNoOverwrite existing scheduled run.

Examples

/schedule function mypack:reset 10s

Notes

Version Differences

Available in Java and Bedrock with slightly different syntax.

Related Commands