Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time_on = 15
- time_off = 25
- status = false
- on = true
- os.startTimer(1)
- while true do
- event = os.pullEvent()
- status = redstone.getInput("right")
- if status then
- if on then
- rs.setBundledOutput("back", colors.white)
- on = false
- os.startTimer(time_on)
- else
- rs.setBundledOutput("back", 0)
- on = true
- os.startTimer(time_off)
- end
- else
- rs.setBundledOutput("back", 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment