/

/damage

op 2Entities

/damage arrived in 1.19.4 and does what /effect instant_damage never could: it deals a specific damage type, so armour, resistance, enchantments and the death message all behave as if the damage came from that source.

Command1 to fix
10
/damage @e
  • Amount is required.
Press C to copy
All entities
@e

Who or what the command applies to

Amount is required.

optional
optional

Examples

  • Half a heart
    /damage @s 1
  • Unblockable magic
    /damage @p 6 minecraft:magic

Common questions about /damage

How much is one heart?

Two. Damage is measured in half-hearts, so /damage @s 20 kills a full-health player outright.

How do I make a player death say someone killed them?

Use the by form with the attacking entity. The death message then names that entity, exactly as a real kill would.