Advertisement
Guest User

fence

a guest
May 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. function place32()
  2.   for i=1,31 do
  3.     if turtle.forward() = true do
  4.       turtle.forward()
  5.     else
  6.       turtle.dig()
  7.       turtle.forward()
  8.     end
  9.     if turtle.placeDown() = true do
  10.       turtle.placeDown()
  11.     else
  12.       turtle.digDown()
  13.       turtle.placeDown()
  14.   end
  15. end
  16.  
  17. turtle.select(1)
  18. place32()
  19. turtle.turnRight()
  20. place32()
  21. turtle.turnRight()
  22. turtle.select(2)
  23. place32()
  24. turtle.turnRight()
  25. place32()
  26. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement