Advertisement
babulm

Untitled

Feb 25th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. function centerText(text, y, color)
  2. -- mon.clear()
  3. mX = mon.getSize()
  4. x = math.floor(mX/2) - math.floor(string.len(text)/2)
  5. mon.setCursorPos(x, y)
  6. mon.setTextColor(color)
  7. mon.write(text)
  8. end
  9.  
  10. mon = peripheral.wrap("bottom")
  11. mon.setTextScale(2)
  12. mon.setBackgroundColor(colors.blue)
  13. -- mon.clear()
  14. centerText("Regeln:", 1,16384)
  15. centerText("1: Baustil der Stadt ist modern zu halten!", 2,1)
  16. centerText("2: Natürlich gelten alle Serverregeln in der Stadt!", 3,1)
  17. centerText("3: Claims in der Stadt sind nicht erlaubt!", 4,1)
  18. centerText("4: Pro User nur 1 GS!", 5,1)
  19. centerText("5: Baumfarmen sind unterirdisch zu bauen!", 6,1)
  20. centerText("6: Alarme und Howler sind unerwünscht!",7,1)
  21. centerText("7: Atomreactoren müssen geprüft werden!",8,1)
  22. centerText("8: Nach 30 Tagen Inaktivität wird das GS gelöscht!",9,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement