Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- local lastInput = false
- while true do
- os.pullEvent("redstone")
- local input = rs.getInput(left)
- if input ~= lastInput then
- if input then
- term.clear()
- count = count + 10
- print(count)
- end
- lastInput = input
- end
- end
- while true do
- os.pullEvent("redstone")
- local input = rs.getInput(right)
- if input ~= lastInput then
- if input then
- term.clear()
- count = count - 10
- print(count)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement