Skip to main content

Module thrown_egg

Module thrown_egg 

Source
Expand description

Thrown egg projectile entity (ThrownEgg).

Mirrors vanilla ThrownEgg (yarn EggEntity) on the Steel Projectile → ThrowableProjectile → ThrowableItemProjectile trait stack. On impact it may hatch one chick (or four with a rarer roll), each born as a baby that inherits the egg stack’s chicken/variant component when present. The egg then broadcasts the item-break entity event and discards itself.

Structs§

ThrownEggEntity
A thrown egg.

Constants§

BABY_CHICK_AGE 🔒
Baby chicken start age applied to hatched chicks (vanilla getBabyStartAge).
HATCH_ROLL_DENOMINATOR 🔒
Denomator of the one-in-eight hatch chance (vanilla ThrownEgg.onHit).
QUAD_HATCH_COUNT 🔒
Chicks born when the quadruple roll succeeds.
QUAD_HATCH_ROLL_DENOMINATOR 🔒
Denominator of the one-in-thirty-two quadruple-hatch chance.
ZERO_SIZED_DIMENSIONS 🔒
Zero-sized dimensions used as the pre-hatch footprint (vanilla ThrownEgg.ZERO_SIZED_DIMENSIONS).