Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Set the side to send the signal out of (e.g. "right")
- local side = "right"
- -- Function to send a short redstone signal (like a button)
- function sendRedstonePulse()
- -- Turning on the redstone signal on the selected side
- redstone.setOutput(side, true)
- -- Wait for 1 second
- sleep(1)
- -- Turning off the redstone signal
- redstone.setOutput(side, false)
- end
- -- Function call
- sendRedstonePulse()
Advertisement
Add Comment
Please, Sign In to add comment