Turtle

From ComputerCraft Wiki
Jump to: navigation, search
Turtles.png

Turtles and Advanced Turtles are essentially robots, and were added in the 1.3 update. They run an OS named TurtleOS, similar to CraftOS for computers. They have the ability to place, break and detect blocks, move around and drop items in their inventory via their access to the Turtle API. The programs they run are stored in their internal memory, or on floppy disks.

The 1.4 update was focused on turtles, and expanded their ability to use tools. Turtles are capable of using pickaxes, hoes, axes, shovels and swords. The update added "Crafty Turtles", which have the ability to craft using their inventory - and part of this upgrade saw the number of inventory slots in the Turtle raised to 16 from the previous 9 slot inventory. The 1.4 update also included a new fuel system for the turtles.

The 1.55 update added Advanced Turtles - made of gold, are able to display color, and have mouse input available through their display. Their exterior appearance is also of gold. They're just like Advanced Computers, but with a smaller screen.

Prior to 1.6, turtles had to have tools manually attached via crafting. As of that update, they are now also able to swap tools in and out of their inventory at will. That build also brought in caps to the arbitrarily large fuel values turtles could previously store - by default, they are now 20,000 units for regular turtles and 100,000 for advanced.

Turtles are submersible and lavaproof. As such, they are extremely useful for mining near bedrock, where heavy lava flows can prevent access to diamonds and other rare finds.

If you would like to know more about how to program them, have a look at the Turtle API.

Keep in mind that turtles may not keep their programs unless they are labelled. To do so, you simply need to type in "label set <labelName>" at the TurtleOS prompt.


Contents

Floppy Disks and Peripherals

Turtles do not have a built-in Disk Drive. As such, they need a Disk Drive placed beside them to access Floppy Disks. However, if the Turtle is of the Wireless family, the Disk Drive (and other peripherals) must be placed on a side other than the side the wireless modem is on. Any other peripherals, such as Monitors and Printers can be interacted using the peripheral API.

Power source

Turtles require fuel to operate - this means Turtles must be powered from any item that works in a regular furnace, like coal and lava. The turtle gains 0.6 "movement" per half second the fuel would have burnt in a furnace. The Turtle can move 1 block for each fuel count it has, for example, coal yields 80 block movements.

Optional Non-fuel mode

In this mode, Turtles use their internal Redstone Engine, and as such, they do not need to be re-charged, or receive any other form of external power. This is because Redstone continuously emits low levels of energy, and the Turtle's engine is very efficient. This mode can be turned on by editing ComputerCraft.cfg and setting turtleNeedsFuel to false.

Dyeing

As of ComputerCraft 1.63 Turtles can now be dyed using Dyes. It supports all 16 different colors, so you can have a green Farming Turtle harvesting some melons and a gray Mining Turtle gathering materials and mining ores.

Farming

Turtles equipped with a diamond hoe can till dirt so it can later be used for Farming. An example of a use for this would be using it to till, plant, and harvest your wheat farm and dropping any product in a chest for you.

Mining

Turtles crafted with a diamond pickaxe, diamond axe, or diamond shovel, can break blocks, chop wood, mine stone and ores, and even break dirt and gravel (depending on the tool you used on it). The tools equipped on the Turtle have no durability, and so can be used indefinitely without the need for any additional materials. When a Turtle breaks the block, the Turtle receives the item directly into it's inventory. Different tools yield different drops - for example, an axe can break anything, but it won't drop ores.

Crafting

Turtles with a Crafting Table can craft items if they have the correct materials to do so, and all other slots outside the crafting-zone are empty.

Melee

Turtles equipped with a diamond sword can attack players and mobs. When a Turtle kills a mob it will leave the experience orbs on the ground, but add the loot to its inventory. Turtles can also attack with any tool, where the diamond axe is the second best after the diamond sword.

Inventory Interaction

