Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = 0
- local r = 0
- turtle.up()
- function Step()
- if turtle.forward() == false then
- return false
- end
- c = c + 1
- if c % 5 == 0 then
- while turtle.getItemCount(1) <= 1 do
- print("Getting torches")
- turtle.digUp()
- turtle.select(16)
- turtle.placeUp()
- turtle.select(1)
- turtle.suckUp(64)
- turtle.select(16)
- turtle.digUp()
- turtle.select(1)
- end
- turtle.placeDown()
- end
- return true
- end
- while true do
- while Step() do
- print("Step")
- end
- r = r + 1
- function turn()
- if r % 2 == 1 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- end
- turn()
- for i = 1, 5 do
- if turtle.forward() == false then
- print("done")
- while true do
- sleep(100)
- end
- end
- end
- turn()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement