Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fuel()
- local fuel
- fuel = turtle.getFuelLevel()
- if fuel < 100 then
- turtle.select(16)
- turtle.refuel(10)
- end
- end
- while true do
- fuel()
- turtle.select(1)
- turtle.place()
- turtle.up()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- turtle.select(2)
- turtle.up()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.down()
- turtle.down()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.select(1)
- count1 = turtle.getItemCount()
- if count1 < 16 then
- turtle.suck(32)
- end
- turtle.select(2)
- turtle.up()
- count2 = turtle.getItemCount()
- if count2 < 16 then
- turtle.suck(32)
- end
- turtle.select(16)
- turtle.up()
- count3 = turtle.getItemCount()
- if count3 < 16 then
- turtle.suck(32)
- end
- fuel()
- turtle.down()
- turtle.down()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- os.sleep(20)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement