Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script to test redstone relay from CC:tweaked and physical button redstone signals
- -----------------
- local relay = peripheral.wrap("redstoneIntegrator_0")
- function getPress()
- if relay.getAnalogInput("right") == true then
- print("A button has been pressed!")
- end
- end
- while true do
- getPress()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement