Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. -- Put the turtle in the bottom left of the shape
  2. local hit = false
  3. while true do
  4.     if turtle.detect() do
  5.         if hit do
  6.             turtle.right()
  7.             turtle.forward()
  8.             turtle.left()
  9.             hit = false
  10.         else
  11.             turtle.right()
  12.             turtle.right()
  13.             hit = true
  14.         end
  15.     end
  16.     turtle.forward()
  17.     turtle.digDown()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement