Skip to main content

Module firework_rocket

Module firework_rocket 

Source
Expand description

Firework rocket projectile entity (FireworkRocketEntity).

The server owns rocket movement, collision, Elytra boosting, lifetime, explosion damage, and entity-event dispatch. Firework trail and explosion particles are created by the client from synced rocket data and event 17.

Structsยง

FireworkRocketEntity
A launched firework rocket.
FireworkRocketState ๐Ÿ”’

Constantsยง

ELYTRA_POWER_ADD ๐Ÿ”’
ELYTRA_TARGET_SPEED ๐Ÿ”’
ELYTRA_VELOCITY_BLEND ๐Ÿ”’
EXPLOSION_RADIUS ๐Ÿ”’
EXPLOSION_RADIUS_SQUARED ๐Ÿ”’
HORIZONTAL_ACCELERATION ๐Ÿ”’
INITIAL_HORIZONTAL_DEVIATION ๐Ÿ”’
INITIAL_VERTICAL_VELOCITY ๐Ÿ”’
VERTICAL_ACCELERATION ๐Ÿ”’

Functionsยง

elytra_boosted_velocity ๐Ÿ”’
triangle_random ๐Ÿ”’