Skortioth

[CC]: Extreme Reactor - Simple Reactor Fluid Controller

Jul 4th, 2020 (edited)
1,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local side = "top"
  2.  
  3. local reactor = peripheral.wrap(side)
  4. local maxHotFluidAmount = 12000
  5.  
  6. while true do
  7.     if(reactor.getHotFluidAmount()>=maxHotFluidAmount)then
  8.         reactor.setActive(false)
  9.     end
  10.     if(reactor.getHotFluidAmount()<maxHotFluidAmount)then
  11.         reactor.setActive(true)
  12.     end
  13.     os.sleep(0.25)
  14. end
Add Comment
Please, Sign In to add comment