Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do -- makes the program loop
- rednet.open("left") -- listens for rednet
- id,message = rednet.receive() -- listens for rednet signal
- if id == 33 and message == "asdf" then -- checks sender and message content, then does something
- print("bonjourno!")
- rs.setOutput("right", true) --sends the redstone signal and pulses it with sleep
- sleep(3)
- rs.setOutput("right", false)
- end -- needed
- end -- needed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement