Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local standby = 0
- local tree = 0
- local lumber = 0
- while turtle.detectDown() do
- while redstone.getInput("back", true) do
- standby = 0
- tree = tree + 1
- print( "Chopping Tree Number "..tree )
- while turtle.detect() do
- turtle.dig()
- turtle.forward()
- end
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectUp() and not turtle.detectDown() do
- turtle.down()
- end
- redstone.setOutput("left", false)
- turtle.back()
- turtle.place(1)
- redstone.setOutput("left", true)
- lumber = turtle.getitemCount(2)
- while lumber > 63 do
- print( "Depositing Items to Obby Pipe" )
- turtle.turnRight()
- turtle.drop(2)
- turtle.drop(3)
- turtle.turnLeft()
- end
- end
- while not redstone.getInput("back", true) do
- if standby == 0 then
- print( "Standby Mode" )
- standby = standby + 1
- tree = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment