Code: Really, it is just a basic:
@SubscribeEvent(priority = EventPriority.NORMAL)
public void HandleEnchant(LootingLevelEvent fEvent)
{
int levelLooting = 10
//Testing
fEvent.setLootingLevel(fEvent.getLootingLevel() + 3 + ((levelLooting - 1) * 2));
System.out.println(fEvent.getLootingLevel());
}
The way it "doesn't work" is that if you put any value in the setLootingLevel, it still returns 1 (1 refers to default looting value which is added by 1 per looting level). However. if you have a looting enchantment, it changes (e.g. 2, 3, 4, and etc.).