damage

fun ItemStack.damage(amount: Int = 1, entity: LivingEntity, hand: Hand = entity.activeHand)(source)

See also