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");
- //==== Get Pools ====
- //val lostCityChestsPool = lostCityChests.getPool("lostcities:lostcitychest");
- //val villageBlacksmithChestsPool = villageBlacksmithChests.getPool("main");
- //==== Add Entry to Existing Pools using EntryHelper ====
- // Adds entries to the existing pool "lostcities:lostcitychest" in the loottable "lostcities:chests/lostcitychest"
- lostCityChestsPool.addItemEntryHelper(<mw:glock_19>, 20, 1, [Functions.setCount(1, 1)], [], "glock_19");
- lostCityChestsPool.addItemEntryHelper(<mw:uzi>, 20, 1, [Functions.setCount(1, 1)], [], "uzi");
- lostCityChestsPool.addItemEntryHelper(<mw:bullet9x19mm>, 20, 1, [Functions.setCount(10, 64)], [], "bullet9x19mm");
- // Adds entries to the existing pool "main" in the loottable "minecraft:chests/village_blacksmith"
- villageBlacksmithChestsPool.addItemEntryHelper(<mw:glock_19>, 20, 1, [Functions.setCount(1, 1)], [], "glock_19");
- villageBlacksmithChestsPool.addItemEntryHelper(<mw:l96a1>, 20, 1, [Functions.setCount(1, 1)], [], "L96A1");
- //==== 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