Tooki

REACTOR - SoftwareEmit

Apr 8th, 2019
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. os.loadAPI("config")
  2. modem = peripheral.wrap(config.modem)
  3. reactor = peripheral.wrap(config.reactor)
  4.  
  5. reactor.setActive(false)
  6. reactor.setAllControlRodLevels(0)
  7.  
  8. while true do
  9.     Activity = reactor.getActive()
  10.     if Activity then Activity = "on " else Activity = "off" end
  11.     modem.transmit(21, config.id, "Reactor-Statut:1:"..Activity)
  12.     sleep(5)
  13. end
Add Comment
Please, Sign In to add comment