Skip to main content

Module snowball

Module snowball 

Source
Expand description

Snowball item behavior (SnowballItem).

Throwing a snowball spawns a SnowballEntity from the player’s eye, shot along their look direction, and consumes one snowball unless the player has infinite materials. Mirrors vanilla SnowballItem.use.

StructsΒ§

SnowballItem
Behavior for the snowball item.

ConstantsΒ§

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