Difference between revisions of "Turtle.dropDown"

From ComputerCraft Wiki
Jump to: navigation, search
(Created)
 
(Taking back useful information.)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
|api=turtle
 
|api=turtle
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Drops all items in the selected slot, or if ''count'' is specified, drops that many items.
+
|desc=Drops all items off the selected slot, or, if ''count'' is specified, drops that many items. The items are dropped on the ground below the turtle by default, but if there is an inventory in that block, the items go to that inventory instead. Then the items will be placed in the first available slot of the inventory, starting at the top left, moving right and then down.
If the space below the turtle does not contain an inventory, the items are dropped into that space.
+
If the space below the turtle contains an inventory, the items are dropped into that inventory.
+
The items will be placed in the first available slot, starting at the top left, moving right and then down.
+
 
+
[[turtle.drop]] and [[turtle.dropUp]] are also available, and useful for loading furnaces; dropDown when above the furnace will load the top slot for smelting.
+
 
+
Before Minecraft 1.5/ComputerCraft 1.51, dropUp would load the bottom (fuel) slot for furnaces, since the hopper-related changes, fuel is loaded into the sides, and the output slot is available on the bottom (using [[Turtle.suck|turtle.suckUp]])
+
  
 +
This command, when the turtle is above the furnace, will load the top slot for smelting.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
Line 21: Line 15:
 
}}
 
}}
 
}}
 
}}
 +
 +
==See also==
 +
*[[turtle.drop]]
 +
*[[turtle.dropUp]]
  
 
[[Category:Lua_Core_Functions]]
 
[[Category:Lua_Core_Functions]]

Latest revision as of 21:02, 21 April 2015


Grid Redstone.png  Function turtle.dropDown
Drops all items off the selected slot, or, if count is specified, drops that many items. The items are dropped on the ground below the turtle by default, but if there is an inventory in that block, the items go to that inventory instead. Then the items will be placed in the first available slot of the inventory, starting at the top left, moving right and then down. This command, when the turtle is above the furnace, will load the top slot for smelting.
Syntax turtle.dropDown([number count])
Returns boolean true if an item was dropped; false otherwise.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Drops all items in the first available slot.
Code
turtle.dropDown()


See also