Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- core = peripheral.wrap("draconic_rf_storage_5")
- flux = peripheral.wrap("flux_gate_3")
- mon = peripheral.wrap("monitor_2")
- local maxPower = 0
- local curPower = 0
- local prevPower = 0
- local percPower = 0
- monX,monY = mon.getSize()
- function checkPower()
- maxPower = core.getMaxEnergyStored()
- curPower = core.getEnergyStored()
- percPower = math.floor((curPower/maxPower)*100)
- end
- while true do
- checkPower()
- print(curPower .. "/" .. maxPower)
- prevPower = curPower
- print(prevPower)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement