jonassvensson4

Reactor checker - FUNGERAR

Sep 23rd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local reactor = peripheral.wrap("BigReactors-Reactor_0")
  2. local turbine = peripheral.wrap("BigReactors-Turbine_0")
  3.  
  4. while true do
  5.     if turbine.getEnergyStored() > 50000 then
  6.     turbine.setActive(false)
  7.     elseif turbine.getEnergyStored() < 50000 then
  8.     turbine.setActive(true)
  9.     end
  10. -- Error fix
  11.         os.queueEvent("event");
  12.         os.pullEvent();
  13. end
Advertisement
Add Comment
Please, Sign In to add comment