Skip to main content

Module egg

Module egg 

Source
Expand description

Egg item behavior (EggItem).

Throwing an egg spawns a ThrownEggEntity from the player’s eye, shot along their look direction, and consumes one egg unless the player has infinite materials. Mirrors vanilla EggItem.use.

StructsΒ§

EggItem
Behavior for the egg item.

ConstantsΒ§

SHOOT_POWER πŸ”’
Vanilla EggItem.PROJECTILE_SHOOT_POWER.
THROW_PITCH_JITTER_BASE πŸ”’
Vanilla EggItem.use throw pitch jitter base.
THROW_PITCH_JITTER_SCALE πŸ”’
Vanilla EggItem.use throw pitch jitter scale: 0.4 / (random * 0.4 + 0.8).
THROW_SOUND_VOLUME πŸ”’
Vanilla EggItem.use throw sound volume.
THROW_UNCERTAINTY πŸ”’
Vanilla EggItem.use throw uncertainty (spawnProjectileFromRotation).