Damage/heal/repair (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.0, 2.10 (damage cause)

Syntax

damage %livingentities/itemtypes/slots% by %number% [heart[s]]

Description

Damage, heal, or repair an entity or item. Servers running Spigot 1.20.4+ can optionally choose to specify a fake damage cause.

Examples

damage player by 5 hearts
damage player by 3 hearts with fake cause fall
heal the player
repair tool of player

View source