Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Micro Logger
- --- By: LazyNub
- --- First ver. 5-6-13
- --- Place a chest with turtle above and 4 saplings on all 4 sides
- --- slot one is saplings only slot
- --- slot two is fuel only slot
- t=os.clock()
- function choptree()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- for i=1,4 do
- turtle.dig()
- turtle.suck()
- turtle.turnRight()
- end
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.digDown()
- turtle.down()
- turtle.up()
- turtle.select(1)
- turtle.placeDown()
- turtle.back()
- end
- function doupkeep()
- for i = 3,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- while turtle.getFuelLevel() <= 79 do
- turtle.select(2)
- turtle.refuel(1)
- end
- end
- --- Program Start
- ---
- while true do
- while not turtle.detect() do
- turtle.turnRight()
- sleep(0.5)
- turtle.suck()
- turtle.suckUp()
- end
- choptree()
- doupkeep()
- print("Time since tree: " .. os.clock()-t )
- t=os.clock()
- end
Advertisement
Add Comment
Please, Sign In to add comment