Started by
Pickle
on
Topic category: Help with Minecraft modding (Java Edition)
I think I need SwordItem#getDamage I do this at the moment:
PvpPlusMod.LOGGER
.info(("" + (((((sourceentity instanceof LivingEntity) ? ((LivingEntity) sourceentity).getHeldItemOffhand() : ItemStack.EMPTY))
.getMaxDamage()))));