Get the current slot id of the hotbar

Started by Kahanvi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get the current slot id of the hotbar

Get the current slot id of the hotbar

Hello, I would like to know if it is possible to have the current slot (not the item) of the player's hotbar, and if possible, how.
I accept java pieces if needed.

 

Thanks.