Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y,z,x = gps.locate(2)
- print("enter x")
- j = read()
- print("enter depth")
- k = read()
- print("enter y")
- l = read()
- print(j)
- print(k)
- print(l)
- J = tonumber(j)
- K = tonumber(k)
- L = tonumber(l)
- while K < z do
- turtle.digDown()
- turtle.down()
- y,z,x = gps.locate(2)
- end
- while K > z do
- turtle.digUp()
- turtle.up()
- y,z,x = gps.locate(2)
- end
- while L < x do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- F = 1
- y,z,x = gps.locate(2)
- end
- end
- H = x - L
- if H > 0 then
- turtle.turnRight()
- turtle.turnRight()
- end
- while L > x do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- F = 2
- y,z,x = gps.locate(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement