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);
- //==== Create a new table ====
- val MyTable = LootTweaker.newTable("pjc21:mytable");
- //==== Add pools to your table ====
- val mwWeapons = MyTable.addPool("MW_Weapons", 1, 1, 1, 1);
- val mwBullets = MyTable.addPool("MW_Bullets", 1, 1, 1, 1);
- //==== Add entries to your table pools ====
- mwWeapons.addItemEntryHelper(<mw:glock_19>, 20, 1, [Functions.setCount(1, 1)], [], "glock_19");
- mwWeapons.addItemEntryHelper(<mw:uzi>, 20, 1, [Functions.setCount(1, 1)], [], "uzi");
- mwBullets.addItemEntryHelper(<mw:bullet9x19mm>, 20, 1, [Functions.setCount(10, 64)], [], "bullet9x19mm");
- //==== Add your table as an entry to the Weapons pool ====
- lostCityChestsWeaponsPool.addLootTableEntry("pjc21:mytable", 20, "MW_Gear");
Add Comment
Please, Sign In to add comment