Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("back")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextScale(1.5)
- local function center(text)
- x,y = m.getSize()
- x1,y1 = m.getCursorPos()
- m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
- m.write(text)
- end
- m.setCursorPos(1,2)
- m.clear()
- center("BUNKIER")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement