Solved hotbar slot

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

loadka95

Active Member
Feb 24, 2017
78
6
8
My question is simple: How do I set a player's active hotbar slot to a certain number? or this is not possible?
(so if I run a command, set the players active hotbar slot to the first slot)
 
Use the hotbar slot expression of skQuery:
code_language.skript:
if the current hotbar slot of player is 5:
    set current hotbar slot of player to 1
 
  • Like
Reactions: loadka95
Status
Not open for further replies.