Inventory Slot (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.2-dev24

Syntax

[the] slot[s] %numbers% of %inventory%

Description

Represents a slot in an inventory. It can be used to change the item in an inventory too.

Examples

if slot 0 of player is air:
	set slot 0 of player to 2 stones
	remove 1 stone from slot 0 of player
	add 2 stones to slot 0 of player
	clear slot 1 of player

View source