Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tSides = {"left","right","bottom","top","front","back"}
- for i = 1, #tSides do
- monitor = peripheral.wrap(tSides[i])
- if monitor then
- side = tSides[i]
- break
- end
- end
- --Checks for signs and downloads missing signs
- if fs.exists("tv1") and fs.exists("tv2") and fs.exists("tv3") and fs.exists("tv4") and fs.exists("tv5") and fs.exists("tv6") and fs.exists("tv7") then
- sleep(0.1)
- else
- shell.run("pastebin","get","KSHdsHvB","tv1")
- shell.run("pastebin","get","pDS5GyRJ","tv2")
- shell.run("pastebin","get","ZePApwdc","tv3")
- shell.run("pastebin","get","8BXD4M3N","tv4")
- shell.run("pastebin","get","vJnvjCFM","tv5")
- shell.run("pastebin","get","uudA0PZZ","tv6")
- shell.run("pastebin","get","H3Rzj0GU","tv7")
- shell.run("label", "set", "TV Comp")
- end
- local img = paintutils.loadImage("tv1")
- local img2 = paintutils.loadImage("tv2")
- local img3 = paintutils.loadImage("tv3")
- local img4 = paintutils.loadImage("tv4")
- local img5 = paintutils.loadImage("tv5")
- local img6 = paintutils.loadImage("tv6")
- local img7 = paintutils.loadImage("tv7")
- local monitor = peripheral.wrap(side)
- term.redirect(monitor)
- t = 1
- while true do
- if redstone.getInput("front") == true then
- paintutils.drawImage(img, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img2, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img3, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img4, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img5, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img6, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img7, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img6, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img5, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img4, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img3, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- if redstone.getInput("front") == true then
- paintutils.drawImage(img2, 1, 1)
- else
- monitor.clear()
- end
- sleep(t)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement