I am trying to run a tellraw command telling you the item you got when you open the box, but it says that it doesn't understand that condition/effect, I've looked all around and no solution I've found has worked.
I am on version 1.17.1 using skript 2.6
Code:
I am on version 1.17.1 using skript 2.6
Code:
Code:
on right click:
if player's held item is chest named "&lBox":
chance of 20%:
add 1 stone with name "keyitem1" to player's inventory
make console execute command "tellraw @p {"text":"Got Keyitem1!","color":"blue","italic":false}"
chance of 80%:
add 1 stone with name "keyitem2" to player's inventory
make console execute command "tellraw @p {"text":"Got Keyitem2!","color":"blue","italic":false}"