MC Commands

Minecraft /damage Command Generator | Easy & Fast

Easily generate the /damage command to apply a specific amount of damage to a target, specifying damage types and causes for precise control.

Generated Command

/damage @p 2

Minecraft /damage Command Detailed Guide & Generator

This page provides a detailed guide on how to use the Minecraft /damage command to apply specific damage to entities. It covers the exact syntax, how to calculate the damage amount (1 point = half a heart), the various damage types (damageType) and their effects, and how to control damage events in custom maps or data packs by setting the location (at), direct cause (by), and indirect source (from). Whether you are a beginner or a map maker, this tool helps you easily generate the correct /damage command. It's your ultimate guide to mastering Minecraft commands.

Command Usage Examples

1. Fatal Fall Simulation

Applies 'fall' type damage as if the target fell from the sky. Feather falling enchantments will mitigate this.

1.20.5+/damage @p 20 minecraft:fall
~ 1.20.4/damage @p 20 minecraft:fall

2. Curse of the Briar

Inflicts damage using the sweet berry bush type, causing a unique death message if the player dies.

1.20.5+/damage @p 5 minecraft:sweet_berry_bush
~ 1.20.4/damage @p 5 minecraft:sweet_berry_bush

3. Location-Based Damage

Deals directional damage as if an explosion occurred at a coordinate, applying knockback.

1.20.5+/damage @p 10 minecraft:explosion at ~ ~ ~
~ 1.20.4/damage @p 10 minecraft:explosion at ~ ~ ~

4. Damage By Entity

Specifies an attacker, making it seem as if a zombie dealt the blow.

1.20.5+/damage @p 5 minecraft:player_attack by @e[type=zombie,limit=1]
~ 1.20.4/damage @p 5 minecraft:player_attack by @e[type=zombie,limit=1]

5. Damage with Cause

Details the exact cause, such as taking damage from an arrow shot by a skeleton.

1.20.5+/damage @p 5 minecraft:arrow by @e[type=skeleton,limit=1] cause @e[type=arrow,limit=1]
~ 1.20.4/damage @p 5 minecraft:arrow by @e[type=skeleton,limit=1] cause @e[type=arrow,limit=1]

Frequently Asked Questions (FAQ)

Q. What does the /damage command do?

A. The /damage command deals a specified amount of damage to a targeted entity. You can specify the damage type (like fire, fall, or magic) to simulate different kinds of attacks.

Q. How is the damage amount calculated?

A. One point of damage equals half a heart. Therefore, an amount of 2 takes away 1 full heart, and 10 takes away 5 full hearts.

Q. Why specify a Damage Type?

A. Specifying a damage type allows the damage to interact properly with armor enchantments (like Fire Protection or Blast Protection) and determines the death message if the entity dies.

Q. When should I use the 'at' location parameter?

A. You use 'at' to specify the origin of the damage, which affects the direction of knockback. The target will be knocked away from the specified coordinates.

Q. What is the difference between 'by' and 'from'?

A. 'by' refers to the entity directly causing the damage (e.g., an arrow in flight), while 'from' is the entity that indirectly caused it (e.g., the skeleton or player who shot the arrow).

Q. Why use /damage instead of /kill?

A. /kill instantly eliminates the target regardless of health or armor. /damage applies normal damage processing, allowing the target to survive, take reduced damage from armor, and experience invulnerability frames.