ShivaFang

Untitled

Sep 12th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getBlock()
  2.   turtle.suckDown()  
  3. end
  4.  
  5. function checkSlot()
  6.   if (turtle.getItemCount(1)) == 0 then
  7.     getBlock()
  8.   else
  9.     turtle.place()
  10.   end
  11. end
  12.  
  13. function run()
  14.   turtle.select(1)
  15.   while true do  
  16.     checkSlot()
  17.   end
  18. end
  19.  
  20. run()
Advertisement
Add Comment
Please, Sign In to add comment