jille_Jr icon

Lumberjack auto

jille_Jr | PRO | 11/05/18 08:44:59 PM UTC | 0 ⭐ | 460 👁️ | Never ⏰ | []
Lua |

640 B

|

None

|

0 👍

/

0 👎

function hugg()
    turtle.dig()
    turtle.forward()
    
    while turtle.detectUp() do
        turtle.digUp()
        turtle.up()
    end
    
    while not turtle.detectDown() do
        turtle.down()
    end
    
    turtle.back()
end
 
function bonemeal()
   rs.setOutput("left", true)
   sleep(0.5)
   rs.setOutput("left", false)
   sleep(0.5)
end
 
function hanterablocket()
    if turtle.compare() then
        bonemeal()
    else
        hugg()
    end
end
 
function planthugg()
    if turtle.detect() then
        hanterablocket()
    else
        turtle.place()
    end
end
 
while true do
    planthugg()
end

Comments