Advertisement
Guest User

TonyTreeFarm

a guest
Nov 24th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. turtle.select(2) --select slot #2: oak wood
  2. while true do
  3.    
  4.     if turtle.compare() then
  5.         turtle.dig() --current height:1
  6.         if turtle.getFuelLevel() < 8 then --if fuel level is low
  7.             turtle.select(1) --select slot #1: coal
  8.             turtle.refuel(1) --refuel 1 coal
  9.             turtle.select(2) --reselect slot #2 for next loop
  10.         end
  11.         turtle.forward()
  12.         turtle.digUp()
  13.         turtle.up() --current height:2
  14.         turtle.digUp()
  15.         turtle.up() --current height:3
  16.         turtle.digUp()
  17.         turtle.down() --current height:2
  18.         turtle.down() --current height:1
  19.         turtle.back()
  20.     end
  21.     sleep(60)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement