Difference between revisions of "Turtle.dropUp"

From ComputerCraft Wiki
Jump to: navigation, search
(Created)
 
m
Line 8: Line 8:
 
|desc=Drops all items in the selected slot, or if ''count'' is specified, drops that many items.
 
|desc=Drops all items in the selected slot, or if ''count'' is specified, drops that many items.
 
If the space above the turtle does not contain an inventory, the items are dropped into that space.
 
If the space above the turtle does not contain an inventory, the items are dropped into that space.
If the space above the turtle contains a chest, the items are dropped into that inventory.
+
If the space above 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.
 
The items will be placed in the first available slot, starting at the top left, moving right and then down.
  

Revision as of 19:57, 16 April 2014


Grid Redstone.png  Function turtle.dropUp
Drops all items in the selected slot, or if count is specified, drops that many items.

If the space above the turtle does not contain an inventory, the items are dropped into that space. If the space above 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.dropDown 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.suckUp)
Syntax turtle.dropUp([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.dropUp()