Edit

Share via


Entity Documentation - minecraft:attack

Allows an entity to define an entity's melee attack and any additional effects on it's attack.

Attack Properties

Name Default Value Type Description Example Values
damage not set Range of floats Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it. Biceson: 6, Sheepomelon: 3, Axe Turret: 400
effect_duration 0 Decimal number Duration in seconds of the status ailment applied to the damaged entity.
effect_name not set String Identifier of the status ailment to apply to an entity attacked by this entity's melee attack.

Samples

Biceson

"minecraft:attack": {
  "damage": 6
}

Sheepomelon

"minecraft:attack": {
  "damage": 3
}

Axe Turret

"minecraft:attack": {
  "damage": 400
}