Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img=paintutils.loadImage("core")
- m=peripheral.wrap("back")
- d=0.5
- x=55
- e=peripheral.wrap("draconic_rf_storage_103")
- c1=0
- c2=0
- eMax=e.getMaxEnergyStored()
- term.setBackgroundColor(colors.black)
- term.clear()
- while true do
- sleep(d)
- paintutils.drawImage(img,1,1)
- sleep(d)
- paintutils.drawImage(img,1,-33)
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- c2=c1
- c1=e.getEnergyStored()
- term.setCursorPos(x,5)
- term.write("Charged to:")
- term.setCursorPos(x,6)
- term.write(tostring(math.floor(100/eMax*c1)).."% ")
- term.setCursorPos(x,1)
- term.write("Energy Total:")
- term.setCursorPos(x,2)
- term.write(tostring(c1))
- term.setCursorPos(x,3)
- en=(c1-c2)/20
- if en>0 then
- term.setTextColor(colors.green)
- term.write("RF IN ")
- else
- term.setTextColor(colors.red)
- term.write("RF Out ")
- end
- term.setCursorPos(x,4)
- term.write(tostring(en).." ")
- end
Add Comment
Please, Sign In to add comment