My Skript Isn't Working

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

Strixus17

New Member
Aug 18, 2019
7
0
0
25
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:
Every 3 seconds in "races":
    loop all players in "races":
        loop-player's y coordinate is 64 or 65 or 66
        make loop-player execute command "/fill 1 64 13 -7 64 27 air"
        make loop-player execute command "/fill 1 63 13 -7 63 27 sand"
        loop 10 times:
            set {coordx} to random integer between -7 and 1
            set {coordz} to random integer between 13 and 27
            set {coord} to "%{coordx}%, 63, %{coordz}%"
            set block at location at {coord} in world "races" to red sand
            wait 1 seconds
            set block above location at {coord} in world "races" to cactus


Errors:

upload_2019-9-28_21-47-28.png
 
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
 
Status
Not open for further replies.