Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FL = turtle.getFuelLevel()
- turtle.refuel(1)
- term.setTextColor(colors.lime)
- write("Starting Chop Bot\n")
- write("Brandstof is " .. FL)
- function refeul()
- if FL < 10 then
- turtle.select(1)
- turtle.refuel(1)
- local FL = turtle.getFuelLevel()
- write("\nBrandstof gebruikt\n Feul Level: " .. FL)
- end
- end
- function pak()
- turtle.select(2)
- turtle.suck()
- turtle.suckUp()
- end
- function chop()
- local success, data = turtle.inspect()
- if data.name == "minecraft:log" then
- turtle.select(3)
- term.setTextColor(colors.orange)
- write("\nLog Gevonden")
- term.setTextColor(colors.lime)
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.up()
- end
- while turtle.detectDown() == false do
- turtle.down()
- end
- turtle.back()
- turtle.select(2)
- turtle.place()
- turtle.select(3)
- end
- end
- while true do
- chop()
- refeul()
- pak()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement