This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
disk.getColor()?
Started by Agoldfish, 26 March 2014 - 10:29 PMPosted 26 March 2014 - 11:29 PM
The title explains it; would there be anyway to get a command to get the color of a disk? I can see a use for this in many applications such as an advanced keycard door or a program to label disks based on they're color.
Posted 26 March 2014 - 11:33 PM
I don't see much use for it, and there are other ways to get the damage value of a disk in. Minecraft (with other mods).
Posted 26 March 2014 - 11:42 PM
Sounds like the sort of function that one might add to the disk drive, were it treated like a peripheral… How is a computer going to know what colour a disk is without some sort of optical sensor installed somewhere? :huh:/>
It appears damage values aren't used to differentiate between "coloured" disks. They're all just assigned to the one ID and that's that.
I don't see much use for it, and there are other ways to get the damage value of a disk in. Minecraft (with other mods).
It appears damage values aren't used to differentiate between "coloured" disks. They're all just assigned to the one ID and that's that.
Posted 27 March 2014 - 02:10 AM
Oh, I see. I guess they could be useful, then.
Posted 27 March 2014 - 12:48 PM
It may be possible via Open Peripheral.
Posted 27 March 2014 - 11:40 PM
nope.It may be possible via Open Peripheral.
Posted 28 March 2014 - 01:00 PM
Disk colors are purely a cosmetic property of disks and should only be treated as such.
Posted 28 March 2014 - 03:31 PM
Besides, does your computer have the ability to diferentiate the color of the floppy disk you insert to it?
I don't think this would be enabled.
I don't think this would be enabled.
Edited on 28 March 2014 - 02:32 PM
Posted 28 March 2014 - 08:47 PM
Maybe Open Peripheral might have a feature for this in the future, but I doubt it will be implemented in CC.
Posted 28 March 2014 - 09:58 PM
I just don't see any reason you would need this that wouldn't be better as written code on the disk itself.
Posted 28 March 2014 - 11:14 PM
Nope. I really don't see the point to having it.Maybe Open Peripheral might have a feature for this in the future