/schedule Command in Minecraft Bedrock Edition

Schedule Functions by Time or Loaded Area

Bedrock EditionLogic & ScoreboardPermission: Game DirectorsCheats: YesJava version →

The /schedule command in Minecraft Bedrock Edition lets you set up a function to run automatically at a later time. You can trigger the function after a countdown of ticks, seconds, or game days, or wait until a specific chunk of the world is loaded.

Map makers and server creators use this command to build timed events, delayed traps, or custom cutscenes. It requires the Game Directors permission level and cheats must be turned on in your world settings.

Syntax (11 forms)

  1. /schedule delay add <function: filepath> <time: int> [DelayMode: DelayMode]

    Schedule function call, delay time ticks

  2. /schedule delay add <function: filepath> <time: time> [DelayMode: DelayMode]

    Schedule function call, delay time ticks

  3. /schedule delay add <function: filepath> <time: time> [DelayMode: DelayMode]

    Schedule function call, delay time seconds

  4. /schedule delay add <function: filepath> <time: time> [DelayMode: DelayMode]

    Schedule function call, delay time days

  5. /schedule delay clear <function: filepath>

    Clear Scheduled delay functions

  6. /schedule clear <function: filepath>

    Clear Scheduled functions

  7. /schedule on_area_loaded add <from: x y z> <to: x y z> <function: filepath>

    Schedule function call when area loaded, location

  8. /schedule on_area_loaded add circle <center: x y z> <radius: int> <function: filepath>

    Schedule function call when area loaded, radius

  9. /schedule on_area_loaded add tickingarea <name: string> <function: filepath>

    Schedule function call when area loaded, ticking area

  10. /schedule on_area_loaded clear tickingarea <name: string> [function: filepath]

    Clear scheduled area loaded functions, ticking area name

  11. /schedule on_area_loaded clear function <function: filepath>

    Clear scheduled area loaded functions, function name

Arguments

ArgumentTypeWhat it means
center: x y zpositionA `vector` [x y z] that specifies the center of a defined loaded area.
DelayModeDelayModeAn `enum` of either `append` to allow multiple schedules or `replace` to replace the default schedule.
from: x y zpositionA `vector` [x y z] that specifies the rectangular area to load, along with `to`.
functionfilepathRequired. The function to run.
namestringA `string` that defines the `tickingarea` where the command is added.
radiusintAn `integer` that specifies the area as the number of chunks loaded in. Default: `0`.
timeintTime integer
timetimeTime
to: x y zpositionA vector [x y z] that specifies the rectangular area to load, along with `from`.

Examples

Tips

Common mistakes

Bedrock vs Java

In Minecraft Java Edition, the command is shorter and only supports time delays, using the syntax /schedule function <function> <time> [append|replace] and /schedule clear <function> without any options for waiting on loaded areas or ticking areas.

See /schedule in Java Edition →

FAQ

What is the difference between append and replace in /schedule?

Choosing append lets you queue up multiple timers for the exact same function at once, while replace deletes the current timer and starts a fresh one.

How do I stop a scheduled function from running?

You can stop a pending function before it runs by using /schedule clear, /schedule delay clear, or /schedule on_area_loaded clear followed by the function path or ticking area name.

Who has permission to use the /schedule command?

You must have the Game Directors permission level and cheats enabled in the world to run this command.

Related commands

/dialogue/execute/function/packstack/reload/reloadpacketlimitconfig/scoreboard/scriptevent/sendshowstoreoffer/tag/testfor/testforblock/testforblocks/toggledownfall