Advertisement
Guest User

startup.lua

a guest
Jun 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local modem = peripheral.wrap("top")
  2. modem.open(55000)
  3. while true do
  4.  
  5.  
  6. event, s, f, rf, msg = os.pullEvent("modem_message")
  7.  
  8.  
  9. if msg == "POWER" then
  10. redstone.setOutput("left",true)
  11. print(""..msg)
  12. end
  13. if msg == "STOP" then
  14. redstone.setOutput("left",false)
  15. print(""..msg)
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement