Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Turtle inventory should be as follows:
- --13, cat, blocks, chirp, far, mall, mellohi, stal, strad, ward, 11, wait
- rednet.open("right")
- turtle.suck()
- turtle.select(1)
- while true do
- event, sender, message, protocol = os.pullEvent("rednet_message")
- print("Message")
- if event == "rednet_message" and protocol == "JarvOS Music" then
- print("Playing "..message)
- turtle.suck()
- turtle.select(message*1)
- turtle.drop()
- disk.playAudio("front")
- elseif protocol == "JarvOS Music Stop" then
- turtle.suck()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement