Last active
August 29, 2015 14:00
-
-
Save AHrubik/11197618 to your computer and use it in GitHub Desktop.
Big Reactors 0.3x Computer Craft 1.6x Efficiency Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local reactor = peripheral.wrap("right") -- Wrap the reactor to the right | |
while true do -- Loop forever | |
sleep(0) -- This sleeps for 5 seconds | |
if reactor.getEnergyStored() < 10000 then -- If the reactor has less than 9900000 then | |
reactor.setActive (true) -- Activates the reactor | |
end | |
if reactor.getEnergyStored() > 9999990 then -- If the reactor has more than 9900000 then | |
reactor.setActive (false) -- Deactivates the reactor | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment