Difference between revisions of "Turtle.place"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 4: Line 4:
 
|args=
 
|args=
 
|api=turtle
 
|api=turtle
|returns=[[boolean]] whether the turtle succeeded in moving forwards
 
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Place the selected block infront of the Turtle.
 
|desc=Place the selected block infront of the Turtle.
Line 11: Line 10:
 
|desc=Places the selected block infront of the Turtle.
 
|desc=Places the selected block infront of the Turtle.
 
|code=print(turtle.place())
 
|code=print(turtle.place())
|output=True if the turtle placed a block, False if unable to place e.g nothing in the inventory.
 
 
}}
 
}}
 
}}
 
}}

Revision as of 21:04, 15 March 2012


Grid Redstone.png  Function turtle.place
Place the selected block infront of the Turtle.
Syntax turtle.place()
Returns nil
Part of ComputerCraft
API turtle

Examples

Grid paper.png  Example
Places the selected block infront of the Turtle.
Code
print(turtle.place())