For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/enums/EntityDamageCause.md.

Enumeration: EntityDamageCause

entity damage

Beta

描述实体的伤害来源。

Describes the source of damage from an Entity.

Enumeration Members

anvil

anvil: "anvil"

Beta

Remarks

由下落的铁砧造成的伤害。

Damage caused by a falling anvil.


blockExplosion

blockExplosion: "blockExplosion"

Beta

Remarks

由非实体爆炸造成的伤害。例如,爆炸的床。

Damage caused from a non-Entity explosion. For example, an exploding bed.


campfire

campfire: "campfire"

Beta

Remarks

由营火造成的伤害。

Damage caused by Campfires.


charging

charging: "charging"

Beta

Remarks

未使用。

Unused.


contact

contact: "contact"

Beta

Remarks

由物理接触实体或方块造成的伤害。例如,触碰甜浆果丛或河豚。

Damage caused by physically touching an Entity or Block. For example, touching a Sweet Berry bush or Pufferfish.


drowning

drowning: "drowning"

Beta

Remarks

由实体处于无空气状态且在液体方块内部造成的伤害。

Damage caused by an Entity being out of air and inside a liquid block.


entityAttack

entityAttack: "entityAttack"

Beta

Remarks

由实体攻击造成的伤害。

Damage caused by an Entity attack.


entityExplosion

entityExplosion: "entityExplosion"

Beta

Remarks

由实体爆炸造成的伤害。例如,苦力怕或凋灵。

Damage caused by an Entity explosion. For example, a Creeper or Wither.


fall

fall: "fall"

Beta

Remarks

由摔落到地面造成的伤害。

Damage caused by falling onto the ground.


fallingBlock

fallingBlock: "fallingBlock"

Beta

Remarks

由下落的方块造成的伤害。注意:铁砧和钟乳石有它们自己的伤害原因。

Damage caused by falling blocks. Note: Anvils and Stalactites have their own damage causes.


fire

fire: "fire"

Beta

Remarks

由着火造成的伤害。

Damage caused by catching on fire.


fireTick

fireTick: "fireTick"

Beta

Remarks

由持续燃烧造成的伤害。

Damage caused by burning over time.


fireworks

fireworks: "fireworks"

Beta

Remarks

由烟花造成的伤害。

Damage caused by fireworks.


flyIntoWall

flyIntoWall: "flyIntoWall"

Beta

Remarks

在穿着鞘翅滑翔时高速撞墙造成的伤害。

Damage caused by flying into a wall at high speed while gliding with Elytra.


freezing

freezing: "freezing"

Beta

Remarks

由停留在细雪方块内造成的伤害。

Damage caused by staying inside a Powder Snow block.


lava

lava: "lava"

Beta

Remarks

由接触熔岩方块造成的伤害。

Damage caused by touching a Lava block.


lightning

lightning: "lightning"

Beta

Remarks

由被闪电击中造成的伤害。

Damage caused by being struck by lightning.


maceSmash

maceSmash: "maceSmash"

Beta


magic

magic: "magic"

Beta

Remarks

由魔法攻击造成的伤害。例如,唤魔者尖牙或潮涌核心方块。

Damage caused by magical attacks. For example, Evoker Fang or Conduit Block.


magma

magma: "magma"

Beta

Remarks

由接触岩浆块造成的伤害。

Damage caused by touching a Magma block.


none

none: "none"

Beta

Remarks

由无来源造成的伤害。例如,来自命令或脚本。

Damage caused by no source. For example, from a command or script.


override

override: "override"

Beta

Remarks

由间接来源造成的伤害。例如,在行为包中将生物的生命值设为 0。

Damage caused by an indirect source. For example, setting a mob's health to 0 in a behavior pack.


piston

piston: "piston"

Beta

Remarks

由活塞造成的伤害。

Damage caused by a Piston.


projectile

projectile: "projectile"

Beta

Remarks

由弹射物造成的伤害。

Damage caused by a projectile.


ramAttack

ramAttack: "ramAttack"

Beta

Remarks

由山羊冲撞造成的伤害。

Damage caused by Goat ramming.


selfDestruct

selfDestruct: "selfDestruct"

Beta

Remarks

由 /kill 命令造成的伤害。

Damage caused by the /kill command.


sonicBoom

sonicBoom: "sonicBoom"

Beta

Remarks

由监守者的音波尖啸攻击造成的伤害。

Damage caused by the Warden's Sonic Boom attack.


soulCampfire

soulCampfire: "soulCampfire"

Beta

Remarks

由灵魂营火造成的伤害。

Damage caused by a Soul Campfire.


stalactite

stalactite: "stalactite"

Beta

Remarks

由下落的钟乳石块造成的伤害。

Damage caused by a falling Stalactite block.


stalagmite

stalagmite: "stalagmite"

Beta

Remarks

由接触石笋块造成的伤害。

Damage caused by touching a Stalagmite block.


starve

starve: "starve"

Beta

Remarks

因饥饿值空而随时间造成的伤害。

Damage caused over time by having an empty hunger bar.


suffocation

suffocation: "suffocation"

Beta

Remarks

由实体处于无空气状态且在非液体方块内部造成的伤害。

Damage caused by an Entity being out of air and inside a non-liquid block.


temperature

temperature: "temperature"

Beta

Remarks

由实体处于不适宜生存的气候中造成的伤害。例如,雪傀儡在温度大于 1 的生物群系中。

Damage caused by an Entity being in an inhabitable climate. For example, a Snow Golem in a biome with a temperature greater than 1.


thorns

thorns: "thorns"

Beta

Remarks

由荆棘盔甲附魔和守卫者荆棘效果造成的伤害。

Damage caused by the Thorns armor enchantment and by the Guardian thorns effect.


void

void: "void"

Beta

Remarks

因掉入虚空而随时间造成的伤害。

Damage caused over time by falling into the void.


wither

wither: "wither"

Beta

Remarks

由凋灵效果造成的伤害。例如,接触凋灵玫瑰。

Damage caused by the Wither effect. For example, from touching a Wither Rose.

同领域相关