Difference between revisions of "Disk.setLabel"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Add a description) |
||
Line 5: | Line 5: | ||
|api=disk | |api=disk | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
+ | |desc=Writes a label to the floppy disk, which can be read with [[disk.getLabel]] and viewed in the item tooltip. | ||
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 18:32, 21 April 2013
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
Example | |
Sets the label of the disk in the bottom drive to "Floppy" | |
Code |
disk.setLabel("bottom", "Floppy") |