伤害类型

发表时间: 2025-11-14 13:55:49

最后更新: 2025-11-14 13:55:49(4小时前)

本文标签: 实体机制

用户头像-Connie 等1名 热心馆友编辑完成

伤害类型是我的世界的一种游戏内容

介绍

  1. 在《我的世界》中,伤害类型是伤害的重要基本属性之一。
  2. 这种伤害类型决定了玩家生物如何抵抗和免疫特定的伤害。
  3. 它还会影响生物在受到伤害时的反应方式,以及伤害是否能造成击退效果。
  4. 此外,伤害类型也受到游戏难度的影响,从而改变伤害的表现。

Java版

  1. 下表概括了《Minecraft Java版》中所有的伤害类型。
  2. 每种伤害类型都有注册名称,省略了 "minecraft:" 的命名空间。
  3. 不同的伤害类型被归类到特定标签中,这些标签决定了伤害类型的具体行为。
  4. 死亡消息是指由于此伤害类型导致角色死亡时所使用的信息名称。
  5. 附加参数包括死亡消息的生成方式,它决定了额外的死亡消息表现。
  6. 当玩家受到该类型伤害时,会伴随特定的声音效果。
  7. 此伤害类型的影响始终受到游戏难度的影响,无论其是否有来源实体
  8. 玩家在每次受到此伤害后,会增加饥饿度的消耗。
  9. 最后,来源部分描述能够造成该伤害类型的场景或情况。
Java版伤害类型
伤害类型 标签 死亡消息 额外参数 消耗度增加 来源
arrow always_kills_armor_stands
is_projectile
panic_causes
arrow   0.1
bad_respawn_point always_hurts_ender_dragons
avoids_guardian_thorns
is_explosion
no_knockback
badRespawnPoint 死亡消息类型:intentional_game_design
总是受难度影响
0.1
cactus bypasses_shield
no_knockback
panic_causes
panic_environmental_causes
cactus   0.1
campfire burn_from_stepping
bypasses_shield
ignites_armor_stands
is_fire
no_knockback
inFire 声音效果:burning 0.1
cramming bypasses_armor
bypasses_shield
bypasses_wolf_armor
no_knockback
cramming   0.0
  • 挤压
dragon_breath bypasses_armor
bypasses_shield
no_knockback
panic_causes
dragonBreath   0.0
drown bypasses_armor
bypasses_shield
bypasses_wolf_armor
is_drowning
no_impact
no_knockback
wither_immune_to
drown 声音效果:drowning 0.0
dry_out bypasses_shield
bypasses_wolf_armor
no_knockback
dryout   0.1
  • 脱水
ender_pearl bypasses_armor
bypasses_shield
is_fall
no_knockback
fall 死亡消息类型:fall_variants 0.0
explosion always_hurts_ender_dragons
avoids_guardian_thorns
is_explosion
no_knockback
panic_causes
explosion 总是受难度影响 0.1
  • 爆炸
fall bypasses_armor
bypasses_shield
is_fall
no_knockback
fall 死亡消息类型:fall_variants 0.0
falling_anvil bypasses_shield
damages_helmet
anvil   0.1
falling_block damages_helmet fallingBlock   0.1
falling_stalactite bypasses_shield
damages_helmet
fallingStalactite   0.1
fireball always_kills_armor_stands
is_fire
is_projectile
panic_causes
fireball 声音效果:burning 0.1
fireworks always_hurts_ender_dragons
avoids_guardian_thorns
is_explosion
panic_causes
fireworks   0.1
fly_into_wall bypasses_armor
bypasses_shield
no_knockback
flyIntoWall   0.0
freeze bypasses_armor
bypasses_shield
bypasses_wolf_armor
is_freezing
no_knockback
panic_causes
panic_environmental_causes
freeze 声音效果:freezing 0.0
generic bypasses_armor
bypasses_shield
no_knockback
generic   0.0
generic_kill bypasses_armor
bypasses_invulnerability
bypasses_resistance
bypasses_shield
bypasses_wolf_armor
no_knockback
genericKill   0.0
  • /kill
hot_floor burn_from_stepping
bypasses_shield
is_fire
no_knockback
panic_causes
panic_environmental_causes
hotFloor 声音效果:burning 0.1
in_fire bypasses_shield
ignites_armor_stands
is_fire
no_knockback
panic_causes
panic_environmental_causes
inFire 声音效果:burning 0.1
in_wall bypasses_armor
bypasses_shield
bypasses_wolf_armor
no_knockback
inWall   0.0
  • 窒息
