Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Change "top" to whatever side the monitor is on.
- local m = peripheral.wrap("top")
- local BackgroundColor = colors.black
- -- Startup stuff
- m.setCursorBlink(false)
- m.setBackgroundColor(BackgroundColor)
- m.clear()
- -- Simple function to write text at a position, with a color
- local function Write(str, color, x, y, bgcolor)
- m.setTextColor(color)
- if bgcolor ~= nil then
- m.setBackgroundColor(bgcolor)
- end
- m.setCursorPos(x,y)
- m.write(str)
- if bgcolor ~= nil then
- m.setBackgroundColor(BackgroundColor)
- end
- end
- local flashRules = true
- local function PrintWelcome()
- -- Clear out the previous monitor text. We'll be writing to it instantly, so there's no tearing effects.
- m.clear()
- Write("Banned Items", colors.lime, 9, 2)
- Write("Portal Guns", colors.white, 7, 4)
- Write("Gravity Guns", colors.white, 7, 6)
- Write("Canvas Bags", colors.white, 7, 8)
- Write("Bookbinders", colors.white, 7, 10)
- Write("All Forestry bags", colors.white, 7, 12)
- Write("All Chunkloders", colors.white, 7, 14)
- Write("Mining Laser", colors.white, 7, 16)
- Write("Wand of Excavation", colors.white, 7, 18)
- end
- while true do
- PrintWelcome()
- sleep(0.5) -- 0.5 to update the "flashing" text often enough to be able to read it.
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement