Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import loottweaker.vanilla.loot.LootTables;
- import loottweaker.vanilla.loot.LootTable;
- import loottweaker.vanilla.loot.LootPool;
- import loottweaker.vanilla.loot.Conditions;
- import loottweaker.vanilla.loot.Functions;
- // call loot table
- val table = LootTables.getTable("minecraft:gameplay/fishing/fish");
- // call pool, clear it, store for later
- table.removePool("main");
- table.addPool("main_fresh", 1, 1, 0, 0);
- table.addPool("main_salt", 1, 1, 0, 0);
- val fish_fresh = table.getPool("main_fresh");
- val fish_salt = table.getPool("main_salt");
- // define conditions for different pools
- fish_salt.addConditionsJSON([{"condition": "morelootstuff:in_biome", "biomes": ["minecraft:beach","minecraft:ocean"]}]);
- // add items to saltwater fishing pool
- fish_salt.addItemEntry(<minecraft:fish:2>, 1, 0);
- // add items to freshwater fishing pool
- fish_fresh.addItemEntry(<minecraft:fish:0>, 1, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement