Skip to content

Instantly share code, notes, and snippets.

@AHrubik
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AHrubik/11197618 to your computer and use it in GitHub Desktop.
Save AHrubik/11197618 to your computer and use it in GitHub Desktop.
Big Reactors 0.3x Computer Craft 1.6x Efficiency Script
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