Advertisement
meuced

colonne

Oct 15th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local i=1
  2. local slotNum=0
  3. x=tonumber(io.read())
  4. turtle.select(1)
  5. repeat
  6.     while turtle.getItemCount() == 0 do
  7.         slotNum = slotNum + 1
  8.         turtle.select(slotNum)
  9.     end
  10.     turtle.up()
  11.     turtle.placeDown()
  12.     i=i+1
  13.     sleep(0.1)
  14. until i == x
  15. turtle.forward()
  16. repeat
  17.     turtle.down()
  18.     i = i-1
  19. until i == 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement