minecraft:equipment for you with a switch.Get GodCraftOverview
minecraft:equipment is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Gives the entity starting gear from an equipment table file, and sets how likely each item is to drop on death.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
slot_drop_chance | List | none | Drop chance for the item in each slot. |
table | String | none | Path to the equipment table file in your behavior pack. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:equipment": {
"slot_drop_chance": {},
"table": ""
}
}