-
Notifications
You must be signed in to change notification settings - Fork 3
Redirect v3
Hoid2 edited this page Jan 18, 2022
·
2 revisions
A redirect slot element is redirected to a slot in a different inventory (such as an enderchest). Clicks are redirected to that inventory and the displayed item is the one in that inventory.
It looks like:
{
"type": "Redirect",
"index": 3,
"guiType": "",
"name": "",
"slotIndex": 0
}
Specifies the type of the slot element. This should be "Redirect"
.
Which slot of the inventory the element should display in. Each slot element in an inventory should have a different index. This is an integer.
This is the type of gui to redirect to. This is a string. Supports:
Types
-
"PLAYER"
- a player's inventory -
"ENDER_CHEST"
- a player's enderchest
This is the UUID of the player who's enderchest or inventory is being redirected to. This is a UUID. See Common Types v3.
This is the index of the slot in the inventory that is being redirected to. This is an integer.