register inventory [named] %name:STRING%Inventory1.0.0
Description
Declares a named inventory builder that can be opened from any script using 'open inventory named "..." for player'. The 'player' variable is available inside the block and represents the target player.
Allowed Contexts
Root LevelInside Block
Block Variables
playerplayer
NullableNo
The target player who the inventory is being opened for
worldworld
NullableNo
The world the player is in
Examples
register inventory "test_menu":
set gui to new inventory "test_menu" with size 54 titled "<gold>Test Menu"All Possible Usages (2)
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
register inventory <name>register inventory named <name>