turtle.equipRight

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

ExampleEquip 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
<nowiki>
turtle.equipRight();
    </nowiki>

turtle.equipRight
Function
Syntax
turtle.equipRight()
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.