<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fschedule</id>
	<title>Minecraft:Commands/schedule - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fschedule"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/schedule&amp;action=history"/>
	<updated>2026-04-09T07:46:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/schedule&amp;diff=49775&amp;oldid=prev</id>
		<title>imported&gt;Leo768: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/schedule&amp;diff=49775&amp;oldid=prev"/>
		<updated>2025-12-07T15:32:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox command&lt;br /&gt;
|name=schedule&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
Schedules the function(s).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{IN|java}}, delays the execution of a [[Minecraft:Function (Java Edition)|function]] or all functions in a function [[Minecraft:tag]]. The function(s) are executed by the [[Minecraft:server]] after specified amount of time passes.&lt;br /&gt;
&lt;br /&gt;
{{IN|bedrock}}, schedules a [[Minecraft:Function (Bedrock Edition)|function]] to be executed once an area is fully loaded, or after a certain amount of time.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, the same functions or the same function tags cannot have two schedules executed at the same game tick.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, in &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt; mode, overrides an unexecuted schedule directly when a function or a function tag already has an unexecuted schedule. For example, if a function is scheduled to be executed in 30 seconds, and before it is executed you want to modify the execution time, you can use &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt; mode to set a new schedule to replace the original.&lt;br /&gt;
&lt;br /&gt;
Even when using the &amp;lt;code&amp;gt;[[Minecraft:Commands/execute|execute]] as ...&amp;lt;/code&amp;gt; command, the scheduled function always runs as the server at [[Minecraft:world spawn]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule function &amp;lt;function&amp;gt; &amp;amp;lt;time&amp;gt; [append|replace]&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Adds a schedule.&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule clear &amp;lt;function&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Removes a schedule.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule on_area_loaded add &amp;lt;from: x y z&amp;gt; &amp;lt;to: x y z&amp;gt; &amp;lt;function: filepath&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule on_area_loaded add circle &amp;lt;center: x y z&amp;gt; &amp;lt;radius: int&amp;gt; &amp;lt;function: filepath&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule on_area_loaded add tickingarea &amp;lt;name: string&amp;gt; &amp;lt;function: filepath&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Adds a schedule to be executed once an area is loaded.&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule delay add &amp;lt;function&amp;gt; &amp;lt;delay (ticks)&amp;gt; [append{{!}}replace]&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule delay clear &amp;lt;function&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Delays a schedule.&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule clear &amp;lt;function: filepath&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule on_area_loaded clear function &amp;lt;function: filepath&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;schedule on_area_loaded clear tickingarea &amp;lt;name: string&amp;gt; [function: filepath]&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Removes a schedule.&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
{{argument|function|function|function: filepath|CommandFilePath}}&lt;br /&gt;
: Specify the function to be run.&lt;br /&gt;
: {{arg desc|je=function|be=commandfilepath}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|time|time}}&lt;br /&gt;
: Specify the delay time.&lt;br /&gt;
: {{arg desc|je=time|min=0}}&lt;br /&gt;
: One thing to note is that the delay time of {{Cd|1t}} does NOT always mean one tick of delay. Instead, it schedules the function for the upcoming phase for scheduled functions.&lt;br /&gt;
:* If {{Cd|schedule function &amp;lt;function&amp;gt; 1t}} is executed in {{Cd|#minecraft:tick}} functions, it schedules the function for the phase in the same tick, which comes right after the phase for the {{Cd|#minecraft:tick}} functions.&lt;br /&gt;
:* If {{Cd|schedule function &amp;lt;function&amp;gt; 1t}} is executed during the &amp;quot;scheduled functions&amp;quot; phase, it schedules the function for the next phase, which is coming in the next tick.&lt;br /&gt;
:Thus, specifying {{Cd|1t}} in {{Cd|#minecraft:tick}} functions makes the function run within the same tick, and specifying {{Cd|1t}} in scheduled functions makes the function run in the next tick.&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|function|string}} (in {{cd|/schedule clear ...}} mode)&lt;br /&gt;
: Specify the function to be cleared. Should be a namespaced ID (&amp;lt;code&amp;gt;minecraft:&amp;lt;/code&amp;gt; cannot be omitted) or a function tag(&amp;lt;code&amp;gt;minecraft:&amp;lt;/code&amp;gt; cannot be omitted).&lt;br /&gt;
: {{arg desc|je=string|type=greedy}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: &amp;lt;code&amp;gt;append|replace&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt; — (default) Simply replaces the current function&amp;#039;s schedule time.&lt;br /&gt;
: &amp;lt;code&amp;gt;append&amp;lt;/code&amp;gt; — Allows multiple schedules to exist at different times.&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|from: x y z|CommandPosition}} and {{argument|be=1|to: x y z|CommandPosition}}&lt;br /&gt;
: Specifies the coordinates of opposite corners of a rectangular area used to define a loaded area.&lt;br /&gt;
: {{arg desc|be=CommandPosition}}&lt;br /&gt;
: For &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;, numbers less than -30,000,000 or greater than 30,000,000 are treated as -30,000,000 or 30,000,000 respectively.&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|center: x y z|CommandPosition}}&lt;br /&gt;
: Specifies the coordinates of the center point of a circular area used to define a loaded area.&lt;br /&gt;
: {{arg desc|be=CommandPosition}}&lt;br /&gt;
: For &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt;, numbers less than -30,000,000 or greater than 30,000,000 are treated as -30,000,000 or 30,000,000 respectively.&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|radius: int|int}}&lt;br /&gt;
: Specifies the radius of a circular loaded area as the number of chunks from the center to the edge of the circle. &lt;br /&gt;
: {{arg desc|be=int}} It should be between 0 and 2,147,483,647 (inclusive).&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|name: string|basic_string}}&lt;br /&gt;
: Specifies the name of a ticking area, executes function when which is added.&lt;br /&gt;
: {{arg desc|be=string}}&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|The specified function or function tag does not exist.|fail|fail}}&lt;br /&gt;
{{Result table|cmd=/schedule function ...|&amp;lt;code&amp;gt;&amp;lt;&amp;lt;nowiki/&amp;gt;time&amp;gt;&amp;lt;/code&amp;gt; is 0.||N/A}}&lt;br /&gt;
{{Result table|cmd=/schedule clear ...|Schedule for &amp;lt;code&amp;gt;&amp;lt;function&amp;gt;&amp;lt;/code&amp;gt; can&amp;#039;t be found.}}&lt;br /&gt;
{{Result table|cmd=/schedule on_area_loaded add &amp;lt;from: x y z&amp;gt; &amp;lt;to: x y z&amp;gt; ...&amp;lt;br&amp;gt;/schedule on_area_loaded add circle ...|More than 2,147,483,647 chunks are specified.|N/A|fail}}&lt;br /&gt;
{{Result table|cmd=/schedule on_area_loaded add circle ...|&amp;lt;code&amp;gt;radius: int&amp;lt;/code&amp;gt; is lower than 0.}}&lt;br /&gt;
{{Result table|cmd=|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0|0}}&lt;br /&gt;
{{Output table|cmd=/schedule function ...|On success|1|1|The game tick the function is to execute at modulo 2147483647}}&lt;br /&gt;
{{Output table|cmd=/schedule clear ...|On success|1|1|the number of schedules that are cleared.}}&lt;br /&gt;
{{Output table|edition=be|On fail|0}}&lt;br /&gt;
{{Output table|On success|1}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.14|dev=18w43a|Added {{cmd|schedule|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.15|dev=19w38a|Added a clear syntax and added an append/replace optional argument (defaults to replace).}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||1.16.100|dev=beta 1.16.100.59|Added {{cmd|schedule|link=none}}.&lt;br /&gt;
|The command itself works differently from &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;.}}&lt;br /&gt;
|{{HistoryLine||1.21.40|dev=Preview 1.21.40.20|Added new overloads allows you to clear a queued function.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/schedule?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/schedule&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=October 9, 2024}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/schedule]]&lt;br /&gt;
[[Minecraft:es:Comandos/schedule]]&lt;br /&gt;
[[Minecraft:ja:コマンド/schedule]]&lt;br /&gt;
[[Minecraft:pt:Comandos/schedule]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/schedule]]&lt;br /&gt;
[[Minecraft:zh:命令/schedule]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Leo768</name></author>
	</entry>
</feed>