Turtle

Turtles are one block large robots that can be programmed to mine automatically or communicate over rednet. They are part of the ComputerCraft mod. Turtles can be upgraded to Mining Turtles, Wireless Turtles, and Wireless Mining Turtles.

Turtle


GUI


Right-click a turtle to open its GUI.

Here you can input commands and write programs just like at a console.

Programs
When you run a program the turtle will execute the commands in it.

Type "programs" for a list of programs and "help " for what that program does.

Dancing
To make a turtle dance, use this command:

Dance

and the turtle will start dancing, meaning it will move around while turning commonly, even going vertical sometimes.

Block Placement
You can make it place blocks, here is a template to placing blocks API:



turtle.placeDown(1)

turtle.placeUp(1)

turtle.forward(50)

<p style="font-size:13px;">turtle.Placeblock(1)

<p style="font-size:13px;">turtle.back(50)

Disk Drive connection
<p style="font-size:13px;">To connect a turtle to a disk drive, place it on a free side next to the turtle. Disk drives won't connect if placed next to the modem of a wireless turtle. A turtle can only have maximum one Disk Drive (ComputerCraft) connected to it.

Upgrades
A Turtle can be upgraded to be able to Mine and have Wireless Connectivity.

Mining Turtle
Note: You can also use a Wireless Turtle in the recipe for a Wireless Mining Turtle.

A Mining Turtle has a better API, for now it can use turtle.dig, turtle.digUp, and turtle.digDown.

Wireless Turtle
Note: You can also use a Mining Turtle in the recipe for a Wireless Mining Turtle.

With the Wireless Turtle, it can now send/receive messages through the rednet api.

For help about the api, type in the turtle:

help rednet

This will show the commands of the rednet api.

Problems
<p style="font-size:13px;">Although turtles are excellent automation tools, they do have some problems:


 * When the chunk they're in is unloaded, they tend to stop mid-program.
 * Poorly-written programs can send a turtle running off, never to be seen again.
 * A turtle can easily mine itself under a pool of lava, making it quite the pain to retrieve (or find)

Commands
To use following lua commands you can Note: Only the turtle.dig commands are restricted to mining turtles. All other commands marked with a * are usable by simple and mining turtles.
 * run the program "lua"
 * write it in its own file using "edit " and run the program with " " (you can choose the )