Menu history
How many menus a player has stepped through to get here, and the name of the one before.
A Minecraft element (a value) in Menus. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player clicks a menu slot → Menu history → If Depth is 0 → Hide the back button.
Also called
menu depth, previous menu, history, came from
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
- Depth
- Previous