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:
Errors:
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: