eddie1101

Untitled

Jun 6th, 2021
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. protected LootTable.Builder createFortuneOre(String name, IItemProvider drop) {
  2.         LootPool.Builder builder = LootPool.lootPool()
  3.                 .name(name)
  4.                 .setRolls(ConstantRange.exactly(1))
  5.                 .bonusRolls(1f, 3f)
  6.                 .add(ItemLootEntry.lootTableItem(drop)
  7.                         .apply(SetCount.setCount(ConstantRange.exactly(1)))
  8.                         .apply(LootingEnchantBonus.lootingMultiplier(RandomValueRange.between(2, 4)))
  9.                 );
  10.         return LootTable.lootTable().withPool(builder);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment