AlexMastang

Mekanism Basic Fission Reactor Control

Apr 3rd, 2022 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local reactor = peripheral.find("fissionReactorLogicAdapter")
  2.  
  3. -- Drag-and-drop this file on the activated computer monitor, it will copy the file in the main directory, then just call the program writing in the shell: "reactor_simple_control.lua"
  4.  
  5. -- Here's the setup
  6.  
  7. -- You just have to connect with one wired modem the reactor logic port to the computer (another wired modem)
  8. -- Remember to activate both modems right-clicking them to red (and "connected to network" message in chat)
  9.  
  10. while true do
  11.     if reactor.getStatus() == true then
  12.         if reactor.getTemperature() > 1173,15 then
  13.             reactor.scram()
  14.         end
  15.     end
  16.     os.sleep(0.5)
  17. end
Add Comment
Please, Sign In to add comment