Jump to content

Hat command: changing the hotbar slot into the head slot


Recommended Posts

So I have this Skript, but I need to make it so that the player can execute the command, and the item in the hotbar.0 slot will be moved to the armor.head slot.

Current Skript:

command /hat:
    trigger:
        set helmet of player to hotbar.0

 

Joined September 2019

[VIP] since June 29th, 2020

cyberryan singing never gonna give you up.png

Link to post
Share on other sites

I believe you can accomplish your goal by using the currently held item expression in skript.

And to implement that in your skript, you can use this:

command /hat:
    trigger:
        set helmet of player to player's currently held item

 

Edited by jeelzzz

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...