Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- j=0
- function ddown()
- while(not turtle.down()) do
- turtle.digDown()
- end
- if not turtle.detectDown() then
- turtle.select(1)
- turtle.placeDown()
- end
- j=j+1
- end
- function fforward()
- while(not turtle.forward()) do
- turtle.dig()
- end
- end
- while(true) do
- ddown()
- fforward()
- if(j==8) then
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement