Inventory (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.0

Syntax

[the] inventor(y|ies) of %inventoryholders/itemtypes%

Description

The inventory of a block or player. You can usually omit this expression and can directly add or remove items to/from blocks or players.

Examples

add a plank to the player's inventory
clear the player's inventory
remove 5 wool from the inventory of the clicked block

View source