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.

My Skript Isn't Working

Discussion in 'Skript' started by Strixus17, Sep 28, 2019.

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

    Strixus17 New Member

    Joined:
    Aug 18, 2019
    Messages:
    7
    Likes Received:
    0
    This is a game where cactus appear in random locations and the player has to avoid them , but i want to put a significant by making a red sand block appear 1 second before the cactus to warn the player but it's not working

    Skript:

    Code (Text):
    1. Every 3 seconds in "races":
    2.     loop all players in "races":
    3.         loop-player's y coordinate is 64 or 65 or 66
    4.         make loop-player execute command "/fill 1 64 13 -7 64 27 air"
    5.         make loop-player execute command "/fill 1 63 13 -7 63 27 sand"
    6.         loop 10 times:
    7.             set {coordx} to random integer between -7 and 1
    8.             set {coordz} to random integer between 13 and 27
    9.             set {coord} to "%{coordx}%, 63, %{coordz}%"
    10.             set block at location at {coord} in world "races" to red sand
    11.             wait 1 seconds
    12.             set block above location at {coord} in world "races" to cactus


    Errors:

    upload_2019-9-28_21-47-28.png
     
  2. FossilOG

    FossilOG Member

    Joined:
    Jul 31, 2019
    Messages:
    11
    Likes Received:
    0
    Instead of: set block at location at {coord} in world "races" to red sand
    Try: set block at location at %{coord}% in world "races" to red sand
    Im not sure If Its going to work
     
  3. Strixus17

    Strixus17 New Member

    Joined:
    Aug 18, 2019
    Messages:
    7
    Likes Received:
    0
    not working :emoji_frowning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...