💥
Utility
/damage
Deal a set amount of damage to a player or mob.
At a glance
Syntax
Syntax
/damage <target> <amount> [type]commandtargetcoordsvaluerequiredoptional
See it
What it does
❤️❤️🖤🖤🖤
The target takes damage
Anatomy
Every part, explained
- 1
CommandRequired/damageApplies damage directly to an entity.
- 2
TargetRequired<target>Who takes the hit, e.g. @s or a mob.
- 3
AmountRequired<amount>Half-hearts of damage to deal, e.g. 5.
- 4
TypeOptional[type]Optional damage type, e.g. magic or fire.
Your turn
Try it yourself
Playground
3 tokens · press Enter to run
Copy & paste
Examples
/damage @s 5Deal 5 damage to yourself.
/damage @e[type=zombie] 10Hurt every zombie for 10 damage.
/damage @s 6 magicDeal 6 magic damage (ignores armor).
Avoid these
Common mistakes
✕
/damage @s✓
/damage @s 5You must give an amount of damage.
✕
/damage 5 @s✓
/damage @s 5Target comes first, then the amount.
Keep going