Skip to content

Raid Den Keys

necro50n3 edited this page Apr 2, 2026 · 10 revisions

Raid Den Keys

You can configure raid dens to require a key to access, but there is no specific Raid Den Key item. Instead, you can implement keys in one of two ways.

Data Components

You can assign a specific item as a key by giving it the component cobblemonraiddens:raid_den_key=true.

Item Tags

You can assign ALL of a type of item to act as a key by creating a data pack to add them to the cobblemonraiddens:raid_den_key item tag.
data/cobblemonraiddens/tags/item/raid_den_key.json
{
  "replace": false,
  "values": [
    "minecraft:diamond"
  ]
}

Unique Keys

You can alternatively set a unique key for individual raid bosses (a good example would be the items from Myths and Legends). See Raid Bosses.

In addition, you can set whether only the host requires the unique key or all participants do in the config. Note that this will bypass all Raid Den Key requirements from above if they were set.

Unique keys can be defined as a string id (e.g. "minecraft:diamond"), or a JSON object (e.g { "item": "minecraft:diamond" }). This will make any raids with this unique key require a diamond to enter. You can also define the unique key data component (e.g { "item": "minecraft:diamond", "id": "example" }), which will now set the unique key as a diamond with the component cobblemonraiddens:unique_key=example.

Clone this wiki locally