Skip to main content

Module thrown_potion

Module thrown_potion 

Source
Expand description

Shared impact and water interaction logic for thrown potions

Constants§

DEFAULT_GRAVITY 🔒
Gravity of a thrown potion.
SPLASH_HORIZONTAL_REACH
How far the splash search box extends past the potion’s box on the X and Z axes.
SPLASH_RANGE_SQ
Squared distance within which a splash reaches an entity.
SPLASH_VERTICAL_REACH
How far the splash search box extends past the potion’s box on the Y axis.

Traits§

AbstractThrownPotion
Shared behavior for splash and lingering potion projectiles

Functions§

douse_lit_campfire 🔒
Plays the extinguish event, douses the campfire and clears LIT.
potion_has_instant_effects 🔒
Checks for instant effects in the base potion excluding custom effects