/schedule Command in Minecraft Java Edition

Delay and Clear Data Pack Functions

Java EditionLogic & ScoreboardPermission: Level 2Added in 1.14Bedrock version →

The /schedule command lets you set a timer to run a data pack function after a specific delay, or cancel a function that is already waiting to run. You can set the wait time using game ticks, seconds, or in-game days.

Map makers and server creators use this command to create timed events, cooldowns, and delayed traps without building large redstone repeater chains. It requires permission level 2, which means cheats must be turned on in single-player worlds.

Syntax (Java 26.3, 4 forms)

  1. /schedule clear <function>
  2. /schedule function <function> <time>
  3. /schedule function <function> <time> append
  4. /schedule function <function> <time> replace

The forms you will use most

/schedule function <function> <time>
Schedules a function or function tag to run after the specified amount of time.
/schedule function <function> <time> append
Adds a new schedule for the function without cancelling any existing timers for that same function.
/schedule function <function> <time> replace
Schedules the function and overwrites any current timer already running for that function.
/schedule clear <function>
Cancels all pending timers for a specific function or function tag.

Arguments

ArgumentTypeWhat it means
<function>resource IDThe namespaced resource ID of a function or a #function tag from a loaded data pack.
<function>functionThe namespaced resource ID of a function or a #function tag from a loaded data pack.
<time>time
at least 0
The waiting duration before the function runs, which must be at least 0 and can be written in ticks (like 100), seconds (like 5s), or days (like 2d).

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.15 Syntax changed.
    + /schedule clear <function>+ /schedule function <function> <time> append+ /schedule function <function> <time> replace
  2. 1.14 Command added.

Tips

Common mistakes

Java vs Bedrock

Bedrock Edition also has a /schedule command, but it uses a different syntax structure such as /schedule delay add <function: filepath> <time: int> [DelayMode: DelayMode] or /schedule delay add <function: filepath> <time: time> [DelayMode: DelayMode].

See /schedule in Bedrock Edition →

FAQ

When was the /schedule command added to Minecraft Java Edition?

The command was first added in Java Edition 1.14, and in version 1.15 it was updated with the clear, append, and replace options.

How do I stop a scheduled function before it runs?

You can stop a function from running by typing /schedule clear followed by the exact namespaced ID of the function or function tag.

What permission level is needed to use /schedule?

You need permission level 2, which means you must be a server operator or have cheats enabled in your single-player world.

Related commands

/bossbar/data/execute/function/random/return/scoreboard/tag/team/trigger