/damage
Deals a precise amount of damage to entities using a chosen damage type, which determines armor/effect interactions and the death message. Optionally attribute the damage to an attacker or a source position (for knockback direction). Added in 1.19.4.
What is /damage used for?
What /damage is for
Deals a precise amount of damage to entities using a chosen damage type, which controls armor interaction and the death message.
When to use /damage
Hurt players or mobs by an exact amount in maps and datapacks — cleaner than effects or /kill when you want partial, typed damage. Added in 1.19.4.
Syntax
Parameters
- target
- entity selector
- Entities to hurt.
- amount
- float
- Half-hearts of damage (2 = 1 heart).
- damageTypeoptional
- damage type ID
- e.g. minecraft:magic, minecraft:fall.
Command builder
Fill in the options below to generate a ready-to-paste /damage command.
Entities to hurt.
Half-hearts of damage (2 = 1 heart).
e.g. minecraft:magic, minecraft:fall.
Examples
Take 3 hearts of generic damage.
Magically wipe out all zombies.
Common questions
How do I damage a player by an exact amount?
Run /damage <target> <amount>, where amount is in half-hearts — /damage @s 6 deals 3 hearts of damage.
Can I set who gets credit for the kill?
Yes — /damage <target> <amount> by <attacker> attributes it, affecting knockback direction and the death message.
Permission level
/damage requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.