indirect_magic bypasses_armor
bypasses_shield
bypasses_wolf_armor
panic_causes
witch_resistant_to
indirectMagic   0.0
lava bypasses_shield
is_fire
no_knockback
panic_causes
panic_environmental_causes
lava 声音效果:burning 0.1
lightning_bolt bypasses_shield
is_lightning
no_knockback
panic_causes
panic_environmental_causes
lightningBolt   0.1
magic always_triggers_silverfish
avoids_guardian_thorns
bypasses_armor
bypasses_shield
bypasses_wolf_armor
no_knockback
panic_causes
witch_resistant_to
magic   0.0
mace_smash can_break_armor_stand
is_player_attack
mace_smash
panic_causes
mace_smash   0.1
  • 生物下落1.5格后使用重锤攻击
mob_attack panic_causes mob   0.1
  • 绝大多数生物的近战攻击
mob_attack_no_aggro no_anger mob   0.1
mob_projectile is_projectile
panic_causes
mob   0.1
on_fire burns_armor_stands
bypasses_armor
bypasses_shield
is_fire
no_knockback
panic_causes
panic_environmental_causes
onFire 声音效果:burning 0.0
out_of_world always_most_significant_fall
bypasses_armor
bypasses_invulnerability
bypasses_resistance
bypasses_shield
bypasses_wolf_armor
no_knockback
outOfWorld   0.0
  • 虚空
outside_border bypasses_armor
bypasses_shield
bypasses_wolf_armor
no_knockback
outsideBorder   0.0
player_attack can_break_armor_stand
is_player_attack
panic_causes
player   0.1
  • 玩家的近战攻击
player_explosion always_hurts_ender_dragons
avoids_guardian_thorns
can_break_armor_stand
is_explosion
no_knockback
panic_causes
explosion.player 总是受难度影响 0.1
  • 爆炸
sonic_boom bypasses_armor
bypasses_enchantments
bypasses_shield
panic_causes
witch_resistant_to
sonic_boom 总是受难度影响 0.0
spear can_break_armor_stand
is_player_attack
no_knockback
panic_causes
spear   0.1
  • 被戳刺或冲锋攻击
spit mob   0.1
stalagmite bypasses_armor
bypasses_shield
is_fall
no_knockback
stalagmite   0.0
  • 摔落到作为石笋尖端的滴水石锥上
starve bypasses_armor
bypasses_effects
bypasses_shield
bypasses_wolf_armor
no_knockback
starve   0.0
  • 饥饿耗尽
sting panic_causes sting   0.1
sweet_berry_bush bypasses_shield
no_knockback
sweetBerryBush 声音效果:poking 0.1
thorns avoids_guardian_thorns
bypasses_wolf_armor
witch_resistant_to
thorns 声音效果:thorns 0.1
  • 荆棘
  • 守卫者的尖刺效果
thrown is_projectile
panic_causes
thrown   0.1
trident always_kills_armor_stands
is_projectile
panic_causes
trident   0.1
unattributed_fireball is_fire
is_projectile
panic_causes
onFire 声音效果:burning 0.1
  • 被无发射源的火球击中
  • 被无发射源的小火球击中
wind_charge always_kills_armor_stands
is_projectile
panic_causes
mob   0.1
wither bypasses_armor
bypasses_shield
bypasses_wolf_armor
no_knockback
panic_causes
wither   0.0
wither_skull always_kills_armor_stands
is_projectile
panic_causes
witherSkull   0.1

基岩版

  1. 下表中列出了基岩版中的所有伤害类型。
  2. 伤害类型:伤害在ActorDamageCause类中定义的名称。
  3. 来源:能造成该伤害类型的伤害的场景。
基岩版伤害类型
伤害类型 来源
all  
anvil 被下落的铁砧砸中
block_explosion 方块爆炸
campfire  
charging 火球击中
contact 接触仙人掌,在甜浆果丛中移动
drowning 溺水
entity_attack 近战攻击
entity_explosion 实体爆炸
fall 摔落
falling_block 被下落的铁砧砸中
fire 接触营火
fire_tick 着火
fireworks 烟花火箭的爆裂波及
fly_into_wall 使用鞘翅滑翔时高速撞击方块侧面
freezing
lava 接触熔岩
lightning 被闪电雷击
mace_smash 重锤下落攻击
magic 瞬间伤害及该效果的区域效果云对非亡灵生物,瞬间治疗及该效果的区域效果云对亡灵生物,中毒玩家饮用伤害药水,喷溅型伤害药水击中非亡灵生物,喷溅型治疗药水击中亡灵生物末影龙龙息攻击,唤魔者尖牙守卫者的激光攻击
magma 站在岩浆块
none  
override  
piston 活塞
projectile 被弹射物击中
ram_attack 山羊冲撞到
self_destruct /kill
sonic_boom 监守者的远程攻击
soul_campfire  
stalactite 被下落的滴石锥砸中
stalagmite 摔落到作为石笋尖端的滴水石锥
starve 饥饿值耗尽
suffocation 窒息
temperature 雪傀儡处于高温生物群系
thorns 荆棘
void 虚空
wither 凋零
📑
🤔
⬆️