Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. local monitor = peripheral.wrap("bottom")
  2. local function centerText(text)
  3. local x,y = term.getSize()
  4. local x2,y2 = term.getCursorPos()
  5. monitor.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  6. monitor.write("Lager und")
  7. monitor.write("mehr")
  8. end
  9.  
  10. centerText(Lager und mehr")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement