Difference between revisions of "Built In Turtle Programs"

From ComputerCraft Wiki
Jump to: navigation, search
(Adding default programs for turtles, similar to CraftOS Shell page.)
(Updating this list, and adding a see also section to the CraftOS shell page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{NeedsWork|Updating this page to give more detailed information similar to [[CraftOS Shell]] would be useful. - [[User:Oeed|Oeed]] 07:50, 26 March 2014 (GMT)}}
 
 
[[CraftOS_Shell|Turtles have the same programs installed by default as any other computer]], but with the addition of turtle-specific programs.
 
[[CraftOS_Shell|Turtles have the same programs installed by default as any other computer]], but with the addition of turtle-specific programs.
 +
 +
== Programs ==
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
 
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
[[File:Grid_turtle.png|24px]]&nbsp;&nbsp;
+
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
TurtleOS Shell Programs
+
Additional TurtleOS Shell Programs
 
</td></tr>
 
</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><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: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-apis">[[craft]]</div><tt>craft</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;">The turtle will, if it is able, craft an item from the contents of its inventory.</td></tr>
 +
 
 +
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-alias">[[dance]]</div><tt>dance</tt></td>
 +
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Initiates "get down" procedure.</td></tr>
 +
 
 +
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-alias">[[equip]]</div><tt>equip <side></tt></td>
 +
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">The turtle will attempt to place a tool on its specified side. <b>Note:</b> Added by ComputerCraft 1.6</td></tr>
 +
 
 +
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-apis">[[excavate]]</div><tt>excavate <width></tt></td>
 +
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Digs a square-shaped quarry to bedrock, of width equal to that specified.</td></tr>
 +
 
 +
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-alias">[[go]]</div><tt>go <?></tt></td>
 +
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Moves the turtle.</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: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-apis">[[refuel]]</div><tt>refuel <amount></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;">Attempts to replenish the turtle's [[fuel]] supply with items from its inventory.</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-alias">[[tunnel]]</div><tt>tunnel <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;">Digs a horizontal tunnel leading off in the direction the turtle is facing.</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: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-apis">[[turn]]</div><tt>turn <?></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;">Causes the turtle to rotate.</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-alias">[[unequip]]</div><tt>unequip<width></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;">Attempts to remove a tool from the turtle's specified side. <b>Note:</b> Added by ComputerCraft 1.6</td></tr>
 +
</table>
  
<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>
+
== See also ==
<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>
+
* [[CraftOS Shell]]
  
<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. Example: go forward 3 left 2 will move forward three, and turn left twice.</td></tr>
 
 
[[Category:Programs]][[Category:Lists]][[Category:Tutorials]]
 
[[Category:Programs]][[Category:Lists]][[Category:Tutorials]]

Latest revision as of 16:52, 30 August 2014

Turtles have the same programs installed by default as any other computer, but with the addition of turtle-specific programs.

Programs

Grid disk.png   Additional TurtleOS Shell Programs

Program NameDescription
craft The turtle will, if it is able, craft an item from the contents of its inventory.
dance Initiates "get down" procedure.
equip <side> The turtle will attempt to place a tool on its specified side. Note: Added by ComputerCraft 1.6
excavate <width> Digs a square-shaped quarry to bedrock, of width equal to that specified.
go <?> Moves the turtle.
refuel <amount> Attempts to replenish the turtle's fuel supply with items from its inventory.
tunnel <width> Digs a horizontal tunnel leading off in the direction the turtle is facing.
turn <?> Causes the turtle to rotate.
unequip<width> Attempts to remove a tool from the turtle's specified side. Note: Added by ComputerCraft 1.6

See also