-
Notifications
You must be signed in to change notification settings - Fork 2
Methods
All methods provided by this mod can be accessed through mods.ltt.LootTable.
- 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.
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");
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");
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");