Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Felling turtle script
- local function isLog()
- local success, data = turtle.inspect()
- if success then
- if data.name == "minecraft:log" then
- return true
- else
- return false
- end
- else
- return false
- end
- end
- while true do
- if turtle.getFuelLevel() == 0 then
- turtle.refuel()
- else
- if isLog == true then
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.dig()
- turtle.up()
- else
- local isdown = turtle.detectDown()
- while isdown == false do
- turtle.down()
- isdown = turtle.detectDown()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement