Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Methods

Tyler Hancock edited this page Oct 17, 2017 · 2 revisions

All methods provided by this mod can be accessed through mods.ltt.LootTable.

1.12 and newer

  • mods.ltt.LootTable.removeTable("table"); - Removes a specific table.
  • mods.ltt.LootTable.removePool("table", "pool"); - Removes a specific pool.
  • mods.ltt.LootTable.removeEntry("table", "pool", "entry"); - Removes a specific entry.
  • mods.ltt.LootTable.removeItem("table", "pool", "itemid"); - Removes a specific item.
  • mods.ltt.LootTable.removeModEntry("modid"); - Removes all entries added by a mod.
  • mods.ltt.LootTable.removeModItem("modid"); - Removes all items added by a mod.
  • mods.ltt.LootTable.removeModTable("modtable"); - Removes all tables added by a mod.
  • mods.ltt.LootTable.removeGlobalItem("itemid"); - Removes this item from all tables.

1.11 and older

clearTable

This method allows for an entire table to be removed. There is only one parameter which is used for defining the name of the table you want to remove. This parameter is a string. This following example shows the entire bonus chest table being removed. mods.ltt.LootTable.clearTable("minecraft:chests/spawn_bonus_chest");

removePool

This method allows for a specific loot pool to be removed. There are two parameters, the first is the name of the table the target pool is on, and the second is the name of the pool. Both of these parameters are strings. The following example shows pool2 being removed from the bonus chest loot table. mods.ltt.LootTable.removePool("minecraft:chests/spawn_bonus_chest", "pool2");

removeEntry

This method allows for a specific loot entry to be removed. There are three parameters, the first is the name of the table the target entry is on, the second is the name of the pool the entry is a part of, and the third is the name of the entry to remove. All of these parameters are strings. The following example shows apples being removed from the bonus chest loot table. mods.ltt.LootTable.removeEntry("minecraft:chests/spawn_bonus_chest", "pool2", "minecraft:apple");

Clone this wiki locally