Minecraft Damage Command Generator
Easily generate the /damage command to apply a specific amount of damage to a target, specifying damage types and causes for precise control.
/damage @p 2What this generator does
Choose the target, amount, damage type, and either the attacker (by and from) or the origin (at), and the generator builds the /damage command. /damage was added in 1.19.4, so choosing an older version shows that it is unavailable. The share link button sends your exact settings to someone else.
Command Usage Examples
1. Five hearts of fall damage
An amount of 1 is half a heart, so 10 is five hearts. The fall type ignores armor points but is reduced by Feather Falling and Protection.
/damage @p 10 minecraft:fall2. Magic damage that ignores armor
The magic type ignores armor points, so the amount lands almost in full even through armor. Often used for traps and boss attacks.
/damage @p 4 minecraft:magic3. As if the nearest zombie hit you
Setting the attacker with by makes the death message name that mob if the target dies. Mob melee attacks use mob_attack; player attacks use player_attack.
/damage @p 6 minecraft:mob_attack by @e[type=zombie,limit=1,sort=nearest]4. As if hit by a skeleton's arrow
by takes the entity that hit directly (the arrow), and from takes the entity behind it (the skeleton that shot it). Swapping them makes the death message read oddly.
/damage @p 5 minecraft:arrow by @e[type=arrow,limit=1,sort=nearest] from @e[type=skeleton,limit=1,sort=nearest]5. Explosion damage from a position
Use at to give only the position the damage came from, with no attacking entity. at and by cannot be used together. The explosion type is reduced by Blast Protection.
/damage @p 10 minecraft:explosion at ~ ~ ~/damage changes by version (Java Edition)
/damage is a fairly recent command, so older versions do not have it.
| Version | Change |
|---|---|
| 1.19.4 | Added the /damage command and damage types (damage_type). In older versions, use the Instant Damage effect (/effect) or /kill instead. |
How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). The damage type list is extracted from the official server jar's data generator reports, and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.
Common damage types
Each damage type is reduced by different things. All for Java Edition.
1. What each type does
· minecraft:fall: ignores armor, reduced by Feather Falling and Protection · minecraft:magic: ignores armor · minecraft:explosion: reduced by Blast Protection · minecraft:on_fire: reduced by Fire Protection · minecraft:out_of_world: ignores both armor and invulnerability · minecraft:generic: plain damage with no special traits
2. Amount and health
· Amount 1 = half a heart · Player base health = 20 (10 hearts) · Zombie 20, skeleton 20, creeper 20, enderman 40
Frequently Asked Questions (FAQ)
Q. I get 'Target is invulnerable to the given damage type'.
A. The target does not take that type of damage. Typical cases are players in Creative or Spectator mode and entities with the Invulnerable tag. Creative players can only be hurt by types that bypass invulnerability, such as minecraft:out_of_world.
Q. I get 'Can't find element ... of type minecraft:damage_type'.
A. The damage type name is wrong. Use the exact ID, such as thorns (not thorn) or on_fire (not burn). Picking from the generator's list avoids typos.
Q. The target lost less health than the amount I entered.
A. Depending on the damage type, armor, protection enchantments and the Resistance effect apply. To deal exactly the amount you set, use a type that ignores armor, such as magic. An amount of 1 is half a heart, and a player's base health is 20 (10 hearts).
Q. What is the difference between by and from?
A. by is the entity that dealt the damage directly (an arrow, a fireball), and from is the entity behind it (the skeleton or player that shot the arrow). For direct melee hits, by alone is enough.
Q. I ran the command several times, but the damage applied only once.
A. /damage respects the brief invulnerability after being hit, just like normal attacks. Running it several times in the same tick may only apply the first, so put the full amount in one command or space the runs out.
Q. Should I use /kill or /damage?
A. Use /kill to remove something for sure, and /damage to apply damage by the game's rules and leave a chance to survive. /damage applies armor and enchantments, and the death message matches the damage type and attacker.