Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("back")
- m.setTextScale(1)
- m.clear()
- xB = 0
- cell1 = peripheral.wrap("cofh_thermalexpansion_energycell_11")
- cell2 = peripheral.wrap("cofh_thermalexpansion_energycell_12")
- cell3 = peripheral.wrap("cofh_thermalexpansion_energycell_13")
- cell4 = peripheral.wrap("cofh_thermalexpansion_energycell_14")
- cell5 = peripheral.wrap("cofh_thermalexpansion_energycell_15")
- cell6 = peripheral.wrap("cofh_thermalexpansion_energycell_16")
- stored1 = cell1.getEnergyStored("cofh_thermalexpansion_energycell_11")
- stored2 = cell2.getEnergyStored("cofh_thermalexpansion_energycell_12")
- stored3 = cell3.getEnergyStored("cofh_thermalexpansion_energycell_13")
- stored4 = cell4.getEnergyStored("cofh_thermalexpansion_energycell_14")
- stored5 = cell3.getEnergyStored("cofh_thermalexpansion_energycell_15")
- stored6 = cell4.getEnergyStored("cofh_thermalexpansion_energycell_16")
- storedmax1 = cell1.getMaxEnergyStored("cofh_thermalexpansion_energycell_11")
- storedmax2 = cell2.getMaxEnergyStored("cofh_thermalexpansion_energycell_12")
- storedmax3 = cell3.getMaxEnergyStored("cofh_thermalexpansion_energycell_13")
- storedmax4 = cell4.getMaxEnergyStored("cofh_thermalexpansion_energycell_14")
- storedmax5 = cell3.getMaxEnergyStored("cofh_thermalexpansion_energycell_15")
- storedmax6 = cell4.getMaxEnergyStored("cofh_thermalexpansion_energycell_16")
- cellp1 = tonumber(stored1)*100/storedmax1.."%"
- cellp2 = tonumber(stored2)*100/storedmax1.."%"
- cellp3 = tonumber(stored3)*100/storedmax3.."%"
- cellp4 = tonumber(stored4)*100/storedmax4.."%"
- cellp5 = tonumber(stored5)*100/storedmax5.."%"
- cellp6 = tonumber(stored6)*100/storedmax6.."%"
- m.setCursorPos(2,2)
- m.write(tonumber(stored1).."/".." Rf")
- m.setCursorPos(2,3)
- m.write(tonumber(storedmax1).." ")
- m.setCursorPos(4,4)
- m.write(cellp1)
- m.setCursorPos(17,2)
- m.write(tonumber(stored2).."/".." Rf")
- m.setCursorPos(17,3)
- m.write(tonumber(storedmax2).." ")
- m.setCursorPos(19,4)
- m.write(cellp2)
- m.setCursorPos(2,6)
- m.write(tonumber(stored3).."/".." Rf")
- m.setCursorPos(2,7)
- m.write(tonumber(storedmax3).." ")
- m.setCursorPos(4,8)
- m.write(cellp3)
- m.setCursorPos(17,6)
- m.write(tonumber(stored4).."/".." Rf")
- m.setCursorPos(17,7)
- m.write(tonumber(storedmax4).." ")
- m.setCursorPos(19,8)
- m.write(cellp4)
- m.setCursorPos(2,10)
- m.write(tonumber(stored5).."/".." Rf")
- m.setCursorPos(2,11)
- m.write(tonumber(storedmax5).." ")
- m.setCursorPos(4,12)
- m.write(cellp5)
- m.setCursorPos(17,10)
- m.write(tonumber(stored6).."/".." Rf")
- m.setCursorPos(17,11)
- m.write(tonumber(storedmax6).." ")
- m.setCursorPos(19,12)
- m.write(cellp6)
- while true do
- sleep(5)
- m.setCursorPos(4,4)
- m.write(cellp1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement