Minecraft:Random Tick
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Random ticks is a feature that updates blocks in every sub-chunk around the player. Most blocks do not respond to this, but some that have a random-ticking function implemented perform some kind of action, like growing, spreading, or decaying. One of these updates is called a random tick.
Calculation
The position for a random tick is calculated by choosing 3Template:OnlyTemplate:Verify random blocks inside a subchunk during the chunk tick phase. Subchunks are 16 block vertical segments inside each chunk, with a volume of 16x16x16. If any block chosen has a random-ticking function, it will be called and the block might do something. Any block in the subchunk can be chosen, including air. The chance of a block being selected is then
Effects
Template:Main Template:IN, the number of blocks chosen from each subchunk is specified by Template:Cmd (defaults to 3), and one block can be chosen multiple times in one chunk tick. Template:IN, it also depends on Template:Cd (defaults to 1), but it specifies only relative speed instead of the exact number.
- Minecraft:Crops may grow or uproot.
- Minecraft:Mushrooms may spread or uproot.
- Minecraft:Vines may spread.
- Template:IN, Minecraft:fire may burn out or spread.
- Minecraft:Ice and Minecraft:snow layers may melt.
- Minecraft:Leaves may decay.
- Minecraft:Farmland hydration is updated.
- Minecraft:Cacti, Minecraft:sugar cane, Minecraft:kelp, Minecraft:bamboo, Minecraft:chorus flowers, Minecraft:mangrove propagules and Minecraft:sweet berry bushes may grow.
- Minecraft:Grass blocks and Minecraft:mycelium may spread.
- Grass blocks, mycelium, and Minecraft:nylium may decay (only if the condition is met).
- Minecraft:Saplings may grow into a Minecraft:tree.
- Minecraft:Lava may set fires nearby.<ref group=note>In Template:JE, this requires a player within an 8-chunk radius. However, Template:Cmd removes this requirement if set to true.</ref>
- Minecraft:Mud may turn into Minecraft:clay if placed on top of a block with Minecraft:pointed dripstone underneath.
- Lit Minecraft:redstone ore turns off.
- Minecraft:Nether portal blocks may spawn a Minecraft:zombified piglin.
- Minecraft:Turtle eggs crack or hatch.
- Minecraft:Campfire smoke appears.
- Minecraft:Budding amethyst may grow an Minecraft:amethyst bud on any of its sides as longs as there is no solid block.
- Copper blocks (or any of its non-oxidized variants) may advance one stage in oxidation.
- Minecraft:Pointed dripstone may fill a cauldron below.
- Minecraft:Pointed dripstone may grow a stalagmite/stalactite if the conditions are met.
<references group="note"/>
Time estimation
Because random block ticks are granted randomly, there is no way to predict when a block can receive its next tick. Template:IN, the median time between ticks is 47.30 seconds (<math>\log_{\frac{4096-3}{4096}}(0.5) \approx</math> 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 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 average, blocks are updated every 68.27 seconds (<math>\frac{4096}{3} \approx</math> 1365.33 game ticks). For the math behind these numbers, see the Wikipedia entries for the geometric distribution.
Some blocks also have additional conditions for growing, Nether wart for instance has only a 10% chance to grow one growth stage, and it also has a 3 growth stages until it is fully grown. This means that it takes much longer than 68.27 seconds for Nether wart to fully grow on average. In total, it will now take 34.1333 minutes for nether wart to grow.
Create a list of growth times here for each crop in the game.