Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local title = "XtreamTech Banned Items"
- local banned = {
- "Blackhole Band, Ring of Ignition, Zero Ring"
- , ""
- , "Gem Armor, Alchemical Tome, Blaze rod, Nova Catalyst"
- , ""
- , "RM Furnace, Block Breaker, Howler Alarm, Musket"
- , ""
- , "Red Morningstar, Red Katar, Mining Laser, Blunderbuss"
- , ""
- , "Nuke, Tnt, HyperKinetic Lens, other Explosives"
- , ""
- , "World Anchor, Dimensional Anchor, Teleport Tether"
- , ""
- , "Red Matter Hammer, Dark Matter Hammer, Warhammers"
- , ""
- , "Cannons, Industrial Alarm, Archangel's Smite"
- , ""
- , "Force Fields, Destruction Catalyst, Catalytic Lens"
- , ""
- , "Watch of flowing time"
- }
- function main()
- term.clear()
- local monitor, _, side, width, height, i, padding, line, firstLine
- firstLine = 2
- for _, side in pairs(rs.getSides()) do
- if peripheral.isPresent(side) then
- if peripheral.getType(side) == "monitor" then
- monitor = peripheral.wrap(side)
- end
- end
- end
- if monitor == nil then
- print("Please attach a monitor to any side")
- return
- end
- width, height = monitor.getSize()
- monitor.clear()
- monitor.setCursorPos(1, firstLine)
- for i = 1, width do
- monitor.write("=")
- end
- padding = (width / 2) - (#title / 2)
- monitor.setCursorPos(1, firstLine + 2)
- for i = 1, padding do
- monitor.write(" ")
- end
- monitor.write(title)
- monitor.setCursorPos(1, firstLine + 4)
- for i = 1, width do
- monitor.write("=")
- end
- for _, line in pairs(banned) do
- monitor.setCursorPos(1, firstLine + 6 + _)
- padding = (width / 2) - (#line / 2)
- for i = 1, padding do
- monitor.write(" ")
- end
- monitor.write(line)
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement