94Lord

Untitled

Aug 26th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1.  
  2. rednet.open("right")
  3.  
  4. local count = 0
  5. local fuellevel = 100
  6.  
  7. -- ( Fuel ) --
  8.  
  9. function checkFuel()
  10.  
  11.     if turtle.getFuelLevel() <= fuellevel then
  12.     turtle.select(16)
  13.     turtle.refuel(1)
  14.     turtle.select(1)
  15. wride ("Aufgetankt")
  16.  
  17. end
  18.  
  19.  
  20.  
  21.  
  22. -- ( Holz ) --
  23.  
  24. treeblock = "minecraft:log"
  25.  
  26. function Holz()
  27.     while(turtle.forward()==false) do
  28.         turtle.dig()
  29.         turtle.forward()
  30.     end
  31.     success, data = turtle.inspectUp()
  32.     while(success and data.name=treeblock) do
  33.         turtle.digUp()
  34.         turtle.up()
  35.     end
  36.  
  37.     while turtle.detectDown() == false do
  38.         turtle.down()
  39.     end
  40.    
  41.     turtle.back()
  42.    
  43. end
Advertisement
Add Comment
Please, Sign In to add comment