Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.suck()
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("right")
- idcon = 87
- print("Music disk player booted!")
- turtle.select(1)
- while true do
- id , msg = rednet.receive()
- if id == idcon then
- song = tonumber(msg)
- if song > 0 and song < 15 then
- turtle.suck()
- turtle.select(song)
- turtle.drop(1)
- disk.playAudio("front")
- elseif song == 15 then
- disk.stopAudio()
- turtle.suck()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement