<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DRUGMONSTER</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DRUGMONSTER"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/DRUGMONSTER"/>
		<updated>2026-07-11T18:58:51Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Advanced_Turtle_Lumberjack_(tutorial)&amp;diff=1065</id>
		<title>Advanced Turtle Lumberjack (tutorial)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Advanced_Turtle_Lumberjack_(tutorial)&amp;diff=1065"/>
				<updated>2012-03-15T23:52:40Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* The Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Advanced Turtle Lumberjack ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Welcome to this [[:Category:Tutorials|tutorial]] about Advanced Turtle Lumberjacks.&lt;br /&gt;
See the [[Turtle_Lumberjack_(tutorial)|Turtle Lumberjack Tutorial]] first.&lt;br /&gt;
&lt;br /&gt;
=== What are Advanced Turtle Lumberjacks? ===&lt;br /&gt;
Advanced Turtle Lumberjacks are basically [[Turtle_Lumberjack_(tutorial)|Turtle Lumberjacks]] that can dig blocks above them.&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  while turtle.detect() do&lt;br /&gt;
    turtle.dig()&lt;br /&gt;
    if turtle.detectUp() then&lt;br /&gt;
      turtle.digUp()&lt;br /&gt;
    end&lt;br /&gt;
    turtle.up()&lt;br /&gt;
  end&lt;br /&gt;
  while not turtle.detectUp() and not turtle.detect() and not turtle.detectDown() do&lt;br /&gt;
    turtle.down()&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
This makes us check if there are no blocks to be digged, then we go down until we can't.&lt;br /&gt;
That's it!&lt;br /&gt;
&lt;br /&gt;
('''Helpful tip:''' Save this to your computercraft/lua/rom/programs folder, then it will be on all turtles.)&lt;br /&gt;
&lt;br /&gt;
== Category &amp;amp; Author ==&lt;br /&gt;
A tutorial by [[User:TheVarmari|TheVarmari]]. Feel free to correct any mistakes!&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1061</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1061"/>
				<updated>2012-03-15T23:28:32Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* Crafting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Turtles''' are essentially robots, and were added in the 1.3 update. They run an OS (like the [[Console|consoles]]) named [[TurtleOS]]. They have the ability to place, break and detect blocks, move around and drop items in their inventory. The programs they run are stored on [[Floppy Disk|floppy disks]].&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed next to them to access disks.&lt;br /&gt;
&lt;br /&gt;
==Fuel==&lt;br /&gt;
Turtles have been equipped with a state of the art quantum ionizing engine. This means that, once given fuel (the redstone used to craft them), they do not need to be re-charged, nor do any fuel cells need to be replaced, likewise they don't need to have external power directed to them either.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Item&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Crafting ingredients&lt;br /&gt;
|-&lt;br /&gt;
|Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=console    |C2=iron_ingot&lt;br /&gt;
 |A3=iron_ingot |B3=chest      |C3=iron_ingot&lt;br /&gt;
 |Output=turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_pickaxe&lt;br /&gt;
 |Output=mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=modem&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=modem |B1=console |C1=diamond_pickaxe&lt;br /&gt;
 |Output=wireless_mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1060</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1060"/>
				<updated>2012-03-15T23:25:44Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* Crafting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Turtles''' are essentially robots, and were added in the 1.3 update. They run an OS (like the [[Console|consoles]]) named [[TurtleOS]]. They have the ability to place, break and detect blocks, move around and drop items in their inventory. The programs they run are stored on [[Floppy Disk|floppy disks]].&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed next to them to access disks.&lt;br /&gt;
