Advertisement
Guest User

worst script

a guest
Feb 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import loottweaker.vanilla.loot.LootTables;
  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.  
  8. // call loot table
  9.  
  10. val table = LootTables.getTable("minecraft:gameplay/fishing/fish");
  11.  
  12.  
  13. // call pool, clear it, store for later
  14.  
  15. table.removePool("main");
  16. table.addPool("main_fresh", 1, 1, 0, 0);
  17. table.addPool("main_salt", 1, 1, 0, 0);
  18. val fish_fresh = table.getPool("main_fresh");
  19. val fish_salt = table.getPool("main_salt");
  20.  
  21.  
  22. // define conditions for different pools
  23.  
  24. fish_salt.addConditionsJSON([{"condition": "morelootstuff:in_biome", "biomes": ["minecraft:beach","minecraft:ocean"]}]);
  25.  
  26.  
  27. // add items to saltwater fishing pool
  28.  
  29. fish_salt.addItemEntry(<minecraft:fish:2>, 1, 0);
  30.  
  31.  
  32. // add items to freshwater fishing pool
  33.  
  34. fish_fresh.addItemEntry(<minecraft:fish:0>, 1, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement