1. Wiki
  2. /Entities
  3. /minecraft:burns_in_daylight

minecraft:burns_in_daylight

Don't want to write this by hand? GodCraft sets minecraft:burns_in_daylight for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
protection_slotEquipmentSlot"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"
  }
}

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