Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local time = 13 -- set the time you want to absorb
- local side = "back" -- set the side for the redstone signal output (left/right/back/front/up/down)
- local args = {...}
- if(args[1] ~= nil)then
- time = tonumber(args[1])
- end
- if(args[2] ~= nil)then
- side = args[2]
- end
- if(time == nil)then
- assert("Error: time is not a valid number")
- end
- while true do
- local cTime = os.time()
- if(cTime >= time)and(cTime <= time+0.2)then
- rs.setOutput(side, true)
- os.sleep(0.5)
- rs.setOutput(side, false)
- os.sleep(5)
- end
- os.sleep(0.25)
- end
Add Comment
Please, Sign In to add comment