Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------Config-----------
- --Slot numbers for music disks
- Stal=1
- Far=2
- Mall=3
- Strad=4
- Blocks=5
- Mellohi=6
- Cat=7
- Thirteen=8
- Eleven=9
- Chirp=10
- Ward=11
- Wait=12
- ----------------------------
- rednet.open("right")
- term.clear()
- term.setCursorPos(1,1)
- print("DJMix OS 3.0")
- print("ComputerID for djclient: "..tostring(os.getComputerID()))
- function play()
- disk.playAudio("front")
- end
- function stal()
- turtle.suck()
- turtle.select(Stal)
- turtle.drop()
- play()
- end
- function far()
- turtle.suck()
- turtle.select(Far)
- turtle.drop()
- play()
- end
- function mall()
- turtle.suck()
- turtle.select(Mall)
- turtle.drop()
- play()
- end
- function strad()
- turtle.suck()
- turtle.select(Strad)
- turtle.drop()
- play()
- end
- function blocks()
- turtle.suck()
- turtle.select(Blocks)
- turtle.drop()
- play()
- end
- function mellohi()
- turtle.suck()
- turtle.select(Mellohi)
- turtle.drop()
- play()
- end
- function cat()
- turtle.suck()
- turtle.select(Cat)
- turtle.drop()
- play()
- end
- function onethree()
- turtle.suck()
- turtle.select(Thirteen)
- turtle.drop()
- play()
- end
- function oneone()
- turtle.suck()
- turtle.select(Eleven)
- turtle.drop()
- play()
- end
- function chirp()
- turtle.suck()
- turtle.select(Chirp)
- turtle.drop()
- play()
- end
- function ward()
- turtle.suck()
- turtle.select(Ward)
- turtle.drop()
- play()
- end
- function wait()
- turtle.suck()
- turtle.select(Wait)
- turtle.drop()
- play()
- end
- while true do
- id,msg = rednet.receive()
- if msg=="stal" then stal() end
- if msg=="far" then far() end
- if msg=="mall" then mall() end
- if msg=="strad" then strad() end
- if msg=="blocks" then blocks() end
- if msg=="mellohi" then mellohi() end
- if msg=="cat" then cat() end
- if msg=="13" then onethree() end
- if msg=="11" then oneone() end
- if msg=="chirp" then chirp() end
- if msg=="ward" then ward() end
- if msg=="wait" then wait() end
- if msg=="stop" then turtle.suck() end
- end
Advertisement
Add Comment
Please, Sign In to add comment