Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TurnAround()
- turtle.turnRight()
- turtle.turnRight()
- end
- while true do
- fuel = turtle.getFuelLevel()
- if fuel < 10000 then
- TurnAround()
- turtle.select(16)
- turtle.suck()
- turtle.refuel()
- TurnAround()
- else
- turtle.select(1)
- turtle.dropDown()
- turtle.suckDown(20)
- turtle.select(2)
- turtle.dropUp()
- turtle.suckUp(15)
- slot1 = turtle.getItemCount(1)
- slot2 = turtle.getItemCount(2)
- print(slot1)
- print(slot2)
- if slot1 == 20 and slot2 == 15 then
- turtle.select(3)
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- a = 1
- while a<6 do
- turtle.forward()
- a = a + 1
- end
- turtle.down()
- turtle.select(1)
- turtle.turnRight()
- turtle.turnRight()
- b = 1
- while b<6 do
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.forward()
- b = b+1
- end
- c = 1
- turtle.turnRight()
- turtle.turnRight()
- while c<6 do
- turtle.forward()
- c = c + 1
- end
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- d = 1
- while d<6 do
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.select(1)
- turtle.placeDown()
- turtle.select(2)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- d = d + 1
- end
- turtle.select(3)
- turtle.placeDown()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- sleep(10)
- else
- print("More materials needed")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement