@SubscribeEvent
public void onLootTableLoad(LootTableLoadEvent event) {
if(event.getName().equals(LootTableList.ENTITIES_WITHER_SKELETON)) {
LootCondition[] lootConditions = new LootCondition[0];
LootEntry entry = new LootEntryItem(TinkerCommons.matNecroticBone.getItem(),
1,
0,
new LootFunction[]{new SetMetadata(lootConditions, new RandomValueRange(TinkerCommons.matNecroticBone.getMetadata()))},
lootConditions,
"necrotic_bone");
event.getTable().addPool(new LootPool(new LootEntry[]{entry},
new LootCondition[]{
new KilledByPlayer(false),
new RandomChanceWithLooting(0.07f, 0.05f)
},
new RandomValueRange(1),
new RandomValueRange(0),
"necrotic_bone"));
}
}