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.

<details> <summary>Preregistered Damage Source Types</summary> <ul> <li>IN_FIRE</li> <li>LIGHTNING_BOLT</li> <li>ON_FIRE</li> <li>LAVA</li> <li>HOT_FLOOR</li> <li>IN_WALL</li> <li>CRAMMING</li> <li>DROWN</li> <li>STARVE</li> <li>CACTUS</li> <li>FALL</li> <li>FLY_INTO_WALL</li> <li>OUT_OF_WORLD</li> <li>GENERIC</li> <li>MAGIC</li> <li>WITHER</li> <li>ANVIL</li> <li>FALLING_BLOCK</li> <li>DRAGON_BREATH</li> <li>FIREWORKS</li> </ul> </details>
ZenScript
Copy
<damageSource:type>;

<damageSource:IN_FIRE>;