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Β§
- Snowball
Item - Behavior for the snowball item.
ConstantsΒ§
- SHOOT_
POWER π - Vanilla
SnowballItem.PROJECTILE_SHOOT_POWER. - THROW_
PITCH_ πJITTER_ BASE - Vanilla
SnowballItem.usethrow pitch jitter base. - THROW_
PITCH_ πJITTER_ SCALE - Vanilla
SnowballItem.usethrow pitch jitter scale:0.4 / (random * 0.4 + 0.8). - THROW_
SOUND_ πVOLUME - Vanilla
SnowballItem.usethrow sound volume. - THROW_
UNCERTAINTY π - Vanilla
SnowballItem.usethrow uncertainty (spawnProjectileFromRotation).