Turtles can interact with blocks that have inventories. This includes chests, furnaces, printers and even blocks with inventories in other mods. (This means a turtle cannot interact with a player's inventory, unless you use a third party peripheral). Turtles can interact with such inventories by using turtle.suck, turtle.suckDown, turtle.suckUp (To retrieve the first item in the inventory. The turtle finds the first item by scanning the first row from left to right, then the second row from left to right, etc). Turtles can also place items inside inventories, by using turtle.drop, turtle.dropUp, turtle.dropDown, which places items on the first item slot available (Using the same system as the one described for retrieving items).

In special inventories, with just a few slots on the top or bottom - for example furnaces - you can specify which slot to place an item in by positioning the turtle in the corresponding location to the front face of the inventory. For example in a furnace, you would use a turtle at the bottom of the furnace for it to place fuel in the furnace, a turtle at the top to place objects to smelt, and a turtle to the right to retrieve the smelted objects (Note that you can do this with just 1 turtle moving around).

Recipes

Crafting ingredients
Turtle

iron_ingot

iron_ingot

iron_ingot

iron_ingot

Computer

chest

iron_ingot

iron_ingot

iron_ingot

turtle



Advanced Turtle

Gold_Ingot

Gold_Ingot

Gold_Ingot

Gold_Ingot

Computer

chest

Gold_Ingot

Gold_Ingot

Gold_Ingot

Advanced_Turtle



Turtles can be equipped with different peripherals and tools. A turtle can only be crafted with one tool and one peripheral, however the crafting table can act as a tool, or peripheral. Turtles may later use turtle.equipLeft() / turtle.equipRight() to add, remove or exchange tools in any combination.
The following tools can be equipped to a turtles: diamond pickaxe, diamond axe, diamond shovel, diamond hoe and diamond sword
The following peripherals can be equipped to a turtles: wireless modem and crafting tables.
Diamond tools must be unused (i.e. not have a durability bar showing) an unenchanted to combine with a turtle.

Turtle recipe and examples for equipping a turtle with tools and peripherals (Note that any variants of the turtle can also be crafted with the Advanced Turtle):

None Crafty Wireless
None




turtle




turtle




workbench


turtle




Crafty_Turtle




Modem


turtle




wireless_turtle



Mining




turtle


diamond_pickaxe


mining_turtle




workbench


turtle


diamond_pickaxe


Crafty_Mining_Turtle




Modem


turtle


diamond_pickaxe


wireless_mining_turtle



Farming




turtle


diamond_hoe


Farming_Turtle




workbench


turtle


diamond_hoe


Crafty_Farming_Turtle




Modem


turtle


diamond_hoe


Wireless_Farming_Turtle



Melee




turtle


diamond_sword


Melee_Turtle




workbench


turtle


diamond_sword


Crafty_Melee_Turtle




Modem


turtle


diamond_sword


Wireless_Melee_Turtle



Felling




turtle


diamond_axe


Felling_Turtle




workbench


turtle


diamond_axe


Crafty_Felling_Turtle




Modem


turtle


diamond_axe


Wireless_Felling_Turtle



Digging




turtle


diamond_shovel


Digging_Turtle




workbench


turtle


diamond_shovel


Crafty_Digging_Turtle




Modem


turtle


diamond_shovel


Wireless_Digging_Turtle



Crafty See Above N/A


Modem


turtle


workbench


Wireless_Crafty_Turtle




Grid Redstone.pngComputerCraft Blocks and Items
Grid paper.png  Blocks
Iso Computer.png  Computer Iso Advanced Computer.png  Advanced Computer Iso DiskDrive.png  Disk Drive Iso Monitor.png  Monitor
Iso Advanced Monitor.png  Advanced Monitor Iso Printer.png  Printer Grid turtle.png  Turtle Grid Modem.png  Wireless Modem
Grid Wired Modem.png  Wired Modem Iso Unknown.png  Networking Cable
Grid paper.png  Items
Grid Pocket Computer.png  Pocket Computer Grid Advanced Pocket Computer.png  Advanced Pocket Computer Grid disk.png  Floppy Disk Grid printed page.png  Printed Page
Grid printed pages.png  Printed Pages Grid printed book .png  Printed Book
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox