/damage¶
文档版本:1.21.60.21
/damage命令command.damage.description
执行条件
该命令需要权限等级:gamedirectors|1。该命令需要开启作弊。
用法¶
command.damage.1.description
target:target- 基本类型。command.damage.target.description
amount:int- 基本类型。command.damage.amount.description
cause:DamageCause- 枚举类型,可选。command.enum.damagecause.description枚举值如下:
-
值 描述 pistoncommand.enum.damagecause.piston lavacommand.enum.damagecause.lava campfirecommand.enum.damagecause.campfire firecommand.enum.damagecause.fire anvilcommand.enum.damagecause.anvil magmacommand.enum.damagecause.magma soul_campfirecommand.enum.damagecause.soul_campfire withercommand.enum.damagecause.wither falling_blockcommand.enum.damagecause.falling_block fireworkscommand.enum.damagecause.fireworks thornscommand.enum.damagecause.thorns nonecommand.enum.damagecause.none sonic_boomcommand.enum.damagecause.sonic_boom contactcommand.enum.damagecause.contact overridecommand.enum.damagecause.override entity_attackcommand.enum.damagecause.entity_attack projectilecommand.enum.damagecause.projectile suffocationcommand.enum.damagecause.suffocation mace_smashcommand.enum.damagecause.mace_smash fallcommand.enum.damagecause.fall starvecommand.enum.damagecause.starve ram_attackcommand.enum.damagecause.ram_attack fire_tickcommand.enum.damagecause.fire_tick stalactitecommand.enum.damagecause.stalactite drowningcommand.enum.damagecause.drowning block_explosioncommand.enum.damagecause.block_explosion entity_explosioncommand.enum.damagecause.entity_explosion voidcommand.enum.damagecause.void self_destructcommand.enum.damagecause.self_destruct magiccommand.enum.damagecause.magic chargingcommand.enum.damagecause.charging stalagmitecommand.enum.damagecause.stalagmite fly_into_wallcommand.enum.damagecause.fly_into_wall lightningcommand.enum.damagecause.lightning freezingcommand.enum.damagecause.freezing temperaturecommand.enum.damagecause.temperature
command.damage.2.description
target:target- 基本类型。command.damage.target.description
amount:int- 基本类型。command.damage.amount.description
cause:DamageCause- 枚举类型。command.enum.damagecause.description枚举值如下:
-
值 描述 pistoncommand.enum.damagecause.piston lavacommand.enum.damagecause.lava campfirecommand.enum.damagecause.campfire firecommand.enum.damagecause.fire anvilcommand.enum.damagecause.anvil magmacommand.enum.damagecause.magma soul_campfirecommand.enum.damagecause.soul_campfire withercommand.enum.damagecause.wither falling_blockcommand.enum.damagecause.falling_block fireworkscommand.enum.damagecause.fireworks thornscommand.enum.damagecause.thorns nonecommand.enum.damagecause.none sonic_boomcommand.enum.damagecause.sonic_boom contactcommand.enum.damagecause.contact overridecommand.enum.damagecause.override entity_attackcommand.enum.damagecause.entity_attack projectilecommand.enum.damagecause.projectile suffocationcommand.enum.damagecause.suffocation mace_smashcommand.enum.damagecause.mace_smash fallcommand.enum.damagecause.fall starvecommand.enum.damagecause.starve ram_attackcommand.enum.damagecause.ram_attack fire_tickcommand.enum.damagecause.fire_tick stalactitecommand.enum.damagecause.stalactite drowningcommand.enum.damagecause.drowning block_explosioncommand.enum.damagecause.block_explosion entity_explosioncommand.enum.damagecause.entity_explosion voidcommand.enum.damagecause.void self_destructcommand.enum.damagecause.self_destruct magiccommand.enum.damagecause.magic chargingcommand.enum.damagecause.charging stalagmitecommand.enum.damagecause.stalagmite fly_into_wallcommand.enum.damagecause.fly_into_wall lightningcommand.enum.damagecause.lightning freezingcommand.enum.damagecause.freezing temperaturecommand.enum.damagecause.temperature origin:DamageOriginActor- 枚举类型。command.enum.damageoriginactor.description单值枚举,请直接使用
entity。 damager:target- 基本类型。command.damage.damager.description