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) [1: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's name = "Bob"
remove loop-item from the playerset {inventory::%uuid of player%::*} to items in the player's inventory