Jump to content

/Hat Skript


BluryLovesTacos

Recommended Posts


command /hat:
    trigger:
        if player is op:
            set helmet of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have A New Hat"

Because why not
it was simple to make

Edited by ALTITS
Link to comment
Share on other sites

  • 2 weeks later...

i just thought it would be funny if i-...

command /hat:
    trigger:
        if player is op:
            set helmet of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have A New Hat"
command /shirt:
    trigger:
        if player is op:
            set chestplate of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have A New Shirt"
command /pants:
    trigger:
        if player is op:
            set leggings of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have New Pants"
command /shoes:
    trigger:
        if player is op:
            set boots of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have New Shoes"

untested but lol

Link to comment
Share on other sites

On 9/9/2021 at 8:50 AM, ALTITS said:


command /hat:
    trigger:
        if player is op:
            set helmet of player to player's held item
            remove player's held item from player's inventory
            send "&eYou Now Have A New Hat"

Because why not
it was simple to make

Well, this will break if someone is already wearing an armor piece as it will not give the armor back to the player. Add something like give player player's helmet

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

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...