Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- JukeBox Computer 3 made by SkyWeapons
- ---- To complete this pastebin: take my other pastebin : JukeBox Computer 1 ; JukeBox Computer 2 ; JukeBox Central Computer.
- ---- My YT Channel : https://www.youtube.com/user/TheSkyWeapons
- ---- Require: 4 Disk Drive , (Advanced) Computer , Modem
- modemside = "back" -- Side of the Modem
- DD1 = "left" -- Side of the first Disk Drive
- DD2 = "top" -- Side of the second Disk Drive
- DD3 = "right" -- Side of the third Disk Drive
- DD4 = "bottom" -- Side of the forth Disk Drive
- -- Program - Do not edit below
- rednet.open(modemside)
- disk = peripheral.wrap(DD1)
- disk2 = peripheral.wrap (DD2)
- disk3 = peripheral.wrap (DD3)
- disk4 = peripheral.wrap (DD4)
- while true do
- id, text = rednet.receive()
- if text == "9" then
- disk.playAudio()
- elseif text == "10" then
- disk2.playAudio()
- elseif text == "11" then
- disk3.playAudio()
- elseif text == "12" then
- disk4.playAudio()
- elseif text == "0" then
- disk.stopAudio()
- disk2.stopAudio()
- disk3.stopAudio()
- disk4.stopAudio()
- else
- sleep(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement