Skip to content

Instantly share code, notes, and snippets.

@AHrubik
Last active August 29, 2015 14:19
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/207f7c45c952420183a1 to your computer and use it in GitHub Desktop.
Save AHrubik/207f7c45c952420183a1 to your computer and use it in GitHub Desktop.
Big Reactors 0.3x Wireless Battery Efficiency Script
local battery = peripheral.wrap("right") -- Wrap the battery to the right
while true do -- Loop forever
sleep(0) -- This sleeps for 5 seconds
if battery.getEnergyStored() < 100000 then -- If the reactor has less than 9900000 then
modem.transmit(10,11,"reactor_on") -- Activates the reactor
end
if battery.getEnergyStored() > 79999990 then -- If the reactor has more than 9900000 then
modem.transmit(10,11,"reactor_off") -- Deactivates the reactor
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment