First Empty Slot in Inventory (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.12

Syntax

[the] first empty slot[s] of %inventories%

Description

Returns the first empty slot in an inventory. If no empty slot is found, it returns nothing.

Examples

set the first empty slot in player's inventory to 5 diamonds
if the first empty slot in player's inventory is not set:
	message "No empty slot available in your inventory!" to player

View source