View difference between Paste ID: JmTP1k9M and 8Qa0SaB2
SHOW: | | - or go back to the newest paste.
1
m = peripheral.wrap("back")
2-
  x,y = term.getSize()
2+
m.clear()
3-
  x1,y1 = term.getCursorPos()
3+
m.setCursorPos(1,1)
4-
  term.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
4+
m.setTextScale(2)
5-
  term.write(text)
5+
6-
end
6+
7
  x,y = m.getSize()
8
  x1,y1 = m.getCursorPos()
9
  m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
10
  m.write(text)  
11
end
12
13
--Call function "centerText("")" to set text
14
--Use m.setCursorPos(1,y) to choose placement on screen
15
16
y2 = 7
17
m.setCursorPos(1, y2)
18
centerText("A note from the Owner...")
19
m.setCursorPos(1, y2 + 2)
20
centerText("The idea for this server is to provide")
21
m.setCursorPos(1, y2 + 3)
22
centerText("a level playing field for all players. ")
23
m.setCursorPos(1, y2 + 4)
24
centerText("The server is still just a baby")
25
m.setCursorPos(1, y2 + 5)
26
centerText("I have many plans for more features. ")
27
m.setCursorPos(1, y2 + 6)
28
centerText("Like mini-games and more")
29
m.setCursorPos(1, y2 + 7)
30
centerText("Right now its very simple. ")
31
m.setCursorPos(1, y2 + 8)
32
centerText("Just some PvE economy survival.")
33
m.setCursorPos(1, y2 + 10)
34
centerText("Thanks, s3ptum")