Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- local function move()
- if turtle.detect() then
- turtle.up()
- turtle.forward()
- else
- if turtle.detectDown() then
- else
- turtle.down()
- end
- turtle.suck()
- turtle.forward()
- end
- end
- local function turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- local function turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- local function row8()
- i = 9
- repeat
- move()
- i = i - 1
- until i < 1
- end
- repeat
- local senderId, message, distance = rednet.receive()
- print("Beginning in 2 min")
- sleep(120)
- row8()
- turnRight()
- row8()
- turnLeft()
- row8()
- turnRight()
- row8()
- turnLeft()
- row8()
- turnRight()
- row8()
- turnLeft()
- row8()
- turnRight()
- row8()
- turnLeft()
- row8()
- turnRight()
- sleep(120)
- until redstone.getInput("right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement