damageItemInHand

fun LivingEntity.damageItemInHand(hand: EquipmentSlot, damage: Int = 1): Boolean

Damages the item in the specified hand by damage amount as if the entity caused it and returns whether the item broke.