pjc21

LootTweaker_1.zs

Apr 7th, 2021 (edited)
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. import loottweaker.LootTweaker;
  2. import loottweaker.vanilla.loot.LootTable;
  3. import loottweaker.vanilla.loot.LootPool;
  4. import loottweaker.vanilla.loot.Conditions;
  5. import loottweaker.vanilla.loot.Functions;
  6.  
  7. //==== Get LootTables used in Lost Cities ====
  8. val lostCityChests = LootTweaker.getTable("lostcities:chests/lostcitychest");
  9. val lostCityRailDungeonChests = LootTweaker.getTable("lostcities:chests/raildungeonchest");
  10. val netherBridgeChests = LootTweaker.getTable("minecraft:chests/nether_bridge");
  11. val abandonedMineshaftChests = LootTweaker.getTable("minecraft:chests/abandoned_mineshaft");
  12. val villageBlacksmithChests = LootTweaker.getTable("minecraft:chests/village_blacksmith");
  13. val desertPyramidChests = LootTweaker.getTable("minecraft:chests/desert_pyramid");
  14. val jungleTempleChests = LootTweaker.getTable("minecraft:chests/jungle_temple");
  15. val simpleDungeonChests = LootTweaker.getTable("minecraft:chests/simple_dungeon");
  16.  
  17. //==== Get Pools ====
  18. //val lostCityChestsPool = lostCityChests.getPool("lostcities:lostcitychest");
  19. //val villageBlacksmithChestsPool = villageBlacksmithChests.getPool("main");
  20.  
  21.  
  22. //==== Add Entry to Existing Pools using EntryHelper ====
  23. // Adds entries to the existing pool "lostcities:lostcitychest" in the loottable "lostcities:chests/lostcitychest"
  24. lostCityChestsPool.addItemEntryHelper(<mw:glock_19>, 20, 1, [Functions.setCount(1, 1)], [], "glock_19");
  25. lostCityChestsPool.addItemEntryHelper(<mw:uzi>, 20, 1, [Functions.setCount(1, 1)], [], "uzi");
  26. lostCityChestsPool.addItemEntryHelper(<mw:bullet9x19mm>, 20, 1, [Functions.setCount(10, 64)], [], "bullet9x19mm");
  27.  
  28. // Adds entries to the existing pool "main" in the loottable "minecraft:chests/village_blacksmith"
  29. villageBlacksmithChestsPool.addItemEntryHelper(<mw:glock_19>, 20, 1, [Functions.setCount(1, 1)], [], "glock_19");
  30. villageBlacksmithChestsPool.addItemEntryHelper(<mw:l96a1>, 20, 1, [Functions.setCount(1, 1)], [], "L96A1");
  31.  
  32. //==== Add New Pool to Table ====
  33. // Adds a new pool called "Weapons" to the loottable "lostcities:chests/lostcitychest"
  34. val lostCityChestsWeaponsPool = lostCityChests.addPool("Weapons", 1, 1, 1, 1);
  35.  
  36. //==== Add Entry to Pool using EntryHelper ====
  37. // Adds entries to the pool "Weapons" in the loottable "lostcities:chests/lostcitychest"
  38. lostCityChestsWeaponsPool.addItemEntryHelper(<mw:hs12>, 20, 1, [Functions.setCount(1, 1)], [], "HS_12");
Add Comment
Please, Sign In to add comment