&lt;br /&gt;
==Fuel==&lt;br /&gt;
Turtles have been equipped with a state of the art quantum ionizing engine. This means that, once given fuel (the redstone used to craft them), they do not need to be re-charged, nor do any fuel cells need to be replaced, likewise they don't need to have external power directed to them either.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Item&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Crafting ingredients&lt;br /&gt;
|-&lt;br /&gt;
|Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=console    |C2=iron_ingot&lt;br /&gt;
 |A3=iron_ingot |B3=chest      |C3=iron_ingot&lt;br /&gt;
 |Output=turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_pickaxe&lt;br /&gt;
 |Output=mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=modem&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=modem |B1=console |C1=pickaxe&lt;br /&gt;
 |Output=wireless_mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1059</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1059"/>
				<updated>2012-03-15T23:23:05Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* Crafting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Turtles''' are essentially robots, and were added in the 1.3 update. They run an OS (like the [[Console|consoles]]) named [[TurtleOS]]. They have the ability to place, break and detect blocks, move around and drop items in their inventory. The programs they run are stored on [[Floppy Disk|floppy disks]].&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed next to them to access disks.&lt;br /&gt;
&lt;br /&gt;
==Fuel==&lt;br /&gt;
Turtles have been equipped with a state of the art quantum ionizing engine. This means that, once given fuel (the redstone used to craft them), they do not need to be re-charged, nor do any fuel cells need to be replaced, likewise they don't need to have external power directed to them either.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Item&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Crafting ingredients&lt;br /&gt;
|-&lt;br /&gt;
|Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=console    |C2=iron_ingot&lt;br /&gt;
 |A3=iron_ingot |B3=chest      |C3=iron_ingot&lt;br /&gt;
 |Output=turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_pickaxe&lt;br /&gt;
 |Output=mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=modem&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
 |A1=modem |B1=console |C1=pickaxe&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1058</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=1058"/>
				<updated>2012-03-15T23:21:43Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* Crafting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Turtles''' are essentially robots, and were added in the 1.3 update. They run an OS (like the [[Console|consoles]]) named [[TurtleOS]]. They have the ability to place, break and detect blocks, move around and drop items in their inventory. The programs they run are stored on [[Floppy Disk|floppy disks]].&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed next to them to access disks.&lt;br /&gt;
&lt;br /&gt;
==Fuel==&lt;br /&gt;
Turtles have been equipped with a state of the art quantum ionizing engine. This means that, once given fuel (the redstone used to craft them), they do not need to be re-charged, nor do any fuel cells need to be replaced, likewise they don't need to have external power directed to them either.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Item&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Crafting ingredients&lt;br /&gt;
|-&lt;br /&gt;
|Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=console    |C2=iron_ingot&lt;br /&gt;
 |A3=iron_ingot |B3=chest      |C3=iron_ingot&lt;br /&gt;
 |Output=turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Mining Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=diamond_pickaxe&lt;br /&gt;
 |Output=mining_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|Wireless Turtle&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A2=turtle |B2=modem&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
 |A1=modem |B1=console |C1=pickaxe&lt;br /&gt;
 |Output=wireless_turtle&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle_Lumberjack_(tutorial)&amp;diff=944</id>
		<title>Turtle Lumberjack (tutorial)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle_Lumberjack_(tutorial)&amp;diff=944"/>
				<updated>2012-03-14T10:09:56Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* The Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Turtle Lumberjack ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Welcome to this [[:Category:Tutorials|tutorial]] about Turtle Lumberjacks.&lt;br /&gt;
&lt;br /&gt;
=== What are Turtle Lumberjacks? ===&lt;br /&gt;
Turtle Lumberjacks are mining turtles that are programmed to chop down a tree.&lt;br /&gt;
They are placed in front of a tree and then activated, and then you watch the tree get chop down!&lt;br /&gt;
This can be also used to destroy pillars of sandstone, sand etc.&lt;br /&gt;
&lt;br /&gt;
== The Code ==&lt;br /&gt;
First, we start with the basics.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 while turtle.detect() do&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
This makes it loop while there is a block in front of it.&lt;br /&gt;
Let's add the digging part to it.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 while turtle.detect() do&lt;br /&gt;
  turtle.dig()&lt;br /&gt;
  turtle.up()&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
