Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "right"
- timeout = 2
- redstone.setOutput(side, false)
- while 1 do
- local event, param = os.pullEventRaw()
- if event == "player" then
- if param == "test" then
- expander = peripheral.wrap(side)
- expander.setOutput(1)
- sleep(timeout)
- expander.setOutput(0)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement