Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if turtle.getItemCount()>=1 then
- print("Crafting")
- turtle.dropDown()
- rs.setOutput("front",true)
- os.sleep(0.2)
- rs.setOutput("front",false)
- while rs.getInput("right") do
- print("Busy")
- sleep(0.2)
- end
- sleep(6)
- rs.setOutput("left",true)
- os.sleep(0.2)
- rs.setOutput("left",false)
- print("Finished crafting")
- os.sleep(0.6)
- else
- term.clear()
- print("Entering sleep mode")
- for i= 1,5 do
- print(i)
- os.sleep(1)
- end
- print("Reboot")
- os.sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement