Entity paper/entity_damage

Damage Entity

Deals a specified amount of damage to a living entity.

Note: Damage is affected by armour, enchantments, and the entity's damage modifier. The entity may die if health reaches 0.

Inputs

NameTypeOptionalDescription
exec exec Incoming execution.
entity entity The living entity to damage.
amount number Damage amount.

Outputs

NameTypeDescription
exec exec Continues after dealing damage.
newHealth number Health of the entity after damage.

Properties

KeyTypeDefaultDescription
amount number "1" How much damage to deal (half-hearts).