Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("back")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextScale(1)
- local function centerText(text)
- x,y = m.getSize()
- x1,y1 = m.getCursorPos()
- m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
- m.write(text)
- end
- --Call function "centerText("")" to set text
- --Use m.setCursorPos(1,y) to choose placement on screen
- y2 = 1
- m.setCursorPos(1, y2 + 1)
- centerText("FINALCRAFT ONLINE")
- m.setCursorPos(1, y2 + 2)
- centerText("RULES")
- m.setCursorPos(1, y2 + 4)
- centerText("NO GREIFING")
- m.setCursorPos(1, y2 + 5)
- centerText("BE NICE")
- m.setCursorPos(1, y2 + 6)
- centerText("HAVE FUN")
- m.setCursorPos(1, y2 + 8)
- centerText("Sign up at fco.enjin.com for member rank!")
- m.setCursorPos(1, y2 + 9)
- centerText("To get to mining world use:")
- m.setCursorPos(1, y2 + 10)
- centerText("/goto mine")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement