Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
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
. Aninteger
that specifies the amount of damage.cause
: DamageCause Optional. Defaultnone
. Anenum
of the damage cause.damager
: target Aselector
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.
Enums
DamageCause
When using the Damage command, this specifies the type of damage being dealt.
Values
piston
Pistonlava
Lavacampfire
fire
Fireanvil
Anvilmagma
Magmasoul_campfire
wither
Witherfalling_block
Falling Blockfireworks
Fireworksthorns
Thornsnone
Nonesonic_boom
contact
Contactoverride
Overrideentity_attack
Entity Attackprojectile
Projectilesuffocation
Suffocationmace_smash
fall
Fallstarve
Starveram_attack
fire_tick
Fire Tickstalactite
Stalactitedrowning
Drowningblock_explosion
Block Explosionentity_explosion
Entity Explosionvoid
Voidself_destruct
magic
Magiccharging
Chargingstalagmite
Stalagmitefly_into_wall
Fly into Walllightning
Lightningfreezing
Freezingtemperature
Temperature