ThatGravyBoat

Untitled

Feb 1st, 2022 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. peripheral.find("modem", rednet.open)
  2.  
  3. local flipped = false
  4.  
  5. while true do
  6. local id, message = rednet.receive()
  7. if message == "flip" then
  8. flipped = not flipped
  9. if flipped then
  10. redstone.setAnalogOutput("left", 15)
  11. else
  12. redstone.setAnalogOutput("left", 0)
  13. end
  14. end
  15. sleep(1)
  16. end
Add Comment
Please, Sign In to add comment