Advertisement
Guest User

mw

a guest
Sep 17th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local tArgs = { ...}
  2. local x = tonumber(tArgs[1])
  3. local y = tonumber(tArgs[2])
  4. local slot = 1
  5. turtle.select(16)
  6. turtle.refuel()
  7.  
  8. for e=1, y, 1 do
  9.  for i=1, 4,1 do
  10.   for w=1, x,1 do
  11.      if turtle.getItemCount(slot) == 0 then
  12.           slot=slot+1
  13.      end
  14.      turtle.select(slot)
  15.  
  16.      
  17.      if turtle.detectDown() and not turtle.compareDown() then
  18.      turtle.digDown()
  19.      end
  20.      turtle.placeDown()
  21.      if w<x then
  22.      turtle.forward()
  23.      end
  24.      if w==x then
  25.      turtle.turnRight()
  26.      end
  27.    end      
  28.    if i==4 and e<y then
  29.   turtle.up()
  30.     end  
  31.  end
  32. end
  33. turtle.back()
  34. for r=1,y,1 do
  35. turtle.down()
  36. end
  37. turtle.turnRight() turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement