Menu Inventory (Expression) — skript-gui

Addon: skript-gui · Category: Expression · Since: 1.4.0

Syntax

%inventorytype% menu [with %-number% row[s]] [(named|with (name|title)) %-textcomponent%] bound to %player%

Description

Obtains a menu bound to a player that can be used for creating a GUI. This expression is not intended to be used outside of GUI creation. Be sure to show the GUI using the 'Show GUI' effect.

Examples

using menu guis
command /getinput:
	trigger:
		create a gui with anvil menu named "Enter Input" bound to player:
			make gui slot 0 with barrier named "Enter Input" # Far Left Slot
			make gui 2 with air: # Output Slot, formatted with air to just run a click action
				set {_input} to anvil text input of gui
				close the player's inventory
				send title "You Entered" with subtitle {_input} to player
		show the last gui to the player

View source