l0nax

Untitled

Mar 21st, 2022
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. redstone.setOutput("right", false)
  2. rednet.open("back")
  3.  
  4. while (true)
  5. do
  6. local _, msg, _ = rednet.receive()
  7. if msg == "on" then redstone.setOutput("right", true)
  8. elseif msg == "off" then redstone.setOutput("right", false)
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment