Advertisement
Guest User

drives

a guest
Jan 25th, 2020
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. The Disk Drive is a peripheral device available for CraftOS. Type "help peripheral" to learn about using the Peripheral API to connect with peripherals. When a Disk Drive is connected, peripheral.getType() will return "drive".
  2.  
  3. Methods exposed by the Disk Drive:
  4. isDiskPresent()
  5. getDiskLabel()
  6. setDiskLabel( label )
  7. hasData()
  8. getMountPath()
  9. hasAudio()
  10. getAudioTitle()
  11. playAudio()
  12. stopAudio()
  13. ejectDisk()
  14. getDiskID()
  15.  
  16. Events fired by the Disk Drive:
  17. "disk" when a disk or other item is inserted into the drive. Argument is the name of the drive.
  18. "disk_eject" when a disk is removed from a  drive. Argument is the name of the drive.
  19. Type "help events" to learn about the event system.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement