Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --1
- --1
- --0
- input = {}
- output = {}
- extra = {}
- input[1] = "left"
- output[1] = "back"
- -- Pulse Former
- -- Created by: FuzzyPurp
- local rRunning = true
- term.clear()
- term.setCursorPos(1,2)
- print("Pulse Former is now running.")
- print("Input(s): " .. input[1] .. ".")
- print("Output(s): " .. output[1] .. ".")
- print("\nHold Control+T to terminate.")
- while rRunning do
- sleep(0.1)
- local rEvent, param = os.pullEvent()
- if rEvent == "redstone" then
- if rs.getInput(input[1]) then
- rs.setOutput(output[1], true)
- sleep(0.2)
- rs.setOutput(output[1], false)
- end
- end
- end
Add Comment
Please, Sign In to add comment