Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local reactor = component.br_reactor
- local storage = component.draconicevolution_tileenergypylon
- local max = (storage.getMaxEnergy())
- local energy = (storage.getEnergy())
- if reactor then
- if reactor.getConnected() then
- print("Successfully connected to the reactor.")
- end
- else
- print("Could not connect to the reactor.")
- os.exit()
- end
- print(max)
- print(energy)
- --[[
- while true do
- if (energy / max) < 0.5 then
- reactor.setActive(true)
- print("Activated the reactor.")
- end
- if (energy / max) > 0.95 then
- reactor.setActive(false)
- print("Deactivated the reactor.")
- end
- end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement