Difference between revisions of "Turtle.drop"
From ComputerCraft Wiki
(adding notes on dropDown and dropUp, and use with furnaces) |
|||
Line 11: | Line 11: | ||
The items will be placed in the first available slot, starting at the top left, moving right and then down. | The items will be placed in the first available slot, starting at the top left, moving right and then down. | ||
− | turtle.dropUp and turtle.dropDown are also available, and useful for loading furnaces; dropUp when below a furnace will load the items as fuel in the furnace's bottom slot, while dropDown when | + | turtle.dropUp and turtle.dropDown are also available, and useful for loading furnaces; dropUp when below a furnace will load the items as fuel in the furnace's bottom slot, while dropDown when above the furnace will load the top slot for smelting. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 12:03, 24 August 2012
Function turtle.drop | |
Drops all items in the selected slot, or if [count] is specified, drops that many items.
If the space in front of the turtle does not contain a chest, the items are dropped into that space. If the space in front of the turtle contains a chest, the items are dropped into that chest. The items will be placed in the first available slot, starting at the top left, moving right and then down. turtle.dropUp and turtle.dropDown are also available, and useful for loading furnaces; dropUp when below a furnace will load the items as fuel in the furnace's bottom slot, while dropDown when above the furnace will load the top slot for smelting. | |
Syntax | turtle.drop(count) |
Returns | true if an item was dropped; false otherwise. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Drops all items in the first available slot. | |
Code |
turtle.drop() |