turtle.place

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function turtle.place
Places the selected block in front of the Turtle. If you're placing a sign and signText is given, then the turtle places the sign putting the text of signText into it. Each line of the sign can be separated using newline ("\n") character.
Syntax turtle.place([string signText])
Returns boolean was the block placed?
Part of ComputerCraft
API turtle

Examples

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



Grid paper.png  Example
Places a sign which says "Hello" in the first row, "and" in the second row and "Welcome!" in the third row.
Code
turtle.place("Hello\nand\nWelcome!")
Output Places a sign which says "Hello and Welcome!" with each word separated into different lines.


See also