Difference between revisions of "Turtle.place"
From ComputerCraft Wiki
(Made the turtle.place() Page.) |
|||
Line 11: | Line 11: | ||
|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= | + | |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
Function turtle.place | |
Place the selected block infront of the Turtle. | |
Syntax | turtle.place() |
Returns | boolean whether the turtle succeeded in moving forwards |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Places the selected block infront of the Turtle. | |
Code |
print(turtle.place()) |
Output | True if the turtle placed a block, False if unable to place e.g nothing in the inventory. |