damageToolAttackEntity

fun LivingEntity.damageToolAttackEntity()

Damages the tool in the entity's main hand as if they've attack an entity.