Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stilltrue()
- rs.setOutput("left", false)
- os.sleep(4)
- end
- while true do
- shell.run("clear")
- if rs.getInput("right") then
- rs.setOutput("left", true)
- os.sleep(0.5)
- rs.setOutput("left", false)
- os.sleep(4)
- if rs.getInput("right") then
- stilltrue()
- end
- else
- print("redstone OFF")
- rs.setOutput("left", false)
- end
- os.pullEvent("redstone")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement