Difference between revisions of "Built In Turtle Programs"
From ComputerCraft Wiki
m (minor formatting) |
|||
Line 7: | Line 7: | ||
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr> | <tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-craft">craft</div><tt>craft <number></tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-craft">craft</div><tt>[[craft]] <number></tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will craft the number of items specified (if not enough material is provided, will craft as many as possible).</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will craft the number of items specified (if not enough material is provided, will craft as many as possible).</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-dance">dance</div><tt>dance</tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-dance">dance</div><tt>[[dance]]</tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Commands the turtle to get funky.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Commands the turtle to get funky.</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-excavate">excavate</div><tt>excavate <width></tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-excavate">[[excavate]]</div><tt>excavate <width></tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will excavate a square hole <width> blocks wide until it hits bedrock.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will excavate a square hole <width> blocks wide until it hits bedrock.</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-tunnel">tunnel</div><tt>tunnel <distance></tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-tunnel">[[tunnel]]</div><tt>tunnel <distance></tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will dig a tunnel 2 high by 3 wide for the <distance> specified.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will dig a tunnel 2 high by 3 wide for the <distance> specified.</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-refuel">refuel</div><tt>refuel</tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-refuel">[[refuel]]</div><tt>refuel</tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will refuel the turtle using the item in the currently selected slot.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will refuel the turtle using the item in the currently selected slot.</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-turn">turn</div><tt>turn <direction> <number></tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-turn">[[turn]]</div><tt>turn <direction> <number></tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will make the turtle turn in the <direction> specified, for the designated <number> of times.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will make the turtle turn in the <direction> specified, for the designated <number> of times.</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-go">go</div><tt>go <direction> <number></tt></td> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-go">[[go]]</div><tt>go <direction> <number></tt></td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will command the turtle to move in the list of specified directions in the <direction <number> format. <b>Example:</b> <i>go forward 3 left 2</i> will move forward three, and turn left twice.</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Will command the turtle to move in the list of specified directions in the <direction <number> format. <b>Example:</b> <i>go forward 3 left 2</i> will move forward three, and turn left twice.</td></tr> | ||
[[Category:Programs]][[Category:Lists]][[Category:Tutorials]] | [[Category:Programs]][[Category:Lists]][[Category:Tutorials]] | ||
+ | |||
+ | == See also == | ||
+ | * [[CraftOS Shell]] |
Revision as of 14:38, 29 August 2014
Turtles have the same programs installed by default as any other computer, but with the addition of turtle-specific programs.
Program Name | Description |
craft craft <number> |
Will craft the number of items specified (if not enough material is provided, will craft as many as possible). |
dance dance |
Commands the turtle to get funky. |
excavate <width> | Will excavate a square hole <width> blocks wide until it hits bedrock. |
tunnel <distance> | Will dig a tunnel 2 high by 3 wide for the <distance> specified. |
refuel | Will refuel the turtle using the item in the currently selected slot. |
turn <direction> <number> | Will make the turtle turn in the <direction> specified, for the designated <number> of times. |
go <direction> <number> | Will command the turtle to move in the list of specified directions in the <direction <number> format. Example: go forward 3 left 2 will move forward three, and turn left twice. |