Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cell =
- local mnt = peripheral.wrap("top")
- local eNow, eMAx
- local kRf = " kRF"
- local string
- local x,y
- local function overview (x,y,string)
- eNow = cell.getEnergyStored() / 1000
- eMax = cell.getMaxEnergyStored() / 1000
- mnt.setCursorPos(x,y)
- mnt.setTextColor(colors.lightBlue)
- mnt.write(string)
- mnt.setCursorPos(x,y+2)
- mnt.setTextColor(colors.red)
- mnt.write(eNow)
- mnt.setTextColor(colors.lightBlue)
- mnt.write(" / ")
- mnt.setTextColor(colors.green)
- mnt.write(eMax) mnt.write(kRf)
- end
- while true do
- overview(2,2,"enderman")
- overview(2,6,"lukasraum")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement