All maps archive
MinecraftMaps.com
Adventure▼
Parkour▼
Survival▼
Puzzle▼
Horror▼
Mini-Games▼
Builds▼
Tools
MinecraftMaps.com

The largest collection of Minecraft maps. Download adventure, parkour, survival, puzzle, and more maps for free.

DiscordTwitter

Categories

Adventure MapsParkour MapsSurvival MapsPuzzle MapsHorror MapsCreation Maps

Resources

Latest MapsPopular MapsHall of FameSearch MapsMinecraft ToolsSubmit a MapMinecraft Seeds

Information

How to Install MapsMinecraft Dungeons 2FAQAbout UsContactPrivacy PolicyTerms of Service

Game Databases

Minecraft Dungeons DatabasePalworld DatabaseOnimusha DatabaseWoW Forever DatabaseDimraeth ToolsWar of Genesis Idle Loot WikiGacha Game DatabaseStar Wars Zero Company DatabaseValheim WikiPersona CompendiumSolarpunk ToolsGothic 1 Remake WikiWitcher 3 WikiFatekeeper ToolsRomestead DatabaseStardew Valley Database7 Days to Die DatabaseTerraria Seed ViewerPokemon Card PricesLogo Font Generator
AFK Arena|Game Guides|Co-op Games|Pokemon Tools|Anime Filler List|Naruto
Copyright © MinecraftMaps.com 2011-2026. All rights reserved.Built for the community♥·Not affiliated with Mojang or Microsoft

Damage Command - Deal Exact Damage To Any Entity

Build a /damage command to deal a precise amount of damage to any entity. Pick from every damage type and set the source position or attacking entity.

Generated Command

/damage @p 4 minecraft:player_attack
Version
Loading...

The /damage command (Java 1.19.4+) deals damage to entities. The damage type determines how armor and enchantments interact with the damage. Use at to specify where the damage comes from (for knockback direction) or by to specify the attacking entity.

What Is the Minecraft Damage Command?

The /damage command deals a precise amount of damage to any entity using a chosen damage type. Unlike /kill, which removes an entity instantly, /damage applies a set HP amount that respects armor, enchantments, and effects, making it ideal for custom combat systems, traps, and boss mechanics.

The syntax is /damage [target] [amount] [damageType] [at position | by entity]. The amount is measured in HP, where 1 HP is half a heart, so a full-health player has 20 HP. The damage type controls how armor, enchantments, and difficulty scaling apply to that amount.

Each damage type behaves differently: some bypass armor (magic, starve, out_of_world), some apply burning or freezing effects, and some scale with difficulty. Pick the type that matches the hazard you want to model, then set a source position or attacking entity for knockback.

How to Use This Damage Command Generator

1. Pick a target selector (@s, @p, @e, @a, @r) or aim the command at a player.

2. Set the damage amount in HP. One HP is half a heart, so 20 HP is full health.

3. Choose a damage type. Each one interacts differently with armor, enchantments, and mob properties.

4. Optionally set a source: an entity (by) or a position (at). This sets knockback direction and the death message.

5. Copy the command and paste it into Minecraft chat or a command block.

Minecraft Damage Types Explained

Each damage type has its own exhaustion cost and scaling behavior. Here are the key categories:

Damage TypeExhaustionScalingNotes
player_attack0.1Non-player onlyStandard melee hit
mob_attack0.1Non-player onlyZombie, skeleton melee, etc.
arrow0.1Non-player onlyBow and crossbow projectiles
fall0Non-player onlyFall damage, uses fall messages
explosion0.1AlwaysTNT, creeper blasts
lava0.1Non-player onlyApplies burning effect
drown0Non-player onlyApplies drowning effect
starve0Non-player onlyBypasses armor
magic0Non-player onlyBypasses armor
freeze0Non-player onlyPowder snow, applies freezing
sonic_boom0AlwaysWarden ranged attack, bypasses armor
mace_smash0.1Non-player onlyMace fall attack
wind_charge0.1Non-player onlyBreeze wind charge projectile
out_of_world0Non-player onlyVoid damage, bypasses everything

Exhaustion is how much hunger the damage costs the player on top of the HP loss. Scaling controls whether difficulty level changes the amount: "always" scales on every difficulty, "non-player only" scales only when a non-player entity causes it.

Frequently Asked Questions

What is the /damage command in Minecraft?

The /damage command deals a specified amount of HP damage to a target entity using a chosen damage type. The syntax is /damage <target> <amount> [<damageType>] [at <position> | by <entity>]. It respects armor, enchantments, and resistance effects based on the damage type chosen.

How many damage types are there in Minecraft Java Edition?

Java Edition registers dozens of damage types, including physical types like player_attack, mob_attack, and arrow, environmental types like fall, drown, and freeze, fire types like in_fire and lava, and special types like sonic_boom and mace_smash. The version selector loads the exact set for the version you pick.

Does the /damage command bypass armor?

It depends on the damage type. Types like magic, starve, and out_of_world bypass armor entirely. Physical types like player_attack and mob_attack are reduced by armor and protection enchantments. The damage type's scaling setting also controls whether difficulty level changes the final amount.

How do I set who deals the damage for knockback?

Use the by option: /damage @p 4 minecraft:mob_attack by @e[type=zombie,limit=1]. The knockback then comes from that entity instead of the command block. Use at <x> <y> <z> instead to push the target away from a fixed position.

What is the difference between HP and hearts in the damage amount?

Damage is measured in HP, where 1 HP equals half a heart. A full-health player has 20 HP, which is 10 hearts. So /damage @s 6 removes three hearts before armor and enchantments are applied.

Browse more Minecraft tools:

Kill Command GeneratorBrowse All Tools

Related tools

SummonCustom NBT, equipment, effects, and entity settingsEffectStatus effects with duration and amplifierKillTarget selectors and entity type filtersRideMount and dismount entitiesEnchantEnchant items with any enchantment and levelAttributeGet, set, and modify entity attributes