Posted 06 November 2012 - 10:19 AM
i've made a worldeater program for a turtle.
but when i try to start it it sasy that end line 9 is to close to while line 5
can someone tell me what i'm doing wrong?
but when i try to start it it sasy that end line 9 is to close to while line 5
can someone tell me what i'm doing wrong?
Spoiler
while true do
os.pullEvent("redstone") -- wait for a "redstone" event
if rs.getInput("back") then -- check the input
while true do
down = 0
turtle.digDown()
turtle.Down()
down = down + 1
until down == 50
turtle.dig()
turtle.forward()
up = 0
turtle.digUp()
turtle.up()
up = up + 1
until up == 50
turtle.dig()
turtle.forward()
end
end
end
end
end