Apply Damage to Entities and Players
The /damage command in Minecraft Bedrock Edition lets you apply a set amount of damage directly to players or other entities. You can also specify the cause of the damage and choose which entity gets credit for the attack.
Map makers and server creators use this command to build custom traps, hazards, and combat mechanics. Because it alters gameplay directly, you must enable cheats in your world settings and have Game Directors permission to run it.
/damage <target: target> <amount: int> [cause: DamageCause]Damage with optional cause
/damage <target: target> <amount: int> <cause: DamageCause> entity <damager: target>Damage with optional cause, entity, damager
| Argument | Type | What it means |
|---|---|---|
amount | int | Required. Default `0`. An `integer` that specifies the amount of damage. |
cause | DamageCause | Optional. Default `none`. An `enum` of the damage cause. |
damager | target | A `selector` that specifies which entity will be treated as dealing the damage to the target. Should be one entity or player. |
target | target | Required. The target to damage. A player name or target selector. |
/damage @p 4Deals 4 points of damage to the nearest player with no specific cause.
/damage @s 2 noneApplies 2 points of damage to the player or entity executing the command using the default none cause.
/damage @a 6 noneInflicts 6 points of damage on all players currently in the world.
/damage @r 1Hits a random player in the world for 1 point of damage.
/damage Steve 10 none entity AlexDeals 10 points of damage to the player named Steve and makes the game treat Alex as the attacker.
/damage @e[c=1] 5 none entity @pDamages a single entity for 5 points and credits the nearest player for dealing the hit.
In Minecraft Java Edition, the /damage command works similarly but uses slightly different syntax keywords. Instead of using entity <damager>, Java Edition uses by <entity> to assign the attacker, and it also includes an extra at <location> option that is not present in the Bedrock Edition syntax.
Yes, the /damage command requires cheats to be enabled in your world, and your player account must have the Game Directors permission level.
Yes, by using the entity <damager: target> syntax form, you can make the game treat one specific entity or player as the source of the damage dealt to the target.
If you leave out the optional cause argument, the command automatically uses the default cause of none while still applying the damage amount.
/aimassist/camera/camerashake/clearspawnpoint/controlscheme/effect/event/gamemode/hud/inputpermission/kill/ride/spawnpoint/spreadplayers/summon/teleport