Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Energy = 0
- for i=0,199 do
- x = "mfsu_"..i
- m[1] = peripheral.wrap(x)
- end
- print("[Debug] 200 Peripherals wraped")
- for w=0,199 do
- Energy = Energy + m[w].getEUStored()
- MaxEnergy = MaxEnergy + m[w].getEUCapacity()
- end
- print("MaxEnergy: "..tostring(MaxEnergy))
- print("Energy Stored: "..tostring(Energy))
- print("Percentage: "..tostring(Energy/MaxEnergy*100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement