githubEdit

Damage Effect

Customization Options


source

The ResourceLocation for any registered MobEffect, including modded ones.


circle-info

Name: Damage Source

Key: source

Type: ResourceLocation

Default: minecraft:cactus

chevron-rightExamplehashtag
{
  "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.


circle-info

Name: Has Entity Source

Key: hasEntity

Type: Boolean

Default: false

chevron-rightExamplehashtag

strength

The strength of the damage effect.


circle-info

Name: Strength

Key: strength

Type: Integer

Range: 0 - 20

Default: 0

chevron-rightExamplehashtag

Last updated

Was this helpful?