minecraft:burns_in_daylight for you with a switch.Get GodCraftOverview
minecraft:burns_in_daylight is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Sets the entity on fire when it stands in direct sunlight, like zombies and skeletons. A helmet or a block overhead keeps it safe.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
protection_slot | EquipmentSlot | "slot.armor.head" | Equipment slot that protects the entity from burning when an item is worn there. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:burns_in_daylight": {
"protection_slot": "slot.armor.head"
}
}