Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cell = peripheral.wrap("cofh_thermalexpansion_energycell_1")
- cellStored = cell.getEnergyStored("cofh_thermalexpansion_energycell_1")
- cellFull = cell.getMaxEnergyStored("cofh_thermalexpansion_energycell_1")
- cellPercent = math.floor(100*cellStored/cellFull)
- print(tonumber(cellStored))
- print(cellFull)
- -- Better format
- print(tonumber(cellStored).."/"..cellFull.." "..cellPercent.."%")
Advertisement
Add Comment
Please, Sign In to add comment