Difference between revisions of "Turtle.equipLeft"

From ComputerCraft
Jump to navigation Jump to search
(Created page with "{{API doc function | name = turtle.equipLeft | description = When called, will equip the item currently selected onto the left side of the turtle. If no item is selected, it w...")
 
(No difference)

Latest revision as of 05:53, 30 July 2020

turtle.equipLeft
Function
Syntax
turtle.equipLeft()
Returns boolean success
API turtle
Source CC:Tweaked (source)

When called, will equip the item currently selected onto the left side of the turtle. If no item is selected, it will dequip the item on the left side.

ExampleExampleEquip a diamond pickaxe
Equips a diamond pickaxe on the turtle, turning it into a mining turtle. This presumes that the pickaxe is in slot 1 of the turtle.
Code
turtle.equipLeft();