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§
- Abstract
Thrown Potion - 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