Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mainLoop(input)
- while true
- do
- time = ((os.time() + 18) % 24) * 1000
- if time >= 13670 and time <= 22330 then
- redstone.setOutput(input, false)
- else
- redstone.setOutput(input, true)
- end
- os.sleep(0.1)
- end
- end
- args = { ... }
- inputSide = args[1]
- mainLoop(inputSide)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement