Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- localfunction centerText(text)
- local x,y = term.getSize()
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- write(text)
- end
- monitor = peripheral.wrap("back")
- monitor.setTextScale(5)
- monitor.setCursorPos(1,1)
- centerText("Welcome to Yannic's Party Boat :D")
- end
Advertisement
Add Comment
Please, Sign In to add comment