Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get DdYNsTwA CCRules
- --this function will print the text in the centre of the current line of the monitor connected on the specified side
- local monitorprintcentred = function(text, size)
- local monitor = peripheral.wrap("top")
- local maxw, maxh = monitor.getSize() --screen dimensions
- local curx, cury = monitor.getCursorPos() --cursor pos
- if size == "default" then
- monitor.setCursorPos((maxw-#text)/2,cury) --set it to the point where write will make the text centred
- else
- monitor.setCursorPos((#size),cury) --set it to the point where write will make the text centred
- end
- monitor.write(text) --write the text
- monitor.setCursorPos(curx,cury+1) --return the cursor to the same position on the next line
- end
- local monitor = peripheral.wrap("top") -- makes 'monitor' refer to the monitor on the left side
- local maxw, maxh =monitor.getSize() --screen dimensions
- monitor.setTextScale(1.5)
- monitor.setCursorPos(1,math.floor(maxh)/6)--set cursor to the start of the upper middle line
- monitorprintcentred("Rules", "default")-- TITLE
- monitor.setCursorPos(1,1)--set cursor to the start of the upper middle line
- monitor.setTextScale(1)
- monitor.setCursorPos(1,math.floor(maxh)/2)--set cursor to the start of the upper middle line
- monitor.setTextColor(colors.red)
- monitorprintcentred("[1] Be respectful","1")
- monitorprintcentred("[2] No Grieving of any kind.","1")
- monitorprintcentred("[3] No stealing.","1")
- monitorprintcentred("[4] No PVP unless agreed to. Ban-able","1")
- monitorprintcentred(" offence, No Warnings!","1")
- monitorprintcentred("[5a] Please do not build right next to","1")
- monitorprintcentred(" other people unless you have","1")
- monitorprintcentred(" been invited to do so.","1")
- monitorprintcentred("[5b] This also means no building above","1")
- monitorprintcentred(" or below someone as well.","1")
- monitorprintcentred("[6] Use common sense.","1")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement