Items In (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.0, 2.8.0 (specific types of items)
Syntax
[all [[of] the]] items ([with]in|of|contained in|out of) [inventor(y|ies)] %inventories%Description
All items or specific type(s) of items in an inventory. Useful for looping or storing in a list variable. Please note that the positions of the items in the inventory are not saved, only their order is preserved.
Examples
loop all items in the player's inventory:
loop-item is enchanted
remove loop-item from the player
set {inventory::%uuid of player%::*} to items in the player's inventory