Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doNothing()
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- sideIn="left"
- sideOut="right"
- curslot=1
- while true do
- while turtle.getItemCount(curslot)<1 do
- rs.setOutput(sideOut,true)
- curslot=curslot+1
- if curslot>16 then
- curslot=1
- end
- doNothing()
- end
- rs.setOutput(sideOut,false)
- turtle.select(curslot)
- if rs.getInput(sideIn) and not(turtle.detect()) then
- if turtle.place() then
- doNothing()
- end
- else
- doNothing()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement