View difference between Paste ID: VT2my73g and iVN8trFf
SHOW: | | - or go back to the newest paste.
1-
localfunction centerText(text)
1+
localfunction = centerText(text)
2
local x,y = term.getSize()
3
local x2,y2 = term.getCursorPos()
4
term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
5
write(text)
6
end
7
monitor = peripheral.wrap("back")
8
monitor.setTextScale(5)
9
monitor.setCursorPos(1,1)
10
centerText("Welcome to Yannic's Party Boat :D")
11
end