Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 1
- slot = 2
- temp = 1
- print("Reseting flower")
- turtle.turnLeft()
- turtle.suck(1)
- turtle.turnRight()
- turtle.place()
- print("Done")
- while true do
- turtle.turnLeft()
- print("Restocking")
- for i = 1,16 do
- turtle.select(i)
- turtle.suck()
- end
- print("I've restocked! Selecting Slot 1")
- turtle.select(1)
- turtle.turnRight()
- if turtle.getItemCount() < 64 then
- print("Please reboot me when I have items... or wait 1000 seconds ;)")
- sleep(1000)
- end
- if turtle.detect() == true then
- temp = 2
- print("Flower still not reset, waiting")
- while temp == 2 do
- turtle.detect()
- if turtle.detect() == false then
- temp = 1
- print("Looks like it reset! Ill wait a sec then begin my run")
- sleep(10)
- end
- end
- else
- print("Im going to wait a sec, flower may still be reseting")
- sleep(10)
- end
- for i = 1, 6 do
- turtle.place()
- turtle.up()
- turtle.forward()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- count = count + 8
- print("I've completed layer", i)
- if count >= 64 then
- count = 1
- turtle.select(slot)
- slot = slot + 1
- if slot == 17 then
- slot = 1
- end
- end
- end
- while turtle.detectDown() == false do
- turtle.down()
- end
- if turtle.getFuelLevel() < 100 then
- print("Im out of fuel... please refuel me and reboot!")
- while true do
- sleep(10)
- end
- end
- end
Add Comment
Please, Sign In to add comment