Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Apply damage to the specified entities. See more in the Damage Command documentation.
| Permission Level | Game Directors |
|---|---|
| Requires Cheats? | Yes |
Usage
Damage with optional cause
/damage <target: target> <amount: int> [cause: DamageCause]
Damage a target with an amount of damage. Optionally include a cause.
Damage with optional cause, entity, damager
/damage <target: target> <amount: int> <cause: DamageCause> entity <damager: target>
Damage a target with an amount of damage. Optionally include a cause, entity, and damager.
Arguments
amount: int Required. Default0. Anintegerthat specifies the amount of damage.cause: DamageCause Optional. Defaultnone. Anenumof the damage cause.damager: target Aselectorthat 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.
Enums
DamageCause
When using the Damage command, this specifies the type of damage being dealt.
Values
pistonPistonlavaLavacampfirefireFireanvilAnvilmagmaMagmasoul_campfirewitherWitherfalling_blockFalling BlockfireworksFireworksthornsThornsnoneNonecontactContactsonic_boomoverrideOverrideentity_attackEntity AttackprojectileProjectilesuffocationSuffocationmace_smashfallFallstarveStarveram_attackfire_tickFire TickstalactiteStalactitedrowningDrowningblock_explosionBlock Explosionentity_explosionEntity ExplosionvoidVoidself_destructmagicMagicchargingChargingstalagmiteStalagmitefly_into_wallFly into WalllightningLightningfreezingFreezingtemperatureTemperature