Solved cannot make console execute a command

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

SquidR

New Member
Jan 28, 2021
6
0
1
19
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:
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}"
 
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:
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}"
dont use execute console command, it causes many lags
if you want to put something in a players chat, use message, send, or broadcast
 
Status
Not open for further replies.