Solved Weird gray wool bug?

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

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
Hello guys.
i have a working code for every color wool, except for gray wool.


code_language.skript:
        else if player's tablist name is "&4%name of player%":
            if block under event-block is not red wool block:
                cancel event

This is a working code for brown wool.
Now this is the not working code with gray wool:

code_language.skript:
        else if player's tablist name is "&8%name of player%":
            if block under event-block is not gray wool block:
                cancel event

With the red tab color and the red wool, that person can only open chests without a wool block or a red woolblock.

Now with the gray tab color and the gray wool color, the person can not open the chest with the gray wool under it.
If i change -cancel event- to a send message like "hello", what happens now is that if i click on the gray wool chest, nothing will happen (it doesnt open the chest). but if i click on a chest with something else under it, i get the Hello message.

Can you guys help me fix that the person with the gray color tab can only open chests with a gray wool under it?


Solved it. Some other code was bugging it.
 
Last edited:
Status
Not open for further replies.