Solved Coloured Leather Armour In Chest GUIS

  • 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 comminuty!

    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.
Feb 17, 2017
8
0
0
24
Hi,
Recently I have been trying to make a chest GUI with coloured leather armour. I have played around with lots of different codes but I can't seem to find what code works!
Code:

code_language.skript:
on right click:
    if player is holding a compass:
        if name of player's tool is "&bChoose &a&lClass":
            open chest with 1 row named "&8Pick your class" to player
            wait 2 ticks
            format slot 0 of player with green leather helmet named "&aArcher" to be unstealable

I have tried green leather armour, leather armour green, ect and I can't find a solution!

If anyone could help me with this it would be greatly appreciated.

- George
 
You can do this by adding "colored %color%" after your item.

Here is an example:
code_language.skript:
command /gui:
    trigger:
        open chest with 1 row named "&8Pick your class" to player
        wait 2 ticks
        format slot 0 of player with leather helmet colored light green named "&aArcher" to be unstealable
 
You can do this by adding "colored %color%" after your item.

Here is an example:
code_language.skript:
command /gui:
    trigger:
        open chest with 1 row named "&8Pick your class" to player
        wait 2 ticks
        format slot 0 of player with leather helmet colored light green named "&aArcher" to be unstealable
Ahh! Thank you for the help!
 
Status
Not open for further replies.