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("left")
- mon.setTextScale(1)
- mon.setBackgroundColor(colors.blue)
- -- mon.clear()
- centerText("Welcome to HiddenFTB!", 1,16384)
- centerText("----------------------", 2,1)
- centerText("Portal gun, staff of traveling, power tool", 3,1)
- centerText("and Mining laser will all be taken at spawn", 4,1)
- centerText("Anything you lose wont be given back.", 5,1)
- centerText("Good Luck!", 6,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement