编辑

Entity Documentation - minecraft:burns_in_daylight

Specifies that this entity takes fire damage when exposed to direct sunlight. This component is used by undead mobs like zombies, skeletons, and phantoms. The entity will catch fire when in sunlight unless it is wearing armor in the protection slot, standing in water, or in a shaded area.

Entity Burns In Daylight Properties

Name Default Value Type Description
protection_slot slot.armor.head Protection Slot choices The equipment slot that provides protection from burning in sunlight.

protection_slot

The equipment slot that provides protection from burning in sunlight. If armor is equipped in this slot, the entity will not burn. Commonly set to 'slot.armor.head' for helmets or 'slot.armor.body' for horse armor.

Protection Slot choices

Value Title Description
slot.armor.body Slot.armor.body
slot.armor.chest Slot.armor.chest
slot.armor.feet Slot.armor.feet
slot.armor.head Slot.armor.head
slot.armor.legs Slot.armor.legs
slot.weapon.mainhand Slot.weapon.mainhand
slot.weapon.offhand Slot.weapon.offhand

Samples

Bogged

"minecraft:burns_in_daylight": {}