Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=turtle
- t.select(16)
- for i=1, 4 do
- t.place()
- t.turnRight()
- end
- t.up()
- turtle.select(15)
- turtle.refuel(5)
- print("The fuel level is: "..turtle.getFuelLevel())
- while 1 == 1 do
- turtle.select(15)
- turtle.refuel(5)
- print("The fuel level is: "..turtle.getFuelLevel())
- if not turtle.detect() then
- os.sleep(5)
- t.turnRight()
- else
- t.down()
- t.dig()
- t.forward()
- h=0
- while turtle.detectUp() do
- h=h+1
- t.digUp()
- t.up()
- end
- for i=1, h do
- t.down()
- end
- t.back()
- t.select(16)
- t.place()
- t.up()
- t.turnRight()
- end
- end
Add Comment
Please, Sign In to add comment