Equippable Component - Can Swap Equipment (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.13

Syntax

%equippablecomponents% can swap equipment [on right click|when right clicked]

Description

Whether an item can swap equipment by right clicking with it in your hand. The item will swap places of the set 'equipment slot' of the item. If an equipment slot is not set, defaults to helmet. NOTE: Equippable component elements are experimental. Thus, they are subject to change and may not work aas intended.

Examples

if {_item} can swap equipment:
	add "Swappable" to lore of {_item}
set {_component} to the equippable component of {_item}
if {_component} can not be equipped when right clicked:
	make {_component} swappable

View source