Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(2) --select slot #2: oak wood
- while true do
- if turtle.compare() then
- turtle.dig() --current height:1
- if turtle.getFuelLevel() < 8 then --if fuel level is low
- turtle.select(1) --select slot #1: coal
- turtle.refuel(1) --refuel 1 coal
- turtle.select(2) --reselect slot #2 for next loop
- end
- turtle.forward()
- turtle.digUp()
- turtle.up() --current height:2
- turtle.digUp()
- turtle.up() --current height:3
- turtle.digUp()
- turtle.down() --current height:2
- turtle.down() --current height:1
- turtle.back()
- end
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement