1. Wiki
  2. /实体
  3. /minecraft:burns_in_daylight

minecraft:burns_in_daylight

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:burns_in_daylight。Get GodCraft

概览

minecraft:burns_in_daylight 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 实体站在阳光直射下时会着火,就像僵尸和骷髅。戴头盔或头顶有方块就能保护它。

字段

字段类型默认值说明
protection_slotEquipmentSlot"slot.armor.head"在该装备栏位穿戴物品时,可以防止实体被烧。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:burns_in_daylight": {
    "protection_slot": "slot.armor.head"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more