Adding a custom item to Dungeon Loot

Started by DiGrOiDdaa on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding a custom item to Dungeon Loot

I'm creating a mod that adds a new item to minecraft that should spawn, both in vanilla and in dungeons from other mods. Simply put, in all the dungeons that are present in the assembly. I looked at some guides and saw how people create their own structure and add their loot created from "Loot Tables" to it. But I still haven't figured out how to put my item in all the existing dungeons.
I apologize if there are mistakes in the text, I do not speak English at a sufficient level. I'm writing through a translator.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just create a loot table for…
Mon, 04/13/2026 - 14:11

Just create a loot table for the dungeon. It must have the same namespace as the existing dungeon loot table.

So you're gonna need to get the exact names for all of the dungeons you want to make it compatible with. Create a loot table for each one with a pool entry of your item and whatever else you want in there.

This will unfortunately override the existing loot table, not add to it. So copy the original loot table along with your item to add it.