Visit the new site! Link Search Menu Expand Document

Entity Holds Item

Table of contents
  1. Entity Holds Item
  2. Basic Usage
    1. Setting up the model in blockbech
    2. Setting up behaviorpack-side entity
    3. Setting up the loot table


This tutorial assumes you have a basic understanding of entities, loot tables and Blockbench. Make sure to check out the tutorial on entities, the tutorial on loot tables and the tutorial on blockbench before starting this tutorial.

In this tutorial you will learn to have an entity spawn with an item in its hand. I’ll be using a custom mandalorian_armorer' entity and a custom hammer` item for the examples.

Basic Usage

This section covers the main features of entities for them to spawn with an item in their hand.

Setting up the model in blockbech

First of all, you’ll need to have a model in Blockbench that has a map called ‘rightArm’. Within this map, there needs to be a submap called ‘rightItem’. Position the pivot point of this submap so it sits in the place you want the entity to hold the item at.

Setting up behaviorpack-side entity

Now you’ll need to add a minecraft:equipment component in the component list for you entity and add a loot table with the desired item.

In our example it will look like this:


"components": {
    "minecraft:equipment": {
        "table": "loot_tables/entities/gear/mandolorian.json"

Setting up the loot table

Finally, add the loot table for the entity. It needs to be in loot_tables/entities/<your_loot_table_name>.json in the behavior pack. In our case, it’s called mandolorian.json.

Warning: This isn’ the same loot table as what it drops on death. So make sure it has a different name. To have the entity always spawn with the same item, add the following loot table:


  "pools": [
      "rolls": 1,
      "entries": [
          "type": "item",
          "name": "dd:hammer", // Custom item named 'hammer' with the identifier 'dd'.
          "weight": 1

If everything went well, you’ll have something looking like this: