turtle.turnLeft

When called, tries to rotate the turtle 90 degrees to the left. Note that performing this action does not require fuel, and the turtle can not be obstructed or denied from rotating, unless specifically disabled in the config.

ExampleRotating a turtle
Rotates a turtle 360 degrees counter-clockwise, which equals to 4 steps of 90 degrees to the left, to end facing in the same direction as it started.
Code
<nowiki>
for step = 1, 4 do
  turtle.turnLeft()
end
    </nowiki>

turtle.turnLeft
Function
Syntax
turtle.turnLeft()
Returns boolean success
API turtle
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.