Posted 06 January 2013 - 04:16 PM
I get a :17: expected string, number error – And I can't seem to figure out the error.
local function White()
redstone.setBundledOutput("back", colors.white)
sleep(1)
redstone.setBundledOutput("back", 0)
end
local function Red()
redstone.setBundledOutput("back", colors.red)
sleep(1)
redstone.setBundledOutput("back", 0)
end
local function Yellow()
redstone.setBundledOutput("back", colors.yellow)
sleep(1)
redstone.setBundledOutput("back", 0)
end
local function Orange()
redstone.setBundledOutput("back", colors.orange)
sleep(1)
redstone.setBundledOutput("back", 0)
end
local function Movedown()
local i = 1
repeat
White()
Sleep(2)
Red()
Sleep(3)
i = i + 1
until i == 100
end
local function Moveup()
local j = 1
repeat
Yellow()
Sleep(5)
j = j + 1
until j == 100
end
local function Movesouth()
local k = 1
repeat
Orange()
Sleep(2)
Red()
Sleep(3)
k = k + 1
until k == 17
end
while true do
Movesouth()
Sleep(1)
Movedown()
Sleep(1)
Moveup()
Sleep(1)
end