Advertisement
TJtheDJ701

Untitled

Sep 27th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. cube = peripheral.wrap("left")
  2.  
  3. energy = cube.getEnergy()
  4.  
  5. local w, h = term.getSize()
  6. local x, y = term.getCursorPos()
  7. x = math.max(math.floor((w / 2) - (#energy .. " RF" / 2)), 0)
  8. term.setCursorPos(x, y)
  9. print(energy .. " RF")
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement