MCTOOLBOX
MC ToolboxMC TOOLBOX

Minecraft Damage Command Generator

Create current Java Edition /damage commands with heart presets, searchable damage types, source attribution, location context, and safe multi-target execution.

Command builder
1. Damage targets
Advanced target selector
Selector: @p
2. Amount and damage type
3. Damage context
Custom damage types can behave differently because datapacks define their tags and scaling. The generator validates syntax, not the server-side registry entry.
Generated command
/damage command

Damage summary

2damage points
1raw hearts

Actual health loss may be reduced or altered by armor, effects, enchantments, and damage-type tags.

minecraft:generic: General-purpose damage with standard rules and a generic death message.

Build accurate Minecraft /damage commands

The Java Edition /damage command applies a chosen number of damage points to an entity. One damage point equals half of a normal heart before armor, effects, enchantments, difficulty, and the selected damage type change the final result.

Damage types are registry entries that control death messages and behavior such as armor bypass, fire rules, exhaustion, knockback, and resistance. The vanilla autocomplete list changes with the selected version, including spear from 1.21.11 and sulfur cube damage from 26.2.

The optional context records where damage originated or which direct and indirect entities caused it. That attribution matters for aggression, statistics, advancements, loot, death messages, and datapack logic.

Heart-based presets

Choose half a heart, one heart, five hearts, lethal test damage, or enter any non-negative decimal damage amount.

Version-aware damage type catalog

Search vanilla IDs available in the selected release, or type a custom datapack damage type with its own namespace.

Source and cause context

Attribute damage to a direct source and optional indirect cause, or provide an origin position with absolute, relative, or local coordinates.

Safe multi-target commands

When a selector can match several entities, the tool generates execute as each target, moves execution to that entity, and applies /damage to @s.

How to generate a damage command

Choose Java 1.19.4 or later, then select the players or entities that should receive damage.

Pick a heart preset or enter a damage amount, then select the damage type that matches the game event you are creating.

Add entity attribution for attacks and projectiles, or location context for explosions and environmental hazards.

Copy the command and test it in a safe world. Armor and damage-type tags can make the observed health loss differ from the raw amount.

Create a /damage command

  1. Select targets and an amount.
  2. Choose a damage type.
  3. Add optional source or position context, then copy the command.

Minecraft damage command questions

How many damage points equal one heart?

Two damage points equal one standard heart before mitigation. An amount of 1 is half a heart and an amount of 10 is five hearts before armor and other rules.

What is the difference between by and from?

by identifies the direct damaging entity, such as an arrow. from identifies the entity responsible for that source, such as the skeleton that fired it.

Why did the target lose less health than the amount?

The command supplies raw damage. Armor, Resistance, enchantments, difficulty, invulnerability, and properties of the damage type can change the final health loss.

Can /damage affect multiple entities?

The direct Java argument resolves one entity. This generator supports a multi-result selector by wrapping it with /execute as and damaging @s once per result.

Which version added /damage?

Java Edition added /damage in 1.19.4. Select 1.19.4 or later to generate a command.