Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- print("waiting for input signal")
- os.pullEvent("redstone")
- if redstone.getInput("right")==true then
- print("crafting...")
- for i=1,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.select(1)
- while turtle.getItemCount(1)==0 do
- redstone.setOutput("top",true)
- sleep(1)
- redstone.setOutput("top",false)
- sleep(1)
- end
- turtle.select(16)
- turtle.craft()
- for i=1,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment