Minecraft Wiki
Advertisement
Dark Oak Sapling JE7 BE2.png
This article is a stub. 
You can help by expanding it.
Crafting Table JE4 BE3.png
This article describes content that may be included in Bedrock Edition. 
This content has appeared in Bedrock Edition 1.18.10 development versions, but the full update containing it has not been released yet.
damage
Permission level
required

1

Restrictions

Cheat only

Apply damage to the specified entities.

Syntax[]

damage <target: target> <amount: int> <cause: DamageCause> entity <damager: target>
damage <target: target> <amount: int> [cause: DamageCause]

Arguments[]

Gear (item).gif
This section is a work in progress. 
Please help in the expansion or creation of this article by expanding or improving it. The talk page may contain suggestions.

target: target: CommandSelector<Actor>

Specifies the target(s) to damage.
Must be a player name or a target selector.

amount: int: int

Specifies the value of damage to deal to.

cause: DamageCause

Specifies the type of the damage. Affects death messages for example.
All possible arguments are listed on the official add-on documentation.
Name Description Notes
all General damage
anvil Caused by a falling anvil. Reduced damage to targets wearing a helmet.
block-explosion Caused the explosion of a block Reduced damage to targets equipped with armor, with extra reduction per tier of Blast Protection.
charging [more information needed]
contact Caused by contact with a damage-inflicting block. Reduced damage to targets equipped with armor, with extra reduction per tier of Protection.
drowning Caused by lacking oxygen.
enemy-attack Caused by a contact with a mob. Reduced damage to targets equipped with armor, with extra reduction per tier of Protection.
enemy-explosion Caused by the explosion of a mob. Reduced damage to targets equipped with armor, with extra reduction per tier of Blast Protection.
fall Caused by falling from higher ground. Reduced damage to targets equipped with Feather Falling or Protection armor. Some mobs are immune to or take less damage from fall damage.
falling_block [more information needed]
fire Caused by standing in fire.
fire_tick Caused by being on fire Reduced damage to targets equipped with Fire Protection of Protection. Blazes, ghasts, magma cubes, withers, wither skeletons and zombified piglins are immune to burning.

damager: target: CommandSelector<Actor>

Specifies the damager who dealt the damage.

Results[]

CommandTriggerBedrock Edition
anythe arguments are not specified correctly Failed
if <amount: int> is out of range (0-2147483647)
if cause: DamageCause is an invalid damage type
/... entity ...if <damager: target> targeting multiple targets
anyOn successDealt damage to targets

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyBedrock EditionOn fail0N/AN/A
On successthe number of entities who took the damageN/AN/A

Examples[]

  • Let villager named villager_1 to deal 1♥ damage to nearby iron golem(s):
    • /damage @e[type=iron_golem] 1 entity_attack entity @e[type=villager, name="villager_1"]

History[]

Upcoming Bedrock Edition
1.18.10beta 1.18.10.26Added /damage.
Advertisement