DamageEffect - Septillihedron/SuperheroesPlusSchema GitHub Wiki

DamageEffect - An object

Properties

mode - Required enum

Allowed values

  • ALL
  • OTHER
  • SELF

The mode of operation

Defaults to SELF

damage - Optional Expression

The amount damage that will be dealt

Defaults to 5

damageCause - Optional EntityDamageEvent.DamageCause

The type of damage that will be dealt

Defaults to CUSTOM

shouldTriggerEvents - Optional boolean

Whether to make the damage come from the user, thus triggering things like thorns

Defaults to false