Hello guys.
i have a working code for every color wool, except for gray wool.
This is a working code for brown wool.
Now this is the not working code with gray wool:
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.
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: