disk.setLabel

From ComputerCraft Wiki
Revision as of 19:12, 22 April 2013 by Hawk777 (Talk | contribs) (Use type template)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function disk.setLabel
Writes a label to the floppy disk, which can be read with disk.getLabel and viewed in the item tooltip.
Syntax disk.setLabel(string side, string label)
Returns nil
Part of ComputerCraft
API disk

Examples

Grid paper.png  Example
Sets the label of the disk in the bottom drive to "Floppy"
Code
disk.setLabel("bottom", "Floppy")