Advertisement
gunny576

EnderQuary

Mar 20th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. arg = {...}
  2. arg[1] = arg[1]+0
  3. arg[2] = arg[2]+0
  4.  
  5.  
  6. function row (a)
  7.     for i=1, a-1, 1 do
  8.     turtle.dig()
  9.     place()
  10.     end
  11.     item()
  12. end
  13.  
  14. function place ()
  15.     turtle.digDown()
  16.     turtle.placeDown()
  17.     turtle.forward()
  18.     item()
  19. end
  20.  
  21. function item ()
  22.     if (turtle.getItemCount(c) == 0) then
  23.         c = c +1
  24.         turtle.select(c)
  25.     end
  26. end
  27.  
  28.     x=(arg[1]+1)/2
  29.     row(arg[1])
  30.     turtle.turnLeft()
  31.     row(arg[2])
  32.     turtle.turnLeft()
  33.     row(arg[1])
  34.     turtle.turnLeft()
  35.     row(arg[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement