Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fl = turtle.getFuelLevel()
- local laps = 0
- local round = 0
- local ia = turtle.getItemCount()
- local loop = 1
- local do_once_1 = 0
- local down = 1
- rednet.open("right")
- while loop == 1 do
- if fl == 0 then --{{Checks Fuel Level}}--
- turtle.select(1)
- if ia == 0 then
- rednet.send(18, "Fl = 0")
- write("Insert Some Fuel In Slot 1...")
- break
- end
- turtle.refuel(1)
- end
- if round == 8 then
- if laps == 4 then
- break
- end
- round = 0
- turtle.turnLeft()
- laps = laps + 1
- end
- if down == 1 then
- turtle.digDown()
- turtle.down()
- down = 0
- end
- turtle.digForward()
- turtle.forward()
- round = round + 1
- rednet.send(18, fl)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement