Iron sword

Minecraft Damage Command Generator

The /damage command does more than subtract hearts: the damage type decides whether armor and enchantments apply, and the by/from context decides the death message and kill credit. Set the amount, the type and the context here instead of memorising the argument order.

  • Damage amount and damage type id
  • at <position>, by <entity> and from <cause> context modes
  • Kill credit and death messages follow the context you set

FAQ

Why does /damage ignore armor sometimes?

The damage type decides whether armor and enchantments apply. A type flagged to bypass armor (like magic or out-of-world) hits full, while a physical type is reduced. Pick the type that matches the effect you want.

How do I make the death message credit an attacker?

Use the by context (and optionally from) to attribute the damage to an entity. /damage @p 10 minecraft:player_attack by <attacker> sets kill credit and the death message accordingly.

Is /damage available on Bedrock?

No -- /damage is a newer Java command. Bedrock has no direct equivalent, so the generator marks this output as Java Edition only.