Guest User

Untitled

a guest
Jan 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local length = 9
  2. local width = 9
  3. local height()
  4.  
  5. -- DONT TOUCH :P
  6.  
  7. function place()
  8.   turtle.placeDown()
  9.   turtle.forward()
  10. end
  11.  
  12. function rowl()
  13.   for i = 1, length do
  14.   place()
  15. end
  16. end
  17.  
  18. function roww()
  19.   wwidth = width
  20.   wwidth = wwidth - 2
  21.   for i = 1, wwidth do
  22.     place()
  23.   end
  24. end
  25.  
  26. function circle()
  27.   turtle.up()
  28.   rowl()
  29.   turtle.turnRight()
  30.   turtle.forward()
  31.   roww()
  32.   turtle.forward()
  33.   turtle.turnRight()
  34.   rowl()
  35.   turtle.turnRight()
  36.   turtle.forward()
  37.   roww()
  38.   turtle.forward()
  39.   turtle.turnRight()
  40. end
  41.  
  42. function walls()
  43.   for j = 1, height do
  44.     circle()
  45.   end
  46. end
  47.  
  48. function check()
  49.   if(turtle.getItemCount(s
Add Comment
Please, Sign In to add comment