Difference between revisions of "Turtle.place"
From ComputerCraft Wiki
(returns bool) |
|||
| Line 5: | Line 5: | ||
|api=turtle | |api=turtle | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc=Places the selected block | + | |returns=[[boolean]] whether the turtle succeeded in placing the block. False if empty inventory, or if already a block in front. |
| + | |desc=Places the selected block in front of the Turtle. Add [signText] to sign if given. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
| − | |desc=Places the selected block | + | |desc=Places the selected block in front of the Turtle. |
|code=turtle.place() | |code=turtle.place() | ||
}} | }} | ||
}} | }} | ||
Revision as of 13:39, 11 October 2012
| Places the selected block in front of the Turtle. Add [signText] to sign if given. | |
| Syntax | turtle.place() |
| Returns | boolean whether the turtle succeeded in placing the block. False if empty inventory, or if already a block in front. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Places the selected block in front of the Turtle. | |
| Code |
turtle.place() |