Advertisement
Rastey

Computer Craft DJ+ WIP

Jan 15th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local name = disk.getLabel(bottom)
  2.  
  3. function error()
  4. print("No disk")
  5. end
  6.  
  7. function check1()
  8. if disk.hasAudio(bottom)
  9.   then audio
  10. else
  11.   then error
  12. end
  13.  
  14. function check()
  15. if disk.isPresent(bottom)
  16.   then check1
  17. end
  18.  
  19. function audio()
  20. disk.playAudio(bottom)
  21. shell.run("monitor", "right", "djfig")
  22. shell.run("monitor", "right", "name")
  23. end
  24.  
  25. check
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement