Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sInputSide = "left" -- change to the side of the redstone input (where the wire is)
- local count = 0
- local lastInput = false
- while true do
- os.pullEvent("redstone")
- local input = rs.getInput(sInputSide)
- if input ~= lastInput then
- if input then
- term.clear()
- count = count + 10
- print(count)
- end
- lastInput = input
- end
- end
- local sInputSide2 = "right" -- change to the side of the redstone input (where the wire is)
- while true do
- os.pullEvent("redstone")
- local input = rs.getInput(sInputSide2)
- 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