<?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%3ATick</id>
	<title>Minecraft:Tick - 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%3ATick"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Tick&amp;action=history"/>
	<updated>2026-04-09T12:26: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:Tick&amp;diff=51019&amp;oldid=prev</id>
		<title>imported&gt;Azyrod: /* Game process */ 26.1 source code has the timeSync done before the loop over all dimensions in `tickChildren()` function</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Tick&amp;diff=51019&amp;oldid=prev"/>
		<updated>2026-04-06T14:58:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Game process: &lt;/span&gt; 26.1 source code has the timeSync done before the loop over all dimensions in `tickChildren()` function&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{for|the command|Commands/tick}}&lt;br /&gt;
Nearly all video games (including &amp;#039;&amp;#039;Minecraft&amp;#039;&amp;#039;) are driven by one big {{w|Control flow#Loops|program loop}}. Just as every gear in a clock is synchronized with the pendulum, every task involved in advancing a game simulation is synchronized with the game loop. Appropriately, one cycle of the game loop is called a &amp;#039;&amp;#039;&amp;#039;tick&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Game tick ==&lt;br /&gt;
A game tick is where &amp;#039;&amp;#039;Minecraft&amp;#039;s&amp;#039;&amp;#039; game loop runs once. The game normally runs at a fixed rate of 20 ticks per second, so one tick happens every 0.05 seconds (50 milliseconds or 1/20 seconds), making an  [[Minecraft:Daylight cycle|in-game day]] last exactly 24 000 ticks (20 minutes). However, if the computer is unable to keep up with this speed, the amount of game ticks per second (TPS) decreases. As the vast majority of actions are timed based on tick count rather than on real time, this means that many things take longer on a slower computer.&lt;br /&gt;
&lt;br /&gt;
A statistic related to ticks per second (TPS) is milliseconds per tick (MSPT), the time a server actually uses to compute a tick. The TPS can be maintained at 20 only if the MSPT is no higher than 50. The following often contribute to server-side lag:&lt;br /&gt;
* [[Minecraft:Hopper]]s constantly try to search for items above them. Covering a hopper with any [[Minecraft:solid block]] (except [[Minecraft:bee nest]]s and [[Minecraft:beehive]]s), stops this check for items; [[Minecraft:composters]] can also be used for this purpose and are even better for performance compared to solid blocks. Alternatively, use [[Minecraft:water]] flow-based [[Minecraft:Tutorial:Item transportation|transport]] which is faster in bulk.&lt;br /&gt;
* [[Minecraft:Redstone components]] (especially redstone dust), as they can cause excessive amounts of [[Minecraft:block updates]] and/or [[Minecraft:light]] updates. Disabling redstone contraptions and clocks when not in use can help mitigate this.&lt;br /&gt;
* [[Minecraft:Mob AI]]. Large amounts of mobs. To mitigate this, torches can be used to prevent hostile [[Minecraft:mob spawning]]. As for animal farms-related lag, make sure to use entity-efficient farm designs.&lt;br /&gt;
* Random Tick Speed. If the random tick speed is set too high, it can cause the MSPT to rise unusually.&lt;br /&gt;
&lt;br /&gt;
The MSPT value is displayed in the F3 [[Minecraft:debug screen]] as &amp;quot;ms ticks&amp;quot; {{in|java}}. The frame time graph ({{key|F3+2}}) shows the TPS value. Both displays are available only as a multiplayer host or singleplayer since the stats come from the integrated &amp;#039;&amp;#039;server&amp;#039;&amp;#039; of your &amp;#039;&amp;#039;Minecraft&amp;#039;&amp;#039; game.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, tick rates can be controlled by the command {{cmd|tick}}.&lt;br /&gt;
&lt;br /&gt;
{{calculator|tick}}&lt;br /&gt;
&lt;br /&gt;
== Game process ==&lt;br /&gt;
{{IN|java}}, in each game loop the following actions are processed in order:&lt;br /&gt;
&lt;br /&gt;
* Reset next tick time if lagging 2s behind expected tick time&lt;br /&gt;
* Compute next tick time&lt;br /&gt;
* Increment tick count&lt;br /&gt;
* [[Minecraft:Function (Java Edition)|Functions]] with [[Minecraft:Function_(Java_Edition)#Invocation_from_function_tags|{{code|tick}} or {{code|load}} tags]] are executed&lt;br /&gt;
* Send time every 20 game ticks to players&lt;br /&gt;
* Each [[Minecraft:dimension]] is ticked in order of [[Minecraft:Overworld]], the [[Minecraft:Nether]], the [[Minecraft:End]], and [[Minecraft:custom dimension]]s. For each dimension:&lt;br /&gt;
** Update [[Minecraft:world border]] bounds&lt;br /&gt;
** Advance [[Minecraft:weather]] cycle&lt;br /&gt;
** Update [[Minecraft:daylight cycle]] time&lt;br /&gt;
** Player [[Minecraft:Bed#Sleeping|sleeping]] logic&lt;br /&gt;
** Run [[Minecraft:Commands/schedule|scheduled]] commands&lt;br /&gt;
** Execute [[#Scheduled_tick|Scheduled block ticks]]&lt;br /&gt;
** Execute [[#Scheduled_tick|Scheduled fluid ticks]]&lt;br /&gt;
** [[Minecraft:Raid]] logic&lt;br /&gt;
** Update chunks [[Minecraft:Chunk#Level_and_load_type|load level]]&lt;br /&gt;
** For all chunks in random order:&lt;br /&gt;
*** [[Minecraft:Mob spawning|Spawn]] mobs&lt;br /&gt;
*** Tick ice and snow&lt;br /&gt;
*** [[#Random tick|Random ticks]]&lt;br /&gt;
** Send block changes to players&lt;br /&gt;
** Update [[Minecraft:Point of Interest|points of interest]]&lt;br /&gt;
** Unloads chunks&lt;br /&gt;
** Execute [[Minecraft:block]] events&lt;br /&gt;
** Tick [[Minecraft:Ender Dragon|dragon]] fight&lt;br /&gt;
** For all [[Minecraft:Entity#Riding|non-passenger]] entities:&lt;br /&gt;
*** Check if it can [[Minecraft:Mob spawning|despawn]]&lt;br /&gt;
*** Tick entity&lt;br /&gt;
*** Tick passengers&lt;br /&gt;
** Tick [[Minecraft:Block entity|block entities]]&lt;br /&gt;
** Handle game events&lt;br /&gt;
* Send queued packets and handle incoming packets for each player&lt;br /&gt;
* Send player info to players&lt;br /&gt;
* Autosave every 6000 ticks&lt;br /&gt;
* Run pending tasks and wait for next tick&lt;br /&gt;
&lt;br /&gt;
== Chunk tick ==&lt;br /&gt;
As a part of a game tick, specific [[Minecraft:chunk]]s are ticked on every game tick.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, chunks with loading type of entity ticking (see [[Minecraft:Chunk#Level and load type]]) are ticked on every game tick. This primarily includes chunks in the simulation distance, but chunks loaded through other methods are also random-ticked. Mob spawning and lightning strikes require a player within 8 chunks to occur, even if the chunk is fully loaded. Precipitation-related actions and all other random tick actions (such as crop growth) do not require any player to be near the chunk.&lt;br /&gt;
&lt;br /&gt;
{{IN|bedrock}}, all chunks inside [[Minecraft:simulation distance]] (or specified in the /tickingarea command) are ticked on every game tick.&lt;br /&gt;
&lt;br /&gt;
In both editions, the following things happen when a chunk gets ticked:&lt;br /&gt;
* Mobs naturally [[Minecraft:Mob spawning|spawn]].&amp;lt;ref group=note name=proximity&amp;gt;In {{JE}}, this requires a player within an 8-chunk radius.&amp;lt;/ref&amp;gt;&lt;br /&gt;
* During a [[Minecraft:thunderstorm]], lightning may strike somewhere in the chunk ({{frac|1|100000}} chance).&amp;lt;ref group=note name=proximity/&amp;gt;&lt;br /&gt;
* {{frac|1|16}} chance that one column is chosen for weather checks on the topmost block:&lt;br /&gt;
** If in a cold biome, [[Minecraft:water]] [[Minecraft:Ice#Snowy biomes|freezes into ice]] if possible.&lt;br /&gt;
** If [[Minecraft:snowing]], a [[Minecraft:snow]] layer is placed if possible.&lt;br /&gt;
*** Additionally, cauldrons can be filled with [[Minecraft:powder snow]].&lt;br /&gt;
** If [[Minecraft:rain]]ing, a [[Minecraft:cauldron]] is filled with water.&lt;br /&gt;
* A certain number of blocks within the chunk receive random block ticks, as described below.&lt;br /&gt;
&lt;br /&gt;
=== Random tick ===&lt;br /&gt;
[[Minecraft:Chunk]]s consist of one subchunk per 16 blocks of height, each one being a 16×16×16=4096 block cube. Subchunks are distributed vertically starting at the lowest y level. Every chunk tick, some blocks are chosen at random from each subchunk in the chunk. The blocks at those positions are given a &amp;quot;random tick&amp;quot;. Subchunks that do not contain at least one block that can react to random ticks are skipped.  All blocks are a possible target of a random tick, including [[Minecraft:air]].&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, the number of blocks chosen from each subchunk is specified by {{cmd|gamerule random_tick_speed}} (defaults to 3), and one block can be chosen multiple times in one chunk tick. {{IN|bedrock}}, it also depends on {{cd|randomTickSpeed}} (defaults to 1), but it specifies only relative speed instead of the exact number.&lt;br /&gt;
&lt;br /&gt;
Most blocks ignore this tick, but some use it to do something:&lt;br /&gt;
*[[Minecraft:Crops]] may grow or uproot.&lt;br /&gt;
*[[Minecraft:Mushroom]]s may spread or uproot.&lt;br /&gt;
*[[Minecraft:Vines]] may spread.&lt;br /&gt;
*{{IN|BE}}, [[Minecraft:fire]] may burn out or spread.&lt;br /&gt;
*[[Minecraft:Ice]] and [[Minecraft:snow]] layers may melt.&lt;br /&gt;
*[[Minecraft:Leaves]] may decay.&lt;br /&gt;
*[[Minecraft:Farmland]] hydration is updated.&lt;br /&gt;
*[[Minecraft:Cacti]], [[Minecraft:sugar cane]], [[Minecraft:kelp]], [[Minecraft:bamboo]], [[Minecraft:chorus flower]]s, [[Minecraft:mangrove propagule]]s and [[Minecraft:sweet berry bush]]es may grow.&lt;br /&gt;
*[[Minecraft:Grass block]]s and [[Minecraft:mycelium]] may spread.&lt;br /&gt;
*Grass blocks, mycelium, and [[Minecraft:nylium]] may decay (only if the condition is met).&lt;br /&gt;
*[[Minecraft:Sapling]]s may grow into a [[Minecraft:tree]].&lt;br /&gt;
*[[Minecraft:Lava]] may set fires nearby.&amp;lt;ref group=note&amp;gt;In {{JE}}, this requires a player within an 8-chunk radius. However, {{cmd|gamerule allowFireTicksAwayFromPlayer}} removes this requirement if set to true.&amp;lt;/ref&amp;gt;&lt;br /&gt;
*[[Minecraft:Mud]] may turn into [[Minecraft:clay]] if placed on top of a block with [[Minecraft:pointed dripstone]] underneath.&lt;br /&gt;
*Lit [[Minecraft:redstone ore]] turns off.&lt;br /&gt;
*[[Minecraft:Nether portal block]]s may spawn a [[Minecraft:zombified piglin]].&lt;br /&gt;
*[[Minecraft:Turtle egg]]s crack or hatch.&lt;br /&gt;
*[[Minecraft:Campfire]] smoke appears.&lt;br /&gt;
*[[Minecraft:Budding amethyst]] may grow an [[Minecraft:amethyst bud]] on any of its sides as longs as there is no solid block.&lt;br /&gt;
*[[Minecraft:Block of Copper|Copper block]]s (or any of its non-oxidized variants) may advance one stage in oxidation.&lt;br /&gt;
*[[Minecraft:Pointed dripstone]] may fill a cauldron below.&lt;br /&gt;
*[[Minecraft:Pointed dripstone]] may grow a stalagmite/stalactite if the conditions are met.&lt;br /&gt;
&lt;br /&gt;
Because random block ticks are granted randomly, there is no way to predict when a block can receive its next tick. {{IN|java}}, the &amp;#039;&amp;#039;median&amp;#039;&amp;#039; time between ticks is &amp;#039;&amp;#039;&amp;#039;47.30&amp;#039;&amp;#039;&amp;#039; seconds (&amp;lt;math&amp;gt;\log_{\frac{4096-3}{4096}}(0.5) \approx&amp;lt;/math&amp;gt; 946.03 game ticks). That is, there is a 50% chance for the interval to be equal or shorter than 47.30 seconds and a 50% chance for it to be equal or longer than 47.30. However, sometimes it is much longer or shorter: for example, there is a 1.38% chance for the interval to be less than one second and a 1.23% chance for the interval to be over five minutes. On &amp;#039;&amp;#039;average&amp;#039;&amp;#039;, blocks are updated every &amp;#039;&amp;#039;&amp;#039;68.27&amp;#039;&amp;#039;&amp;#039; seconds (&amp;lt;math&amp;gt;\frac{4096}{3} \approx&amp;lt;/math&amp;gt; 1365.33 game ticks). For the math behind these numbers, see the Wikipedia entries for the [[Minecraft:wikipedia:geometric distribution|geometric distribution]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references group=&amp;quot;note&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Scheduled tick ==&lt;br /&gt;
Some blocks can request a tick sometime in the future. These &amp;quot;scheduled ticks&amp;quot; are used for things that have to happen in a predictable pattern—for instance, [[Minecraft:redstone repeater]]s schedule a tick to change state {{in|java}}, [[Minecraft:water]] schedules a tick when it needs to flow.&lt;br /&gt;
&lt;br /&gt;
During the scheduled tick phase, each block position that had previously requested a scheduled tick for this game tick gets ticked.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, there are two types of scheduled ticks: block ticks and fluid ticks. Block ticks are executed first based on priority, and then based on scheduling order. A lower value for priority results in earlier execution during the scheduled tick phase. If a [[Minecraft:redstone repeater]] is facing the back or side of another diode, its block tick has a priority of -3. If a redstone repeater is depowering, it has a priority of -2. Otherwise, the repeater has a priority of -1. If a [[Minecraft:redstone comparator]] is facing the back or side of another diode, it has a priority of -1. All other block ticks have a priority of 0. Then, each block with a scheduled fluid tick get a tick. Fluid ticks do not use priorities and are ordered based on scheduling order.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, the maximum number of scheduled ticks per game tick is 65,536. {{IN|bedrock}}, the maximum number of scheduled ticks &amp;#039;&amp;#039;&amp;#039;in a chunk&amp;#039;&amp;#039;&amp;#039; per game tick is 100.&lt;br /&gt;
&lt;br /&gt;
== Redstone tick ==&lt;br /&gt;
{{see also|Redstone mechanics}}&lt;br /&gt;
{{exclusive|bedrock|section=1}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Redstone tick&amp;#039;&amp;#039;&amp;#039; is a unit of time that describes a delay of two game ticks, creating a {{frac|1|10}} of a second delay.&lt;br /&gt;
&lt;br /&gt;
The redstone system is calculated on concurrent threads, meaning that redstone updates are processed independently of the main game loop. This architecture utilizes a two-phase tick system, known as produce ticks (P-Ticks) and consume ticks (C-ticks), or alternatively as Output Ticks and Input Ticks.&lt;br /&gt;
&lt;br /&gt;
These two phases form a single redstone tick, which spans 2 game ticks. There are 10 redstone ticks per standard 20-game-tick second.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Tick cycle&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Output/produce tick ({{va|P-tick}}): Occurs first on odd-numbered game ticks. During this phase, components output or send their signal.&lt;br /&gt;
*Input/consume tick ({{va|C-tick}}): Occurs second on even-numbered game ticks. During this phase, components read or react to signals they are receiving.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Component Behavior&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*[[Minecraft:Power components]] ([[Minecraft:repeater]]s, [[Minecraft:comparator]]s, [[Minecraft:redstone torch]]s, [[Minecraft:observer]]s, etc.): These components read their input side during an output/produce tick. After their configured delay, they update their output side and produce an input/consume tick.&lt;br /&gt;
*[[Minecraft:Mechanism components]] ([[Minecraft:piston]]s, [[Minecraft:redstone lamp]]s, [[Minecraft:door]]s, etc.): These components are activated during an input/consume tick and change their block state, which then creates block updates processed in the subsequent output/produce tick.&lt;br /&gt;
*[[Minecraft:Redstone dust]] updates its power state on every game tick (20 times per second), independently of the dedicated redstone tick system. This allows it to transmit pulses with a duration of only 1 game tick. A dust line powered on an odd game tick serves as an output for components processing on P-Ticks, while one powered on an even game tick serves as an output for components on C-Ticks. This makes redstone dust one of the few components that can be &amp;quot;1-ticked&amp;quot; and used to create phase-specific pulses. Redstone dust only updates visually on output/produce ticks, meaning on input/consume tick while technically on looks visually off. &lt;br /&gt;
*[[Minecraft:Armor stand]]s update on both input and output ticks meaning they are one of the few redstone components that utilizes all 20 ticks. [[Minecraft:Minecarts with hoppers]] and [[Minecraft:minecarts with TNT]] might also be able to utilize all 20 game tick instead of being tied to P or C ticks.{{needs testing}}&lt;br /&gt;
&lt;br /&gt;
The transmission and timing of redstone signals are determined by these ticks, which govern when redstone devices output power and when they respond to input.&lt;br /&gt;
&lt;br /&gt;
== Piston tick ==&lt;br /&gt;
{{exclusive|java|section=1}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;piston tick&amp;#039;&amp;#039;&amp;#039; is a different way to divide the game tick, based on the &amp;#039;&amp;#039;Immediate Update Theory&amp;#039;&amp;#039; by Sancarn and Selulance.&amp;lt;ref&amp;gt;Referred to as &amp;quot;immediate update bug&amp;quot; or &amp;quot;lever bug&amp;quot; in the original video https://www.youtube.com/watch?v=HCgkllZq338&amp;lt;/ref&amp;gt; It was created by the Chinese redstone community in order to simplify the calculation of piston timings, but it never gained popularity in the Western community.&lt;br /&gt;
&lt;br /&gt;
The piston tick starts in the entity phase of the game tick and ends in the block event phase, therefore a piston always takes 3 piston ticks to extend or retract, without any [[Minecraft:piston#Start_delay|start delay]]. Redstone components that use [[#Scheduled tick|scheduled ticks]] lose 1 piston tick of delay depending on how they are powered (for example this happens when a repeater gets powered by a redstone block that was pushed by a piston).&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{Incomplete section}}&lt;br /&gt;
&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.8|dev=14w17a|Added the [[Minecraft:game rule]] {{cd|randomTickSpeed}}.}}&lt;br /&gt;
|{{HistoryLine||1.13|dev=18w10c|[[Minecraft:Water]] can now schedule a tick before a previous scheduled tick has finished during the scheduled tick stage in which the previous tick is executed.}}&lt;br /&gt;
|{{HistoryLine||1.20.2|dev=23w31a|The chance of weather checks in chunk ticks is now affected by the gamerule {{cd|randomTickSpeed}}.}}&lt;br /&gt;
|{{HistoryLine||1.20.3|dev=23w43a|Added {{cmd|tick}}, allowing game ticks to be queried and manipulated.}}&lt;br /&gt;
|{{HistoryLine||1.21.5|dev=25w06a|All fully-loaded chunks now receive random ticks, regardless of if a player is within an 8-chunk distance or not.}}&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.8.0|dev=beta 1.8.0.8|Added the game rule {{cd|randomTickSpeed}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox Java Edition technical|general}}&lt;br /&gt;
{{Navbox Bedrock Edition}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Game terms]]&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Tick]]&lt;br /&gt;
[[Minecraft:es:Tic]]&lt;br /&gt;
[[Minecraft:fr:Tick]]&lt;br /&gt;
[[Minecraft:it:Tick]]&lt;br /&gt;
[[Minecraft:ja:ティック]]&lt;br /&gt;
[[Minecraft:ko:틱]]&lt;br /&gt;
[[Minecraft:lzh:刻]]&lt;br /&gt;
[[Minecraft:pl:Tick]]&lt;br /&gt;
[[Minecraft:pt:Tique]]&lt;br /&gt;
[[Minecraft:ru:Такт]]&lt;br /&gt;
[[Minecraft:uk:Такт]]&lt;br /&gt;
[[Minecraft:zh:刻]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Azyrod</name></author>
	</entry>
</feed>