Equippable Component - Lose Durability (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.13

Syntax

(make|let) %equippablecomponents% (lose durability|be damaged) (on [wearer['s]] injury|when [[the] wearer [is]] (hurt|injured|damaged))

Description

Whether the item should take damage when the wearer gets injured. NOTE: Equippable component elements are experimental. Thus, they are subject to change and may not work as intended.

Examples

make {_item} lose durability when hurt
set {_component} to the equippable component of {_item}
if {_component} will lose durability when injured:
	make {_component} lose durability on injury

View source