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

minecraft:equipment

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

Overview

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

FieldTypeDefaultDescription
slot_drop_chanceListnoneDrop chance for the item in each slot.
tableStringnonePath 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": ""
  }
}

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