Last active
August 29, 2015 14:19
-
-
Save AHrubik/207f7c45c952420183a1 to your computer and use it in GitHub Desktop.
Big Reactors 0.3x Wireless Battery 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 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