DamageSource Bracket Handler
Link to damagesource-bracket-handler
The Damage Source Bracket Handler allows you to refer to IDamageSources in the game.
If the Damage source is not one of the predefined ones, this will create a new one with the given name.
Preregistered Damage Source Types
- IN_FIRE
- LIGHTNING_BOLT
- ON_FIRE
- LAVA
- HOT_FLOOR
- IN_WALL
- CRAMMING
- DROWN
- STARVE
- CACTUS
- FALL
- FLY_INTO_WALL
- OUT_OF_WORLD
- GENERIC
- MAGIC
- WITHER
- ANVIL
- FALLING_BLOCK
- DRAGON_BREATH
- FIREWORKS
ZenScript Copy<damageSource:type>;
<damageSource:IN_FIRE>;