Advertisement
Guest User

code

a guest
Apr 20th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. function placeSlot(slot, dir)
  2.  dir = dir or ''
  3.  turtle.select(slot)
  4.  turtle['dig' .. dir]()
  5.  turtle['place' .. dir]()
  6. end
  7.  
  8. for i = 1,10 do
  9.  turtle.digDown()
  10.  if not turtle.detect() then
  11.   placeSlot(1)
  12.  end
  13.  placeSlot(2, 'Up')
  14.  turtle.down()
  15.  
  16.  if i % 2 == 0 then
  17.   turtle.turnLeft()
  18.   placeSlot(3)
  19.   turtle.turnRight()
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement