Difference between revisions of "Turtle.placeUp"

From ComputerCraft Wiki
Jump to: navigation, search
(returns bool)
(Added note to see turtle.select to select the block to be placed.)
Line 6: Line 6:
 
|api=turtle
 
|api=turtle
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Places a Block of the selected Slot above
+
|desc=Places a Block of the selected Slot above. See function [[turtle.select]] for information on selecting a slot for placement.
 
|returns=[[boolean]] whether the turtle succeeded in placing the block.  False if selected slot is empty, or if there is already a block above.
 
|returns=[[boolean]] whether the turtle succeeded in placing the block.  False if selected slot is empty, or if there is already a block above.
 
|examples=
 
|examples=

Revision as of 01:44, 21 November 2012


Grid Redstone.png  Function turtle.placeUp
Places a Block of the selected Slot above. See function turtle.select for information on selecting a slot for placement.
Syntax turtle.placeUp()
Returns boolean whether the turtle succeeded in placing the block. False if selected slot is empty, or if there is already a block above.
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Places a Block of the selected Slot above
Code
turtle.placeUp()