Advertisement
Guest User

fall

a guest
Jul 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. function baum()
  2.   turtle.select(1)
  3.   turtle.dig()
  4.   turtle.forward()
  5.     while turtle.detectUp() do
  6.       turtle.digUp()
  7.       turtle.up()
  8.     end
  9.  
  10.   while not turtle.detectDown() do
  11.     turtle.down()
  12.   end
  13. end
  14.  
  15.  
  16. function null()
  17.   turtle.select(1)
  18.   turtle.drop()
  19.   turtle.select(2)
  20.   turtle.drop()
  21.   turtle.select(3)
  22.   turtle.drop()
  23.   turtle.select(4)
  24.   turtle.drop()
  25.   turtle.select(5)
  26.   turtle.drop()
  27.  
  28.   turtle.back()
  29.   turtle.select(15)
  30.   turtle.place()
  31.   turtle.select(16)
  32. end
  33.  
  34. function setzling()
  35.   turtle.turnLeft()
  36.   turtle.turnLeft()
  37.  
  38.     while not turtle.detect() do
  39.       turtle.forward()
  40.     end
  41.  
  42.   turtle.select(15)
  43.   turtle.suck()
  44.    
  45.    
  46.    
  47.    
  48.   turtle.turnLeft()
  49.   turtle.turnLeft()
  50.    
  51.     while not turtle.detect() do
  52.       turtle.forward()
  53.     end
  54.   turtle.select(16)
  55.  
  56. end
  57.  
  58.    
  59.        
  60.            
  61.      
  62. turtle.select(16)
  63.  
  64. while true do
  65.   if turtle.compare() then
  66.     baum()
  67.     null()
  68.   end
  69.  
  70.   if turtle.getItemCount(15) < 1 then
  71.     setzling()
  72.   end
  73.  
  74.  
  75.   sleep(1)
  76. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement