Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local sides = require("sides")
- local term = require("term")
- local event = require("event")
- component.modem.open(123)
- while true do
- term.clear()
- local ecell = component.proxy(component.list("thermalexpansion_cell")())
- local x = ecell.getEnergyStored()
- local y = ecell.getMaxEnergyStored()
- local z = (x/y)*100
- print(z,"%")
- component.modem.broadcast(123,z)
- os.sleep(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement