Info
Nearly all video games (including Minecraft) are driven by one big 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 tick.
Game tick
Minecraft`s game loop normally runs at a fixed rate of 20 ticks per second, so one tick happens every 0.05 seconds. An in-game day lasts exactly 24000 ticks, or 20 minutes.
Be that as it may, if the computer is unable to keep up with this speed, there will be fewer game ticks per unit time. As the vast majority of actions are timed based on tick count rather than on wall clock time, this means that many things will take longer on a slower computer.
On each tick, various aspects of the game advance a little bit: moving objects change position, mobs "Monster" redirects here. For the mob called "monster" in the code, see Human. Mobs are living, moving game entities. The term "mob" is short for "mobile". 1] Contents 1 Spawning 2 Behavior 3 List of check their surroundings and update their behavior, health and hunger are affected by the player`s circumstances, and much more.
One thing that does not happen as part of a tick is drawing graphics. Rendering happens after updating. This is why there can be a variance in fps (if vsync is not enabled) but the tps (ticks per second) will stay constant. This prevents video performance from affecting game mechanics, and vice-versa.
Note that a multiplayer server may be "slow" at initial startup; this is partially due to the java virtual machine taking longer by default to optimize java code at runtime.
Videos
Chunk tick
On every game tick, each chunk within the render distance of a player and with centers within 128 blocks of a player are ticked.
This may have various effects:
- If thunderstorming, lightning Lightning during a thunderstorm. A lightning bolt strikes a tree. A creeper can be seen hopping about in the woods. If it had been closer to the strike, it would have become charged. Thunderstorms are
may strike somewhere in the chunk (1⃢₁₄100000 chance).
- 1⃢₁₄16 chance that one column is chosen for weather checks on the topmost block:
- If in a cold biome, water Water Transparency Partial (-2 to light) Luminance No Blast resistance 500 (Flowing) 500 (Still) Tool Renewable Yes Stackable N/A Flammable No Drops None Data values Flowing Water dec: 08 hex: 8 bin: 1000 Still Water dec: 09 hex: 9 bin: 1001
will freeze into ice if possible.
- If snowing, a snow layer will be placed if possible.
- If raining, a cauldron Cauldron Type Solid Block Requirements ? Physics No Transparency Yes Luminance No Blast resistance 10 Hardness 2 Tool Renewable Yes Stackable Yes (64) Flammable No First appearances See History Drops Cauldron (1) Block entity id
will be filled.
- If in a cold biome, water Water Transparency Partial (-2 to light) Luminance No Blast resistance 500 (Flowing) 500 (Still) Tool Renewable Yes Stackable N/A Flammable No Drops None Data values Flowing Water dec: 08 hex: 8 bin: 1000 Still Water dec: 09 hex: 9 bin: 1001
- A certain number of blocks within the chunk will receive random block ticks, as described below.
Block tick
Chunks Visualization of the ground portion of a single chunk. The entire chunk extends up to a height of 256. Chunks are 16 × 16 × 256 segments of the Minecraft worlds. Contents 1 Generation 1.1 are comprised of sixteen so-called sections, each one a 16⃗16⃗16 block cube. 3 block positions (or the number set by
/gamerule randomTickSpeed
) are chosen at random from each section in the chunk. The blocks at those positions are given a "random block tick". Most blocks ignore this tick, but some use it to do something:
- Crops Crops are defined as "Cultivated plants or agricultural produce, such as grain, vegetables, or fruit, considered as a group" and in Minecraft, may refer to the following food-related items and blocks: Crops - growing wheat may grow or uproot.
- Mushrooms Mushroom Type Ingredient Block Restores None Cookable No Renewable Yes Stackable Yes (64) Luminance Yes, 1 (brown only) First appearances See History Data values See Data values Name See Data values See
may spread or uproot.
- Vines Vines Transparency Yes Luminance No Blast resistance 1 Tool Renewable Yes Stackable Yes (64) Flammable Yes Drops Itself Data value dec: 106 hex: 6A bin: 1101010 Name vine Vines are non-solid blocks, 1⁄16 of a block in thickness,
may spread.
- Fire Fire Transparency Yes Luminance Yes, 15 Blast resistance 0 Tool Any tool Renewable No Stackable N/A Flammable No Drops None Data value dec: 51 hex: 33 bin: 110011 Name fire Fire is a harmful non-solid block. Contents 1
may burn out or spread.
- Ice Ice Transparency PC: Partial (-2 to light) PE: No Luminance No Blast resistance 2.5 Tool Renewable Yes Stackable Yes (64) Flammable No Drops None Data value dec: 79 hex: 4F bin: 1001111 Name ice See
and snow layers Snow (layer) Transparency Yes Luminance No Blast resistance 0.5 Tool Renewable Yes Stackable Yes (64) Flammable No Drops Snowball (2–9) (one per level, plus one) Data value dec: 78 hex: 4E bin: 1001110 Name snow_layer Snow, or top
may melt.
- Leaves Leaves Transparency Partial (diffuses sky light) Luminance No Blast resistance 1 Tool Renewable Yes Stackable Yes (64) Flammable Yes Drops Sapling (0–1) @@@#@@@Apple(apple.com)###@### (0–1) (from oak and dark oak leaves) Data values Oak/Spruce/Birch/Jungle dec: 18 hex: 12
may decay.
- Farmland Farmland Transparency PC: Partial (Blocks light) PE: Yes Luminance No Blast resistance 3 Tool Renewable No Stackable Yes (64) Flammable No Drops Dirt (1) Data value dec: 60 hex: 3C bin: 111100 Name farmland “ Want to live
hydration is updated.
- Cacti Cactus Transparency Yes Luminance No Blast resistance 2 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Experience Smelted: 0.2 Drops Itself Data value dec: 81 hex: 51 bin: 1010001 Name cactus “ What do you reckon
, sugar cane Sugar Canes Transparency Yes Luminance No Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Drops Itself Data values See Data values Name reeds Sugar canes are an item and an
and chorus flowers Chorus Flower Transparency Yes Luminance No Blast resistance 2 Tool Renewable Yes Stackable Yes (64) Flammable No Drops Itself Data value dec: 200 hex: C8 bin: 11001000 Name chorus_flower Chorus flowers are plants that are found in the
may grow.
- Grass blocks Grass Block Transparency No Luminance No Blast resistance 3 Tool Renewable No Stackable Yes (64) Flammable No Drops Dirt (1) Data value dec: 02 hex: 2 bin: 10 Name grass See the dirt block with
and mycelium Mycelium Transparency No Luminance No Blast resistance 2.5 Tool Renewable No Stackable Yes (64) Flammable No Drops Dirt (1) Data value dec: 110 hex: 6E bin: 1101110 Name mycelium “ In Minecraft, mycelium is represented as a type
may spread or turn to dirt.
- Saplings Sapling Transparency Yes Luminance No Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Drops Itself Data value dec: 06 hex: 6 bin: 110 Name sapling A sapling is an item that can be
may grow into a tree Tree Biome Anywhere in the Overworld where light and dirt are present. Consists of Wood Leaves Vines (large jungle, dying and some fallen trees) Mushroom (some fallen trees) Cocoa (some jungle trees) Can generate post-generation
.
- Lava Lava Transparency Yes Luminance Yes, 15 Blast resistance 500 Tool Renewable No Stackable N/A Flammable No Drops None Data values Flowing Lava dec: 10 hex: A bin: 1010 Still Lava dec: 11 hex: B bin: 1011 Name Flowing Lava flowing_lava Still
may set fires nearby.
- Lit redstone ore Redstone Ore Transparency Partial (when active) Luminance Yes, 9 (when updated, clicked, or stepped on) Blast resistance 15 Tool Renewable No Stackable Yes (64) Flammable No Experience Mined: 1–5 Smelted: 0.7 Drops Redstone (4–5) Data
will turn off.
- Nether portal blocks Nether Portal Transparency Yes Luminance Yes, 11 Blast resistance 0 Tool None Renewable No Stackable N/A Flammable No Drops Nothing Data value dec: 90 hex: 5A bin: 1011010 Name portal See the block that makes
may spawn a zombie pigman Zombie Pigman Health points 20 () Armor points 2 () Attack strength Easy: 5 () Normal: 9 () Hard: 13 () Size Height: 1.95 Blocks Width: 0.6 Blocks Spawn Any 2 block high space in any
.
Other blocks can request a tick sometime in the future. These "scheduled ticks" are used for things that have to happen in a predictable pattern—for instance, redstone repeaters Redstone Repeater Transparency Yes (partial) Luminance No (7 when powered, in Pocket Edition) Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Availability Survival, Creative Drops Redstone Repeater (1) Data values will schedule a tick to change state and water Water Transparency Partial (-2 to light) Luminance No Blast resistance 500 (Flowing) 500 (Still) Tool Renewable Yes Stackable N/A Flammable No Drops None Data values Flowing Water dec: 08 hex: 8 bin: 1000 Still Water dec: 09 hex: 9 bin: 1001
will schedule a tick when it needs to move. A scheduled tick and a random tick may do different things on the same block.
Because random block ticks are granted randomly, there is no way to predict when a block will get its next tick. The median time between ticks is 47.35 seconds. That is, there is a 50% chance that the interval will be equal or shorter than 47.35 seconds, and a 50% chance it will be equal or longer than 47.35. Be that as it may, sometimes it is much longer or shorter: for instance, there is a 1.5% chance that the interval will be less than one second, and a 1% chance that the interval will be over five minutes. On average, blocks are updated every 68.27 seconds. For the math behind these numbers, see the Wikipedia entries for the geometric distribution.
The maximum number of block ticks per game tick is 65,536.
Redstone tick
A redstone tick describes two game ticks. This creates a 1/10 of a second delay in the signal of a redstone Redstone Transparency Yes Luminance No Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Availability Survival Drops Redstone (1) Data values See Data values Name See Data values This article is circuit. That is, the signal`s time to travel from a location A to location B is increased by 0.1 seconds. A tick only pertains to the increase in signal time, thus, a signal`s travel time can never be decreased in reference to ticks.