Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PrintCentered(sText)
- local w, h = m.getSize()
- local x, y = m.getCursorPos()
- x = math.max(math.floor((w / 2) - (#sText / 2)), 0)
- m.setCursorPos(x, y)
- m.write(sText)
- end
- m = peripheral.wrap("left")
- m.clear()
- m.setTextSize(2)
- m.setTextColor(colors.purple)
- PrintCentered("Quarry Location")
- PrintCentered("Test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement