How do I get enchantment and level of an item? I need to find Looting 2 and Looting 3. Also, does anyone know the default EXP for killing a player?
@Faith You'll want to establish a HashMap<Enchantment, Integer>, casting it to item.getEnchantments(); As for the default EXP of killing a player, I don't believe there is anything, unless of course the player themselves have levels at the time. Of course the amount dropped is only a fragment of their original amount. Hope this helped
@Faith Alright then, so you'll likely need to listen for the PlayerDeathEvent, get the amount of XP dropped, then alter it based off the enchantments level.