Advertisement
Guest User

kiwi.lua

a guest
Apr 6th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local mat = peripheral.wrap("left")
  2. if mat == nil then return end
  3.  
  4. function getPercent()
  5.     local cur = mat.getEnergy()/10
  6.     local max = mat.getMaxEnergy()/10
  7.     print(cur, max)
  8. end
  9. getPercent()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement