Advertisement
Guest User

field

a guest
May 31st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. function stack()
  2.   turtle.dig()
  3.   turtle.forward()
  4.   while turtle.detectUp() do
  5.     turtle.digUp()
  6.     turtle.up()
  7.   end
  8.   if turtle.detectUp() == false then
  9.     turtle.down() until == false
  10.   end
  11. end
  12.  
  13. function line()
  14.   for i=1,100 do
  15.     stack()
  16.   end
  17. end
  18. for i=1,50 do
  19.   line()
  20.   turtle.turnLeft()
  21.   turtle.forward()
  22.   turtle.turnLeft()
  23.   line()
  24.   turtle.turnRight()
  25.   turtle.forward()
  26.   turtle.turnRight()
  27.   line()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement