Advertisement
DustinRosebery

waller

Oct 26th, 2014
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local t = turtle
  2.  
  3.  
  4. local function goingUp()
  5.    
  6.     while t.detect() == false do
  7.        
  8.         t.()
  9.         t.up()
  10.     end
  11. end
  12.  
  13. local function goingDown()
  14.            
  15.     while t.detectDown() == false do
  16.  
  17.         t.dig()    
  18.         t.place()  
  19.         t.down()
  20.     end
  21. end
  22.  
  23. local function clearInventory()
  24.  
  25.     t.select(16)   
  26.     t.turnRight()  
  27.     t.dig()
  28.     t.place()
  29.    
  30.     for i = 9, i = 14, i++     
  31.         t.select(i)
  32.         t.drop()
  33.     end
  34.  
  35.     t.select(16)
  36.     t.dig()
  37.     t.turnLeft()
  38. end
  39.    
  40. local function junkCheck()
  41.    
  42.     itemCount = t.getItemCount(8)
  43.    
  44.     if itemCount > 0
  45.    
  46.         clearInventory()
  47.     end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement