Damage Effect

Customization Options


source

The ResourceLocation for any registered MobEffect, including modded ones.


Name: Damage Source

Key: source

Type: ResourceLocation

Default: minecraft:cactus

Example
{
  "auras": [
    {
      "aura": "DAMAGING",
      "damageEffect": {
        "source": "minecraft:in_fire"
      }
    }
  ]
}

hasEntity

If the damage source is sourced from an entity, this should be marked as true. This allows for the death messages to be displayed correctly in the event the target entity dies.


Name: Has Entity Source

Key: hasEntity

Type: Boolean

Default: false

Example
{
  "auras": [
    {
      "aura": "DAMAGING",
      "damageEffect": {
        "source": "minecraft:thorns",
        "hasEntity": true
      }
    }
  ]
}

strength

The strength of the damage effect.


Name: Strength

Key: strength

Type: Integer

Range: 0 - 20

Default: 0

Example
{
  "auras": [
    {
      "aura": "DAMAGING",
      "potionEffect": {
        "effect": "minecraft:wither",
        "strength": 5
      }
    }
  ]
}

Last updated