Mob Effect on Attack

ID
"cobblebadges:mob_effect_on_attack"

Applies a Mob Effectarrow-up-right on entities attacked.

Data Structure

{
  "instance": {
    "id": "[mob effect identifier]", // See Mob Effects
    "amplifier": [amount], // Amplifier of 0 will give an effect at lvl 1 etc.
    "duration": [amount], // The duration in ticks of the effect (20 ticks per seconds)
    "ambient": [true | false],
    "show_particles": [true | false], // Show or Hide particles when the effect is active
    "show_icon": [true | false] // Different background & less particles
  }
}

Example

Will apply the effect Slowness 4 for 10 seconds on attacked entities

{
  "instance": {
    "id": "minecraft:slowness",
    "amplifier": 3,
    "duration": 200
  }
}

Last updated