Advertisement
TJtheDJ701

Untitled

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