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(color)
- mon.write(text)
- end
- mon = peripheral.wrap("back")
- mon.setTextScale(2)
- -- mon.clear()
- centerText("BREAKING NEWS", 4,16384)
- centerText("--------------", 5,1)
- centerText("Mojang announce EULA changes to servers", 6,1)
- centerText("'This will fundamentally change how we run", 7,1)
- centerText("and play on servers.'", 8,1)
- centerText("- Sterling, Mineplex CEO", 9,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement