Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Import necessary types
- import loottweaker.vanilla.loot.LootTables;
- import loottweaker.vanilla.loot.LootTable;
- import loottweaker.vanilla.loot.LootPool;
- import loottweaker.vanilla.loot.Functions;
- //Get the loot table named "minecraft:entities/stray" and store it for later use
- val stray = LootTables.getTable("minecraft:entities/stray");
- //Get the pool named "main" from the loot table and store it for later use
- val strayMain = stray.getPool("main");
- //Remove the entry named "minecraft:arrow" from the loot pool
- strayMain.removeEntry("minecraft:arrow");
- //Get the pool named "pool2" from the loot table and store it for later use
- val straypool2 = stray.getPool("pool2");
- //Remove the entry named "minecraft:tipped_arrow" from the loot pool
- straypool2.removeEntry("minecraft:tipped_arrow");
- // Add a pool called steve to the stray loot table, then store it for later use
- val steve = stray.addPool("steve", 1, 2, 0, 0);
- // Add an tconstruct arrow to "steve"
- steve.addItemEntry(<tconstruct:arrow>.withTag({StatsOriginal: {AttackSpeedMultiplier: 1.0 as float, Accuracy: 1.0 as float, MiningSpeed: 4.0 as float, FreeModifiers: 3, Durability: 120, HarvestLevel: 1, Attack: 5.0 as float}, Stats: {AttackSpeedMultiplier: 1.0 as float, Accuracy: 1.0 as float, MiningSpeed: 4.0 as float, FreeModifiers: 3, Durability: 96, HarvestLevel: 1, Attack: 5.0 as float}, Special: {Categories: ["tool", "no_melee", "projectile"]}, TinkerData: {Materials: ["wood", "stone", "feather"], Modifiers: []}, Modifiers: [{identifier: "ecological", color: -7444965, level: 1}, {identifier: "cheapskate", color: -6710887, level: 1}, {identifier: "cheap", color: -6710887, level: 1}], Traits: ["ecological", "cheapskate", "cheap"]}), 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement