Opened Inventory (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.2-dev24, 2.2-dev35 (Just 'current inventory' works in player events)

Syntax

[the] (current|open|top) inventory [of %players%]

Description

Return the currently opened inventory of a player. If no inventory is open, it returns the own player's crafting inventory.

Examples

set slot 1 of player's current inventory to diamond sword

View source