wxyzsupermod

stop

Jan 19th, 2021 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. local modem = peripheral.wrap("right")
  2. modem.open(42)
  3. while true do
  4. shell.run("clear")
  5. if rs.getInput("side") then
  6. print("redstone ON")
  7. modem.transmit(42, 1, "stop")
  8. else
  9. print("redstone OFF")
  10. end
  11. os.pullEvent("redstone")
  12. end
  13. end
Add Comment
Please, Sign In to add comment