1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved cannot make console execute a command

Discussion in 'Skript' started by SquidR, Nov 28, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. SquidR

    SquidR New Member

    Joined:
    Jan 28, 2021
    Messages:
    6
    Likes Received:
    0
    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 (Text):
    1. on right click:
    2.     if player's held item is chest named "&lBox":
    3.         chance of 20%:
    4.             add 1 stone with name "keyitem1" to player's inventory
    5.             make console execute command "tellraw @p {"text":"Got Keyitem1!","color":"blue","italic":false}"
    6.         chance of 80%:
    7.             add 1 stone with name "keyitem2" to player's inventory
    8.             make console execute command "tellraw @p {"text":"Got Keyitem2!","color":"blue","italic":false}"
     
  2. Best Answer:
    Post #2 by yea rite, Nov 28, 2021
  3. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    73
    Likes Received:
    5
    dont use execute console command, it causes many lags
    if you want to put something in a players chat, use message, send, or broadcast
     
  4. SquidR

    SquidR New Member

    Joined:
    Jan 28, 2021
    Messages:
    6
    Likes Received:
    0
    thank you! this solves it
     
Thread Status:
Not open for further replies.

Share This Page

Loading...