Damage (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.3.5, 2.8.0 (item damage event)

Syntax

[the] damage

Description

How much damage is done in a entity/vehicle/item damage events. For entity damage events, possibly ignoring armour, criticals and/or enchantments (remember that in Skript '1' is one full heart, not half a heart). For items, it's the amount of durability damage the item will be taking.

Examples

on item damage:
	event-item is any tool
	clear damage # unbreakable tools as the damage will be 0
on damage:
	increase the damage by 2

View source