Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------
- sideMFSU = "bottom"
- sideMonitor = "top"
- MFSU = peripheral.wrap(sideMFSU)
- Monitor = peripheral.wrap(sideMonitor)
- --------
- function check()
- EnergyS = MFSU.getEUStored()
- EnergyC = MFSU.getEUCapacity()
- Pourcent = math.floor(EnergyS/EnergyC*100)
- end
- function production()
- time1 = EnergyS
- sleep(1)
- check()
- time2 = EnergyS
- pro = math.floor(time2-time1)
- end
- while true do
- check()
- production()
- print(EnergyS.."/"..EnergyC.." "..Pourcent.."%")
- print(pro.."EU/S")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement