Skip to main content

Module turtle_egg_block

Module turtle_egg_block 

Source
Expand description

Vanilla turtle egg block behavior.

Turtle eggs are placed in clusters of one to four in a single block space. While sitting on sand they slowly crack (three stages) and then hatch, and they are trampled by most living entities that walk or fall onto them.

StructsΒ§

TurtleEggBlock
Behavior for vanilla turtle eggs.

ConstantsΒ§

BASE_HATCH_CHANCE πŸ”’
Base per-random-tick chance that an egg advances a cracking stage.
EGGS πŸ”’
FALL_TRAMPLE_ODDS πŸ”’
One in this many chance to trample an egg by falling onto it.
HATCH πŸ”’
HATCH_WINDOW_END πŸ”’
End (exclusive) of the pre-dawn window where eggs always advance.
HATCH_WINDOW_START πŸ”’
Start (inclusive) of the pre-dawn window where eggs always advance.
MAX_EGGS πŸ”’
Maximum number of eggs that can occupy a single block space.
MAX_HATCH_LEVEL πŸ”’
Cracking stages a turtle egg passes through before it hatches.
OVERWORLD_TIMELINE_TAG πŸ”’
Dimension timeline tag that carries the day timeline. Only dimensions on this tag (the overworld and its caves variant) apply the pre-dawn hatch boost; nether and end eggs stay at the base chance, matching vanilla’s per-dimension resolution of the gameplay/turtle_egg_hatch_chance attribute.
STEP_TRAMPLE_ODDS πŸ”’
One in this many chance to trample an egg while standing on it each tick.
TICKS_PER_DAY πŸ”’
Length of one full Minecraft day, in ticks.
TURTLE_EGG_PLACEMENT_PARTICLE_COUNT πŸ”’
Particle count for the β€œegg placed on sand” effect.