Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- shell.run("dj","stop")
- term.clear()
- while true do
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- term.write("Digital Jukebox V3")
- term.setCursorPos(1,5)
- term.setTextColor(colors.orange)
- term.write("Please enter track name or 'stop' to stop the music")
- term.setCursorPos(1,6)
- print(" ")
- term.setCursorPos(1,6)
- local input = read()
- -- Track 1 "13" - Yellow Disc
- if input == "13" then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.yellow)
- shell.run("dj","play","drive_48")
- -- Track 2 "cat/Cat" - Green Disc
- elseif (input == "cat") or (input == "Cat") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.green)
- shell.run("dj","play","drive_49")
- -- Track 3 "blocks/Blocks" - Red Disc
- elseif (input == "blocks") or (input == "Blocks") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.red)
- shell.run("dj","play","drive_50")
- -- Track 4 "chirp/Chirp" - Red Disc
- elseif (input == "chirp") or (input == "Chirp") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.red)
- shell.run("dj","play","drive_51")
- -- Track 5 "far/Far" - Lime Disc
- elseif (input == "far") or (input == "Far") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.lime)
- shell.run("dj","play","drive_52")
- -- Track 6 "mall/Mall" - Purple Disc
- elseif (input == "mall") or (input == "Mall") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.purple)
- shell.run("dj","play","drive_53")
- -- Track 7 "mellohi/Mellohi" - Magenta Disc
- elseif (input == "mellohi") or (input == "Mellohi") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.magenta)
- shell.run("dj","play","drive_54")
- -- Track 8 "stal/Stal"- Gray Disc
- elseif (input == "stal") or (input == "Stal") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.gray)
- shell.run("dj","play","drive_55")
- -- Track 9 "strad/Strad" - White Disk
- elseif (input == "strad") or (input == "Strad")then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.white)
- shell.run("dj","play","drive_56")
- -- Track 10 "ward/Ward" - Green Disk
- elseif (input == "ward") or (input == "Ward") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.green)
- shell.run("dj","play","drive_57")
- -- Track "11" - Gray Disc
- elseif input == "11" then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.gray)
- shell.run("dj","play","drive_58")
- -- Track 12 "wait/Wait" - Light Blue Disc
- elseif (input == "wait") or (input == "Wait") then
- term.clear()
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.lightBlue)
- shell.run("dj","play","drive_59")
- -- Stops music
- elseif (input == "stop") or (input == "Stop") then
- shell.run("dj","stop")
- term.clear()
- -- Invalid Command
- else
- term.setCursorPos(1,3)
- print(" ")
- term.setCursorPos(1,3)
- term.setTextColor(colors.red)
- print("Invalid Selection")
- sleep(2)
- end
- end
Add Comment
Please, Sign In to add comment