Skip to content

Entity Tags

BONNe edited this page Mar 13, 2026 · 1 revision

Entity Tags — Allow Mobs to be Picked Up

Animal Pen adds three entity tags used by cages and containers.

Tag Used by
animal_pen:animal_cage_pickable Animal Cage
animal_pen:bird_catcher_pickable Bird Catcher
animal_pen:water_mob_container_pickable Water Animal Container

Entities inside these tags can be picked up.

Example — Adding a Custom Mob

Minecraft 1.20.6 and below

Path:

<your_custom_datapack>/data/animal_pen/tags/entity_types/animal_cage_pickable.json

Minecraft 1.21+

Path:

<your_custom_datapack>/data/animal_pen/tags/entity_type/animal_cage_pickable.json

File:

{
  "replace": false,
  "values": [
    "modid:custom_animal"
  ]
}

"replace": false keeps default items and adds yours.

Clone this wiki locally