Skip to content

Table Exclusions

fzzyhmstrs edited this page Jan 4, 2026 · 2 revisions

If you need to exclude certain loot tables from the parser, create an exclusion file and it'll skip over the id's you add.

Place your exclusion file in a datapack or in the data folder of your mod, in the emi_loot/emi_loot_data/ sub-path. The name of the file itself doesn't matter, but calling it something like table_exclusions can certainly help with clarity. Below shows an example path and file from EMI Loot itself: image

Creating the exclusions is very easy; there is only one json array that the file cares about, the exclusions array. Populate this array with the identifiers of the tables you want to skip. Loot table identifiers are typically namespace:subfolder/file_name, where subfolder is the subfolder within the loot_drops folder (blocks, chests, etc). Here's EMI Loot's included file:

{
  "exclusions": [
    "minecraft:gameplay/fishing",
    "netherdepthsupgrade:gameplay/failed_fishing",
    "netherdepthsupgrade:gameplay/lava_fishing",
    "netherdepthsupgrade:gameplay/nether_fishing"
  ]
}

TableCheckers

As of EMI Loot 0.7.9, tables can also be excluded using TableChecker objects. These objects can be added to the "exclusions" list just like id strings.

{
  "exclusions": [
    "minecraft:gameplay/fishing",
    "netherdepthsupgrade:gameplay/failed_fishing",
    "netherdepthsupgrade:gameplay/lava_fishing",
    "netherdepthsupgrade:gameplay/nether_fishing",
    { //<- here is the new table cheker object. Now the above 4 tables and every chest table will be excluded (maybe don't do this lol)
      "type": "minecraft:chest"
    }
  ]
}

Clone this wiki locally