Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import loottweaker.LootTweaker;
- import loottweaker.vanilla.loot.LootTable;
- import loottweaker.vanilla.loot.LootPool;
- import loottweaker.vanilla.loot.Conditions;
- import loottweaker.vanilla.loot.Functions;
- //==== Get LootTables used in Lost Cities ====
- val lostCityChests = LootTweaker.getTable("lostcities:chests/lostcitychest");
- val lostCityRailDungeonChests = LootTweaker.getTable("lostcities:chests/raildungeonchest");
- val netherBridgeChests = LootTweaker.getTable("minecraft:chests/nether_bridge");
- val abandonedMineshaftChests = LootTweaker.getTable("minecraft:chests/abandoned_mineshaft");
- val villageBlacksmithChests = LootTweaker.getTable("minecraft:chests/village_blacksmith");
- val desertPyramidChests = LootTweaker.getTable("minecraft:chests/desert_pyramid");
- val jungleTempleChests = LootTweaker.getTable("minecraft:chests/jungle_temple");
- val simpleDungeonChests = LootTweaker.getTable("minecraft:chests/simple_dungeon");
- //==== Clear Tables ====
- lostCityChests.clear();
- lostCityRailDungeonChests.clear();
- netherBridgeChests.clear();
- abandonedMineshaftChests.clear();
- villageBlacksmithChests.clear();
- desertPyramidChests.clear();
- jungleTempleChests.clear();
- simpleDungeonChests.clear();
- //==== Add New Pool to Table ====
- // Adds a new pool called "Weapons" to the loottable "lostcities:chests/lostcitychest"
- val lostCityChestsWeaponsPool = lostCityChests.addPool("Weapons", 1, 1, 1, 1);
- //==== Add Entry to Pool using EntryHelper ====
- // Adds entries to the pool "Weapons" in the loottable "lostcities:chests/lostcitychest"
- lostCityChestsWeaponsPool.addItemEntryHelper(<mw:hs12>, 20, 1, [Functions.setCount(1, 1)], [], "HS_12");
Add Comment
Please, Sign In to add comment