Advertisement
asteroidsteam

start

Apr 5th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. rednet.open("top")
  2. while true do
  3. local id,msg = rednet.receive()
  4. if msg == "water" then
  5. local id2,msg2 = rednet.receive(3)
  6. if msg2 == nil then
  7. else
  8. if msg2 == 1 then
  9. redstone.setAnalogOutput("right",15)
  10. elseif msg2 == 2 then
  11. redstone.setAnalogOutput("right",0)
  12. end
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement