/damage Command in Minecraft Bedrock Edition

Apply Damage to Entities and Players

Bedrock EditionPlayers & EntitiesPermission: Game DirectorsCheats: YesJava version →

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.

Syntax (2 forms)

  1. /damage <target: target> <amount: int> [cause: DamageCause]

    Damage with optional cause

  2. /damage <target: target> <amount: int> <cause: DamageCause> entity <damager: target>

    Damage with optional cause, entity, damager

Arguments

ArgumentTypeWhat it means
amountintRequired. Default `0`. An `integer` that specifies the amount of damage.
causeDamageCauseOptional. Default `none`. An `enum` of the damage cause.
damagertargetA `selector` that specifies which entity will be treated as dealing the damage to the target. Should be one entity or player.
targettargetRequired. The target to damage. A player name or target selector.

Examples

Tips

Common mistakes

Bedrock vs Java

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.

See /damage in Java Edition →

FAQ

Do I need cheats enabled to use the /damage command?

Yes, the /damage command requires cheats to be enabled in your world, and your player account must have the Game Directors permission level.

Can I make a mob attack another mob using /damage?

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.

What happens if I do not specify a damage cause?

If you leave out the optional cause argument, the command automatically uses the default cause of none while still applying the damage amount.

Related commands

/aimassist/camera/camerashake/clearspawnpoint/controlscheme/effect/event/gamemode/hud/inputpermission/kill/ride/spawnpoint/spreadplayers/summon/teleport