Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turtle.move()
- if turtle.getFuelLevel() < 10 then
- turtle.select(1)
- turtle.digUp()
- turtle.placeUp()
- turtle.select(2)
- turtle.suckUp()
- turtle.refuel()
- turtle.select(1)
- turtle.digUp()
- end
- end
- local u = turtle.up
- local d = turtle.down
- local f = turtle.forward
- local b = turtle.back
- function turtle.up() turtle.move() u() end
- function turtle.down() turtle.move() d() end
- function turtle.forward() turtle.move() f() end
- function turtle.back() turtle.move() b() end
- while 1 do
- turtle.forward()
- turtle.up()
- turtle.back()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement