Selected hotbar slot
Which hotbar slot a player has selected, from 0 on the left to 8 on the right.
A Minecraft element (a value) in Items & inventories. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player right-clicks → Selected hotbar slot → If Slot is 8 → Open a menu.
Also called
held slot, selected slot, hotbar position
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Player
What it gives back
- Slot