跳转至

/damage

文档版本:1.21.0.24

/damage命令command.damage.description

执行条件

该命令需要权限等级:gamedirectors|1。该命令需要开启作弊。

用法

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

command.damage.1.description

targettarget
基本类型。command.damage.target.description
amountint
基本类型。command.damage.amount.description
causeDamageCause
枚举类型,可选。command.enum.damagecause.description枚举值如下:
描述
piston command.enum.damagecause.piston
lava command.enum.damagecause.lava
campfire command.enum.damagecause.campfire
fire command.enum.damagecause.fire
anvil command.enum.damagecause.anvil
magma command.enum.damagecause.magma
soul_campfire command.enum.damagecause.soul_campfire
wither command.enum.damagecause.wither
falling_block command.enum.damagecause.falling_block
fireworks command.enum.damagecause.fireworks
thorns command.enum.damagecause.thorns
none command.enum.damagecause.none
sonic_boom command.enum.damagecause.sonic_boom
contact command.enum.damagecause.contact
override command.enum.damagecause.override
entity_attack command.enum.damagecause.entity_attack
projectile command.enum.damagecause.projectile
suffocation command.enum.damagecause.suffocation
fall command.enum.damagecause.fall
starve command.enum.damagecause.starve
ram_attack command.enum.damagecause.ram_attack
fire_tick command.enum.damagecause.fire_tick
stalactite command.enum.damagecause.stalactite
drowning command.enum.damagecause.drowning
block_explosion command.enum.damagecause.block_explosion
entity_explosion command.enum.damagecause.entity_explosion
void command.enum.damagecause.void
self_destruct command.enum.damagecause.self_destruct
magic command.enum.damagecause.magic
charging command.enum.damagecause.charging
stalagmite command.enum.damagecause.stalagmite
fly_into_wall command.enum.damagecause.fly_into_wall
lightning command.enum.damagecause.lightning
freezing command.enum.damagecause.freezing
temperature command.enum.damagecause.temperature
/damage <target:target> <amount:int> <cause:DamageCause> entity <damager:target>

command.damage.2.description

targettarget
基本类型。command.damage.target.description
amountint
基本类型。command.damage.amount.description
causeDamageCause
枚举类型。command.enum.damagecause.description枚举值如下:
描述
piston command.enum.damagecause.piston
lava command.enum.damagecause.lava
campfire command.enum.damagecause.campfire
fire command.enum.damagecause.fire
anvil command.enum.damagecause.anvil
magma command.enum.damagecause.magma
soul_campfire command.enum.damagecause.soul_campfire
wither command.enum.damagecause.wither
falling_block command.enum.damagecause.falling_block
fireworks command.enum.damagecause.fireworks
thorns command.enum.damagecause.thorns
none command.enum.damagecause.none
sonic_boom command.enum.damagecause.sonic_boom
contact command.enum.damagecause.contact
override command.enum.damagecause.override
entity_attack command.enum.damagecause.entity_attack
projectile command.enum.damagecause.projectile
suffocation command.enum.damagecause.suffocation
fall command.enum.damagecause.fall
starve command.enum.damagecause.starve
ram_attack command.enum.damagecause.ram_attack
fire_tick command.enum.damagecause.fire_tick
stalactite command.enum.damagecause.stalactite
drowning command.enum.damagecause.drowning
block_explosion command.enum.damagecause.block_explosion
entity_explosion command.enum.damagecause.entity_explosion
void command.enum.damagecause.void
self_destruct command.enum.damagecause.self_destruct
magic command.enum.damagecause.magic
charging command.enum.damagecause.charging
stalagmite command.enum.damagecause.stalagmite
fly_into_wall command.enum.damagecause.fly_into_wall
lightning command.enum.damagecause.lightning
freezing command.enum.damagecause.freezing
temperature command.enum.damagecause.temperature
originDamageOriginActor
枚举类型。command.enum.damageoriginactor.description单值枚举,请直接使用entity
damagertarget
基本类型。command.damage.damager.description