Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- atmid = 13209
- rednet.open("back")
- function empfangen()
- id,uebertragung3 = rednet.receive()
- if id == atmid then
- data = textutils.unserialize(uebertragung3)
- status = data.status
- end
- end
- while true do
- empfangen()
- if status == "auf" then
- rs.setOutput("right", false)
- end
- if status == "zu" then
- rs.setOutput("right", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement