minecraft:entity_armor_equipment_slot_mapping for you with a switch.Get GodCraftOverview
minecraft:entity_armor_equipment_slot_mapping is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Chooses which armor slot gets the item placed in the second slot of minecraft:equippable. The game already sets this for newer worlds, so you usually should not add it yourself.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
armor_slot | String | none | Armor slot that receives the item, such as slot.armor.body. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:entity_armor_equipment_slot_mapping": {
"armor_slot": ""
}
}