Skip to content

Add Table

Joseph B edited this page Feb 20, 2023 · 2 revisions

The looot:add_table global loot modifier rolls loot from a specified loot table and adds it to the loot table(s) targeted by the loot modifier's conditions.

Loot modifiers are not run for the subtable.

The format for this loot modifier are as follows:

{
  "type": "looot:add_table",
  "table": "namespace:id", // namespaced id of loot table to roll
  "conditions": [ // list of loot conditions to filter which loot gets added to
  ]
}

For example, the following loot modifier rolls the workshopsofdoom:subtables/extra_pillager_outpost_loot table and appends the loot to the minecraft:chests/pillager_outpost chest loot table whenever that chest's loot is generated.

{
  "type": "looot:add_table",
  "conditions":
  [
    {
      "condition": "forge:loot_table_id",
      "loot_table_id":
      "minecraft:chests/pillager_outpost"
    }
  ],
  "table": "workshopsofdoom:subtables/extra_pillager_outpost_loot"
}

Changelog

Version Changelog
1.19.2-1.2.0.0 Added "looot:add_table" global loot modifier
Clone this wiki locally