pjc21

LootTweaker_2.zs

Apr 7th, 2021 (edited)
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 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. //==== Clear Tables ====
  18. lostCityChests.clear();
  19. lostCityRailDungeonChests.clear();
  20. netherBridgeChests.clear();
  21. abandonedMineshaftChests.clear();
  22. villageBlacksmithChests.clear();
  23. desertPyramidChests.clear();
  24. jungleTempleChests.clear();
  25. simpleDungeonChests.clear();
  26.  
  27. //==== Add New Pool to Table ====
  28. // Adds a new pool called "Weapons" to the loottable "lostcities:chests/lostcitychest"
  29. val lostCityChestsWeaponsPool = lostCityChests.addPool("Weapons", 1, 1, 1, 1);
  30.  
  31. //==== Add Entry to Pool using EntryHelper ====
  32. // Adds entries to the pool "Weapons" in the loottable "lostcities:chests/lostcitychest"
  33. lostCityChestsWeaponsPool.addItemEntryHelper(<mw:hs12>, 20, 1, [Functions.setCount(1, 1)], [], "HS_12");
Add Comment
Please, Sign In to add comment