damageItemInOffHand

fun LivingEntity.damageItemInOffHand(damage: Int = 1): Boolean

Damages the item in the entity's offhand by damage amount as if the entity caused it and returns whether the item broke.