Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function centerText(text, y, color)
- -- mon.clear()
- mX = mon.getSize()
- x = math.floor(mX/2) - math.floor(string.len(text)/2)
- mon.setCursorPos(x, y)
- mon.setTextColor(colors.green)
- mon.write(text)
- end
- mon = peripheral.wrap("top")
- mon.setTextScale(0.8)
- mon.setBackgroundColor(colors.black)
- -- mon.clear()
- centerText("Welcome!", 1,16384)
- centerText("--------------", 2,1)
- centerText("Kitty City is a friendly zone!", 3,1)
- centerText("No griefing, No stealing! No scamming!", 4,1)
- centerText("Respect others, don't beg for items!", 5,1)
- centerText("Members should try to contribute to the town!", 6,1)
- centerText("Kitty reserves the right to evict meanies!", 7,1)
- centerText("Don't forget to see the Information Boards!", 8,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement