Damage
Introduction
Sourced by the Bedrock Commands Community (BCC) Discord
Introduced in Minecraft Release 1.18.10, the /damage command deals precise damage to specified entities. With this change, the clunky methods like using /effect command to damage entities are rendered obsolete, making maps and other creations more powerful.
Syntax
- There are two ways the damage command can be used:
/damage <Target> <Amount> [Cause]/damage <Target> <Amount> <Cause> entity <Damager>
Arguments
- Phrases not contained in angle <> or square [] brackets instruct you to type it as-is.
- Phrases contained within brackets are variables, these need to be replaced:
<>Angle brackets mean the variable is required.[]Square brackets mean the variable is optional.
Variables
TargetThis is your typical entity selector, such as@s,@e, or"cda94581". Multiple entities may be selected at a time to deal the damage to multiple targets.AmountThis is a whole number, which specifies the amount of damage to deal to the targets. The minimum value is0and the maximum value is2147483647, or the signed 32-bit integer limit.CauseThis specifies the "reason" the damage was dealt. This cause will appear in death messages (X hit the ground too hard for cause: fall) be used in damage calculation with armor (the value dealt in Amount may be different depending on the worn armor), and used in a large variety of other things, such as in Behavior Pack/Add-ons. A full list of all the damage causes can be found below.DamagerIf Cause was something to do with entities(such as entity_attack), this specifies where the damage came from(the entity that dealt the attack). This is limited to only 1 target. An error will be thrown if multiple targets are found from the selector.
Note: the
<Cause> entity <Damager>is only required when the Cause has to do with another entity(entity_attack). Otherwise, follow the first syntax.
Examples
# Deal 4 damage to all players
/damage @a 4
# Deal 3 'fire' damage to all entities of type 'sheep'
/damage @e[type=sheep] 3 fire
# Deal 40 'entity attack' damage from a random player to all entities of type 'sheep'
/damage @e[type=sheep] 40 entity_attack entity @rList of Damage Causes
Listed below are all the 'cause' values that can be used in the /damage command:
| Damage Cause |
|---|
all |
anvil |
block_explosion |
campfire |
charging |
contact |
drowning |
entity_attack |
entity_explosion |
fall |
falling_block |
fire |
fire_tick |
fireworks |
fly_into_wall |
freezing |
lava |
lightning |
magic |
magma |
none |
override |
piston |
projectile |
self_destruct |
ram_attack |
sonic_boom |
soul_campfire |
stalactite |
stalagmite |
starve |
suffocation |
temperature |
thorns |
void |
wither |


