Difference between revisions of "Disk.eject"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.eject |args=string side |api=disk |addon=ComputerCraft |examples= {{Example |desc=Ejects the disk in the bottom drive |co...") |
m (Use type template) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.eject | |name=disk.eject | ||
| − | |args= | + | |args={{Type|string}} side |
|api=disk | |api=disk | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| + | |desc=Ejects any item currently in the drive, spilling it into the world as a loose item. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
|desc=Ejects the disk in the bottom drive | |desc=Ejects the disk in the bottom drive | ||
| − | |code= | + | |code=disk.eject("bottom") |
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Latest revision as of 19:12, 22 April 2013
| Ejects any item currently in the drive, spilling it into the world as a loose item. | |
| Syntax | disk.eject(string side) |
| Returns | nil |
| Part of | ComputerCraft |
| API | disk |
Examples
| Ejects the disk in the bottom drive | |
| Code |
disk.eject("bottom")
|