All commands
💥
Utility

/damage

Deal a set amount of damage to a player or mob.

Try in Simulator

At a glance

Syntax

Syntax
/damage <target> <amount> [type]
commandtargetcoordsvaluerequiredoptional

See it

What it does

❤️❤️🖤🖤🖤
The target takes damage

Anatomy

Every part, explained

  1. 1
    /damageCommandRequired

    Applies damage directly to an entity.

  2. 2
    <target>TargetRequired

    Who takes the hit, e.g. @s or a mob.

  3. 3
    <amount>AmountRequired

    Half-hearts of damage to deal, e.g. 5.

  4. 4
    [type]TypeOptional

    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 5

Deal 5 damage to yourself.

/damage @e[type=zombie] 10

Hurt every zombie for 10 damage.

/damage @s 6 magic

Deal 6 magic damage (ignores armor).

Avoid these

Common mistakes

/damage @s
/damage @s 5

You must give an amount of damage.

/damage 5 @s
/damage @s 5

Target comes first, then the amount.

Keep going

Related commands