This makes it dig the block if it is detected, then move up.&lt;br /&gt;
Let's add the print function to print what the turtle is doing.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 while turtle.detect() do&lt;br /&gt;
  turtle.dig()&lt;br /&gt;
  print(&amp;quot;Digging the block&amp;quot;)&lt;br /&gt;
  turtle.up()&lt;br /&gt;
  print(&amp;quot;Moving up&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
There we go!&lt;br /&gt;
Let's make it come back down when there is no more blocks to be chopped, or there is a roof above it!&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 while turtle.detect() do&lt;br /&gt;
  turtle.dig()&lt;br /&gt;
  print(&amp;quot;Digging the block&amp;quot;)&lt;br /&gt;
  turtle.up()&lt;br /&gt;
  print(&amp;quot;Moving up&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
 while not turtle.detect() and not turtle.detectDown() do&lt;br /&gt;
  turtle.down()&lt;br /&gt;
  print(&amp;quot;Moving down&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
This makes it check that while there are no blocks to be chopped and it can go down, it goes down.&lt;br /&gt;
Let's add a notification about the job being done.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 while turtle.detect() do&lt;br /&gt;
  turtle.dig()&lt;br /&gt;
  print(&amp;quot;Digging the block&amp;quot;)&lt;br /&gt;
  turtle.up()&lt;br /&gt;
  print(&amp;quot;Moving up&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
 while not turtle.detect() and not turtle.detectDown() do&lt;br /&gt;
  turtle.down()&lt;br /&gt;
  print(&amp;quot;Moving down&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
 print(&amp;quot;Job done!&amp;quot;)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There you go! Now it is done!&lt;br /&gt;
Your turtle will dig the tree down and then come back down.&lt;br /&gt;
&lt;br /&gt;
('''Helpful tip:''' Save this to your ComputerCraft/lua/rom/programs folder, then it will be on all turtles.)&lt;br /&gt;
&lt;br /&gt;
== Category &amp;amp; Author ==&lt;br /&gt;
A tutorial by [[User:TheVarmari|TheVarmari]]. Feel free to correct any mistakes!&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle_Tutorial&amp;diff=734</id>
		<title>Turtle Tutorial</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle_Tutorial&amp;diff=734"/>
				<updated>2012-03-09T02:20:02Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* The Program */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
This tutorial will teach you the functions of the Turtle API, and also will teach you how to make your first turtle program.&lt;br /&gt;
by: rockymc&lt;br /&gt;
&lt;br /&gt;
== Turtle ==&lt;br /&gt;
&lt;br /&gt;
The Turtle API is used to work with your Turtles. Here is a list of the complete Turtle API.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|turtle.forward()&lt;br /&gt;
|Let the Turtle move forward&lt;br /&gt;
|-&lt;br /&gt;
|turtle.back()&lt;br /&gt;
|Let the Turtle move back&lt;br /&gt;
|-&lt;br /&gt;
|turtle.up()&lt;br /&gt;
|Let the Turtle move up&lt;br /&gt;
|-&lt;br /&gt;
|turtle.down()&lt;br /&gt;
|Let the Turtle move down &lt;br /&gt;
|-&lt;br /&gt;
|turtle.turnLeft()&lt;br /&gt;
|The Turtle turns left&lt;br /&gt;
|-&lt;br /&gt;
|turtle.turnRight()&lt;br /&gt;
|The Turtle turns right&lt;br /&gt;
|-&lt;br /&gt;
|turtle.select( slotNum )&lt;br /&gt;
|The Turtle selects the given Slot (1 is top left, 9 is bottom right)&lt;br /&gt;
|-&lt;br /&gt;
|turtle.getItemCount( slotNum )&lt;br /&gt;
|Counts how many items are in the given Slot&lt;br /&gt;
|-&lt;br /&gt;
|turtle.getItemSpace( slotNum )&lt;br /&gt;
|Counts how many items you need to fill the stack in the given Slot&lt;br /&gt;
|-&lt;br /&gt;
|turtle.dig()&lt;br /&gt;
|Breaks the Block in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.digUp()&lt;br /&gt;
|Breaks the Block above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.digDown()&lt;br /&gt;
|Breaks the Block below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.place()&lt;br /&gt;
|Places a Block of the selected Slot in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.placeUp()&lt;br /&gt;
|Places a Block of the selected Slot above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.placeDown()&lt;br /&gt;
|Places a Block of the selected Slot below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detect()&lt;br /&gt;
|Detects if there is a Block in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detectUp()&lt;br /&gt;
|Detects if there is a Block above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detectDown()&lt;br /&gt;
|Detects if there is a Block below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.drop()&lt;br /&gt;
|Drops everything of the selected Slot&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For our program, we will use turtle.detectDown(), turtle.digDown(), turtle.down() and turtle.forward(). It is recommended that you learn what method does what before messing up with Turtles.&lt;br /&gt;
&lt;br /&gt;
== The Program ==&lt;br /&gt;
So, for you to make the Turtle program, first craft a Turtle.&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle-craft.png]]&lt;br /&gt;
&lt;br /&gt;
Then make a Mining Turtle.&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle-craft2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, place it anywhere you want. Right click it and type 'edit MyFirstTurtleProgram', you don't have to call it 'MyFirstTurtleProgram' it can be whatever you want.&lt;br /&gt;
So, inside the file, type:&lt;br /&gt;
 while turtle.detectDown() do&lt;br /&gt;
 print(&amp;quot;Digging down!&amp;quot;)&lt;br /&gt;
 turtle.digDown()&lt;br /&gt;
 print(&amp;quot;Going down!&amp;quot;)&lt;br /&gt;
 turtle.down()&lt;br /&gt;
 print(&amp;quot;Digging forward!&amp;quot;)&lt;br /&gt;
 turtle.dig()&lt;br /&gt;
 print(&amp;quot;Going forward!&amp;quot;)&lt;br /&gt;
 turtle.forward()&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
To save the program, press CTRL and select SAVE with the Arrow Keys. After that, type MyFirstTurtleProgram (or whatever you called your program).&lt;br /&gt;
&lt;br /&gt;
== Explanation ==&lt;br /&gt;
&lt;br /&gt;
The line while turtle.detectDown() do makes the program run until there is no block underneath the Turtle.&lt;br /&gt;
&lt;br /&gt;
The turtle.digDown() will make the Turtle dig down.&lt;br /&gt;
&lt;br /&gt;
The part where it says turtle.forward() will make the Turtle go forward.&lt;br /&gt;
&lt;br /&gt;
The line that says turtle.dig() will make the Turtle dig forward.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: this should be running on a mining turtle, or it wont work!&lt;br /&gt;
&lt;br /&gt;
== Author ==&lt;br /&gt;
[[User:Rockymc|rockymc]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle_Tutorial&amp;diff=733</id>
		<title>Turtle Tutorial</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle_Tutorial&amp;diff=733"/>
				<updated>2012-03-09T02:19:40Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* The Program */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
This tutorial will teach you the functions of the Turtle API, and also will teach you how to make your first turtle program.&lt;br /&gt;
by: rockymc&lt;br /&gt;
&lt;br /&gt;
== Turtle ==&lt;br /&gt;
&lt;br /&gt;
The Turtle API is used to work with your Turtles. Here is a list of the complete Turtle API.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|turtle.forward()&lt;br /&gt;
|Let the Turtle move forward&lt;br /&gt;
|-&lt;br /&gt;
|turtle.back()&lt;br /&gt;
|Let the Turtle move back&lt;br /&gt;
|-&lt;br /&gt;
|turtle.up()&lt;br /&gt;
|Let the Turtle move up&lt;br /&gt;
|-&lt;br /&gt;
|turtle.down()&lt;br /&gt;
|Let the Turtle move down &lt;br /&gt;
|-&lt;br /&gt;
|turtle.turnLeft()&lt;br /&gt;
|The Turtle turns left&lt;br /&gt;
|-&lt;br /&gt;
|turtle.turnRight()&lt;br /&gt;
|The Turtle turns right&lt;br /&gt;
|-&lt;br /&gt;
|turtle.select( slotNum )&lt;br /&gt;
|The Turtle selects the given Slot (1 is top left, 9 is bottom right)&lt;br /&gt;
|-&lt;br /&gt;
|turtle.getItemCount( slotNum )&lt;br /&gt;
|Counts how many items are in the given Slot&lt;br /&gt;
|-&lt;br /&gt;
|turtle.getItemSpace( slotNum )&lt;br /&gt;
|Counts how many items you need to fill the stack in the given Slot&lt;br /&gt;
|-&lt;br /&gt;
|turtle.dig()&lt;br /&gt;
|Breaks the Block in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.digUp()&lt;br /&gt;
|Breaks the Block above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.digDown()&lt;br /&gt;
|Breaks the Block below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.place()&lt;br /&gt;
|Places a Block of the selected Slot in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.placeUp()&lt;br /&gt;
|Places a Block of the selected Slot above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.placeDown()&lt;br /&gt;
|Places a Block of the selected Slot below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detect()&lt;br /&gt;
|Detects if there is a Block in front&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detectUp()&lt;br /&gt;
|Detects if there is a Block above&lt;br /&gt;
|-&lt;br /&gt;
|turtle.detectDown()&lt;br /&gt;
|Detects if there is a Block below&lt;br /&gt;
|-&lt;br /&gt;
|turtle.drop()&lt;br /&gt;
|Drops everything of the selected Slot&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For our program, we will use turtle.detectDown(), turtle.digDown(), turtle.down() and turtle.forward(). It is recommended that you learn what method does what before messing up with Turtles.&lt;br /&gt;
&lt;br /&gt;
== The Program ==&lt;br /&gt;
So, for you to make the Turtle program, first craft a Turtle.&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle-craft.png]]&lt;br /&gt;
&lt;br /&gt;
Then make a Mining Turtle.&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle-craft2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, place it anywhere you want. Right click it and type 'edit MyFirstTurtleProgram', you dones't have to call it 'MyFirstTurtleProgram' it can be whatever you want.&lt;br /&gt;
So, inside the file, type:&lt;br /&gt;
 while turtle.detectDown() do&lt;br /&gt;
 print(&amp;quot;Digging down!&amp;quot;)&lt;br /&gt;
 turtle.digDown()&lt;br /&gt;
 print(&amp;quot;Going down!&amp;quot;)&lt;br /&gt;
 turtle.down()&lt;br /&gt;
 print(&amp;quot;Digging forward!&amp;quot;)&lt;br /&gt;
 turtle.dig()&lt;br /&gt;
 print(&amp;quot;Going forward!&amp;quot;)&lt;br /&gt;
 turtle.forward()&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
To save the program, press CTRL and select SAVE with the Arrow Keys. After that, type MyFirstTurtleProgram (or whatever you called your program).&lt;br /&gt;
&lt;br /&gt;
== Explanation ==&lt;br /&gt;
&lt;br /&gt;
The line while turtle.detectDown() do makes the program run until there is no block underneath the Turtle.&lt;br /&gt;
&lt;br /&gt;
The turtle.digDown() will make the Turtle dig down.&lt;br /&gt;
&lt;br /&gt;
The part where it says turtle.forward() will make the Turtle go forward.&lt;br /&gt;
&lt;br /&gt;
The line that says turtle.dig() will make the Turtle dig forward.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: this should be running on a mining turtle, or it wont work!&lt;br /&gt;
&lt;br /&gt;
== Author ==&lt;br /&gt;
[[User:Rockymc|rockymc]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=694</id>
		<title>Turtle</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Turtle&amp;diff=694"/>
				<updated>2012-02-27T07:59:40Z</updated>
		
		<summary type="html">&lt;p&gt;DRUGMONSTER: /* Crafting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Turtles are essentially robots, and were added in the 1.3 update. They run an OS (like the Computers) named TurtleOS. They have the ability to place blocks, break blocks, move around, detect blocks, and drop items in their inventory. The programs they run are stored on floppy disks.&lt;br /&gt;
&lt;br /&gt;
If you would like to know more about how to program them, have a look at the [[Turtle (API)|Turtle API]].&lt;br /&gt;
&lt;br /&gt;
==Floppy Disks==&lt;br /&gt;
Turtles do not have a built-in floppy drive. As such they need a floppy drive placed next to them to access disks.&lt;br /&gt;
&lt;br /&gt;
==Fuel==&lt;br /&gt;
Turtles have been equipped with a state of the art quantum ionizing engine. This means that, once given fuel (the redstone used to craft them), they do not need to be re-charged, nor do any fuel cells need to be replaced, likewise they don't need to have external power directed to them either.&lt;br /&gt;
&lt;br /&gt;
==Crafting==&lt;br /&gt;
To craft a Turtle:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Turtle-craft.png]]&lt;br /&gt;
&lt;br /&gt;
To craft a Mining Turtle:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Turtle-craft2.png]]&lt;br /&gt;
&lt;br /&gt;
To craft a Wireless Turtle:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Turtle-craft3.png]]&lt;br /&gt;
&lt;br /&gt;
To craft a Wireless Mining Turtle:&amp;lt;br /&amp;gt;&lt;br /&gt;
(NEED IMAGES)&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]]&lt;/div&gt;</summary>
		<author><name>DRUGMONSTER</name></author>	</entry>

	</feed>