Advertisement
XSiggeManx

new core screen

May 15th, 2022 (edited)
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. computerIds = { 0 } -- You can get the ID by typing "id" into the terminal.
  2.  
  3. reactor = peripheral.find("draconic_reactor")
  4. if reactor == nil then
  5. print("No reactor found!")
  6. return
  7. end
  8.  
  9. local modemCount = 0
  10. for i,v in pairs(redstone.getSides()) do
  11. if peripheral.getType(v) == "modem" then
  12. rednet.open(v)
  13. modemCount = modemCount + 1
  14. end
  15. end
  16.  
  17. if modemCount < 1 then
  18. print("You need one wireless/ender modem.")
  19. return
  20. end
  21.  
  22. function mainStuff()
  23. while true do
  24. info = reactor.getReactorInfo()
  25. for i,id in pairs(computerIds) do
  26. rednet.send(id, info)
  27. end
  28. sleep(2)
  29. end
  30. end
  31.  
  32. parallel.waitForAll(mainStuff)
  33.  
  34. --setFailSafe(bool)
  35.  
  36. -- cold warming_up running stopping cooling
  37. -- beyond_hope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement