damageItemInMainHand

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

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