Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tText = {
- " Mining World",
- "Please protect using",
- "GriefDefender!"
- }
- local sSide = "bottom"
- local function printCenter(mon, t)
- local w, h = mon.getSize()
- local y = math.floor((h / 2) - (#t / 2)) - 1
- for i, line in ipairs(t) do
- local x = math.floor((w / 2) - (#line / 2))
- --mon.setTextScale(1)
- mon.setCursorPos(x, y + i)
- mon.write(line)
- end
- end
- printCenter(peripheral.wrap(sSide), tText)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement