Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mat = peripheral.wrap("left")
- if mat == nil then return end
- function getPercent()
- local cur = mat.getEnergy()/10
- local max = mat.getMaxEnergy()/10
- print(cur, max)
- end
- getPercent()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement