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("right")
- mon.setTextScale(0.5)
- mon.setBackgroundColor(colors.blue)
- -- mon.clear()
- centerText("Willkommen in Babulmia!", 1,16384)
- centerText("Du bist hier im Vault unter der Stadt gelandet.", 2,1)
- centerText("Durch einen Teleporter kommst du nach draußen.", 3,1)
- centerText("Erkunde gerne die Stadt und melde dich bei mir", 4,1)
- centerText("wenn du ein Teil der Stadt werden möchtest.", 5,1)
- centerText("Bis dahin viel Spaß in der Stadt!", 6,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement