http://www.computercraft.info/wiki/api.php?action=feedcontributions&user=Uncreative+Name&feedformat=atomComputerCraft Wiki - User contributions [en]2024-03-29T05:03:18ZUser contributionsMediaWiki 1.24.1http://www.computercraft.info/wiki/index.php?title=Turtle.digDown&diff=929Turtle.digDown2012-03-13T05:28:17Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.digDown |args= |api=turtle |returns=boolean whether the turtle succeeded in digging. |addon=ComputerCraft |desc=Attempts to dig the b..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.digDown<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in digging.<br />
|addon=ComputerCraft<br />
|desc=Attempts to dig the block below the turtle.<br />
|examples=<br />
{{Example<br />
|desc=Digs the block below the turtle.<br />
|code=print(turtle.digDown())<br />
|output=true if the turtle could dig the block, false if it could not or no block present.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.dig&diff=928Turtle.dig2012-03-13T05:27:26Z<p>Uncreative Name: </p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.dig<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in digging.<br />
|addon=ComputerCraft<br />
|desc=Attempts to dig the block in front of the turtle.<br />
|examples=<br />
{{Example<br />
|desc=Digs the block in front of the turtle.<br />
|code=print(turtle.dig())<br />
|output=true if the turtle could dig the block, false if it could not or no block present.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.digUp&diff=927Turtle.digUp2012-03-13T05:27:12Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.digUp |args= |api=turtle |returns=boolean whether the turtle succeeded in digging. |addon=ComputerCraft |desc=Attempts to dig the blo..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.digUp<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in digging.<br />
|addon=ComputerCraft<br />
|desc=Attempts to dig the block above of the turtle.<br />
|examples=<br />
{{Example<br />
|desc=Digs the block above the turtle.<br />
|code=print(turtle.digUp())<br />
|output=true if the turtle could dig the block, false if it could not or no block present.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.dig&diff=926Turtle.dig2012-03-13T05:26:26Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.dig |args= |api=turtle |returns=boolean whether the turtle succeeded in digging. |addon=ComputerCraft |desc=Attempts to dig the block..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.dig<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in digging.<br />
|addon=ComputerCraft<br />
|desc=Attempts to dig the block in front of the turtle.<br />
|examples=<br />
{{Example<br />
|desc=Digs the block in front of the turtle.<br />
|code=print(turtle.down())<br />
|output=true if the turtle could dig the block, false if it could not or no block present.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.getItemSpace&diff=925Turtle.getItemSpace2012-03-13T05:23:58Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.getItemSpace |args= |api=turtle |returns=integer the amount of room for items found in the specified slot. |addon=ComputerCraft |desc..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.getItemSpace<br />
|args=<br />
|api=turtle<br />
|returns=[[integer]] the amount of room for items found in the specified slot.<br />
|addon=ComputerCraft<br />
|desc=Prints the number of spaces remaining in the specified slot.<br />
|examples=<br />
{{Example<br />
|desc=Prints the number of spaces remaining in the specified slot.<br />
|code=print(turtle.getItemSpace())<br />
|output=Integer 0 through 64 depending on number of items.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.getItemCount&diff=923Turtle.getItemCount2012-03-13T05:22:22Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.getItemCount |args= |api=turtle |returns=integer the number of items found in the specified slot. |addon=ComputerCraft |desc=Prints t..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.getItemCount<br />
|args=<br />
|api=turtle<br />
|returns=[[integer]] the number of items found in the specified slot.<br />
|addon=ComputerCraft<br />
|desc=Prints the number of items in the specified slot.<br />
|examples=<br />
{{Example<br />
|desc=Prints the number of items in the specified slot.<br />
|code=print(turtle.getItemCount())<br />
|output=Integer 0 through 64 depending on number of items.<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.select&diff=922Turtle.select2012-03-13T05:19:20Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.select |args= |api=turtle |returns=boolean whether the slot number specified is greater than nine or not. |addon=ComputerCraft |desc=..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.select<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the slot number specified is greater than nine or not.<br />
|addon=ComputerCraft<br />
|desc=Attempts to select the specified slot.<br />
|examples=<br />
{{Example<br />
|desc=Selects the specified slot<br />
|code=print(turtle.select())<br />
|output=true unless slot number specified is greater than nine<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.turnRight&diff=921Turtle.turnRight2012-03-13T05:15:18Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.turnRight |args= |api=turtle |returns=boolean whether the turtle succeeded in turning right. |addon=ComputerCraft |desc=Attempts to t..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.turnRight<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in turning right.<br />
|addon=ComputerCraft<br />
|desc=Attempts to turn the turtle right.<br />
|examples=<br />
{{Example<br />
|desc=Turns the turtle right<br />
|code=print(turtle.turnRight())<br />
|output=true - the turtle cannot fail to turn right<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.turnLeft&diff=920Turtle.turnLeft2012-03-13T05:14:00Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.turnLeft |args= |api=turtle |returns=boolean whether the turtle succeeded in turning left. |addon=ComputerCraft |desc=Attempts to tur..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.turnLeft<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in turning left.<br />
|addon=ComputerCraft<br />
|desc=Attempts to turn the turtle left.<br />
|examples=<br />
{{Example<br />
|desc=Turns the turtle left<br />
|code=print(turtle.turnLeft())<br />
|output=true - the turtle cannot fail to turn left<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.down&diff=919Turtle.down2012-03-13T05:10:43Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.down |args= |api=turtle |returns=boolean whether the turtle succeeded in moving downwards. |addon=ComputerCraft |desc=Attempts to mov..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.down<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in moving downwards.<br />
|addon=ComputerCraft<br />
|desc=Attempts to move the turtle downwards.<br />
|examples=<br />
{{Example<br />
|desc=Moves the turtle downwards<br />
|code=print(turtle.down())<br />
|output=true if the turtle could move downwards, false if there was something in the way<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle_(API)&diff=918Turtle (API)2012-03-13T05:04:55Z<p>Uncreative Name: Quick minor fix</p>
<hr />
<div>The Turtle API is used to Work with your Turtles.<br />
{| border="1" cellpadding="2" cellspacing="0"<br />
!style="background:#EEE" width="200px"|Method name<br />
!style="background:#EEE" width="*"|Description<br />
|-<br />
|[[turtle.forward]]()<br />
|Let the Turtle move forward<br />
|-<br />
|[[turtle.back]]()<br />
|Let the Turtle move back<br />
|-<br />
|[[turtle.up]]()<br />
|Let the Turtle move up<br />
|-<br />
|[[turtle.down]]()<br />
|Let the Turtle move down <br />
|-<br />
|[[turtle.turnLeft]]()<br />
|The Turtle turns left<br />
|-<br />
|[[turtle.turnRight]]()<br />
|The Turtle turns right<br />
|-<br />
|[[turtle.select]]( slotNum )<br />
|The Turtle selects the given Slot (1 is top left, 9 is bottom right)<br />
|-<br />
|[[turtle.getItemCount]]( slotNum )<br />
|Counts how many items are in the given Slot<br />
|-<br />
|[[turtle.getItemSpace]]( slotNum )<br />
|Counts how many items you need to fill the stack in the given Slot<br />
|-<br />
|[[turtle.dig]]()<br />
|Breaks the Block in front<br />
|-<br />
|[[turtle.digUp]]()<br />
|Breaks the Block above<br />
|-<br />
|[[turtle.digDown]]()<br />
|Breaks the Block below<br />
|-<br />
|[[turtle.place]]()<br />
|Places a Block of the selected Slot in front<br />
|-<br />
|[[turtle.placeUp]]()<br />
|Places a Block of the selected Slot above<br />
|-<br />
|[[turtle.placeDown]]()<br />
|Places a Block of the selected Slot below<br />
|-<br />
|[[turtle.detect]]()<br />
|Detects if there is a Block in front<br />
|-<br />
|[[turtle.detectUp]]()<br />
|Detects if there is a Block above<br />
|-<br />
|[[turtle.detectDown]]()<br />
|Detects if there is a Block below<br />
|-<br />
|[[turtle.compare]]()<br />
|Detects if the block in front is the same as the one in the selected Slot<br />
|-<br />
|[[turtle.compareUp]]()<br />
|Detects if the block above is the same as the one in the selected Slot<br />
|-<br />
|[[turtle.compareDown]]()<br />
|Detects if the block below is the same as the one in the selected Slot<br />
|-<br />
|[[turtle.drop]]()<br />
|Drops everything of the selected Slot or the specified amount<br />
|}<br />
[[Category:APIs]]</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle_(API)&diff=917Turtle (API)2012-03-13T05:04:25Z<p>Uncreative Name: </p>
<hr />
<div>The Turtle API is used to Work with your Turtles.<br />
{| border="1" cellpadding="2" cellspacing="0"<br />
!style="background:#EEE" width="200px"|Method name<br />
!style="background:#EEE" width="*"|Description<br />
|-<br />
|[[turtle.forward]]()<br />
|Let the Turtle move forward<br />
|-<br />
|[[turtle.back]]()<br />
|Let the Turtle move back<br />
|-<br />
|[[turtle.up]]()<br />
|Let the Turtle move up<br />
|-<br />
|[[turtle.down]]()<br />
|Let the Turtle move down <br />
|-<br />
|[[turtle.turnLeft]]()<br />
|The Turtle turns left<br />
|-<br />
|[[turtle.turnRight]]()<br />
|The Turtle turns right<br />
|-<br />
|[[turtle.select]]( slotNum )<br />
|The Turtle selects the given Slot (1 is top left, 9 is bottom right)<br />
|-<br />
|[[turtle.getItemCount]]( slotNum )<br />
|Counts how many items are in the given Slot<br />
|-<br />
|[[turtle.getItemSpace]]( slotNum )<br />
|Counts how many items you need to fill the stack in the given Slot<br />
|-<br />
|[[turtle.dig]]()<br />
|Breaks the Block in front<br />
|-<br />
|[[turtle.digUp]]()<br />
|Breaks the Block above<br />
|-<br />
|[[turtle.digDown]]()<br />
|Breaks the Block below<br />
|-<br />
|[[turtle.place]]()<br />
|Places a Block of the selected Slot in front<br />
|-<br />
|[[turtle.placeUp]]()<br />
|Places a Block of the selected Slot above<br />
|-<br />
|[[turtle.placeDown]]()<br />
|Places a Block of the selected Slot below<br />
|-<br />
|[[turtle.detect]]()<br />
|Detects if there is a Block in front<br />
|-<br />
|[[turtle.detectUp]]()<br />
|Detects if there is a Block above<br />
|-<br />
|[[turtle.detectDown]]()<br />
|Detects if there is a Block below<br />
|-<br />
|[[turtle.compare]]()<br />
|Detects if the block in front is the same as the one in the selected Slot<br />
|-<br />
[[turtle.compareUp]]()<br />
|Detects if the block above is the same as the one in the selected Slot<br />
|-<br />
[[turtle.compareDown]]()<br />
|Detects if the block below is the same as the one in the selected Slot<br />
|-<br />
|[[turtle.drop]]()<br />
|Drops everything of the selected Slot or the specified amount<br />
|}<br />
[[Category:APIs]]</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.up&diff=916Turtle.up2012-03-13T04:34:31Z<p>Uncreative Name: </p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.up<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in moving upwards.<br />
|addon=ComputerCraft<br />
|desc=Attempts to move the turtle upwards.<br />
|examples=<br />
{{Example<br />
|desc=Moves the turtle upwards<br />
|code=print(turtle.up())<br />
|output=true if the turtle could move upwards, false if there was something in the way<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.up&diff=915Turtle.up2012-03-13T04:34:14Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.back |args= |api=turtle |returns=boolean whether the turtle succeeded in moving upwards. |addon=ComputerCraft |desc=Attempts to move ..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.back<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in moving upwards.<br />
|addon=ComputerCraft<br />
|desc=Attempts to move the turtle upwards.<br />
|examples=<br />
{{Example<br />
|desc=Moves the turtle upwards<br />
|code=print(turtle.up())<br />
|output=true if the turtle could move upwards, false if there was something in the way<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Turtle.forward&diff=914Turtle.forward2012-03-13T04:33:02Z<p>Uncreative Name: Created page with "{{lowercase}} {{Function |name=turtle.forward |args= |api=turtle |returns=boolean whether the turtle succeeded in moving forwards |addon=ComputerCraft |desc=Attempts to mo..."</p>
<hr />
<div>{{lowercase}}<br />
{{Function<br />
|name=turtle.forward<br />
|args=<br />
|api=turtle<br />
|returns=[[boolean]] whether the turtle succeeded in moving forwards<br />
|addon=ComputerCraft<br />
|desc=Attempts to move the turtle forward.<br />
|examples=<br />
{{Example<br />
|desc=Moves the turtle forward<br />
|code=print(turtle.forward())<br />
|output=true if the turtle could move forwards, false if there was something in the way<br />
}}<br />
}}</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Getting_Started&diff=913Getting Started2012-03-13T04:28:34Z<p>Uncreative Name: formatting</p>
<hr />
<div>== Perquisite: Installing the mods ==<br />
'''It is very important to read everything carefully before asking questions.'''<br />
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''<br />
<br />
# Install [http://www.minecraftforum.net/topic/75440-v100-risugamis-mods-everything-updated/ Risugami's ModLoader] 1.1.<br />
# Install [http://www.minecraftforum.net/topic/75440-v100-risugamis-mods-everything-updated/ Flan's ModLoaderMP Unofficial] Client 1.1 v2.<br />
# Install [http://www.mod-buildcraft.com/forums/topic/forge-downloads/ Minecraft Forge] Recommended Client.<br />
# Download the latest version of ComputerCraft<br />
# Extract the .zip file in *minecraft folder*\mods\. (Tip: on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder et voilĂ , there's your Minecraft folder.)<br />
<br />
<br />
== Step 1: Crafting the console ==<br />
The recipe is simple:<br /><br />
[[File:J4wd7.png]]<br /><br />
<br />
Right click on the console to use it.<br /><br />
These are important to remember:<br />
{| border="1" cellpadding="2" cellspacing="0"<br />
!style="background:#EEE" width="200px"|Shortcut<br />
!style="background:#EEE" width="*"|Usage<br />
|-<br />
|CTRL + T<br />
|Closes the current program.<br />
|-<br />
|CTRL + R<br />
|Reboots the console.<br />
|-<br />
|CTRL + S<br />
|Forcefully shuts down the computer.<br />
|}<br />
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!<br /><br />
These are forced and will close the current program, even if it is still running.<br />
<br />
== Step 2: Wiring it all up ==<br />
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.<br />
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. Easy peasy.<br />
Or, you don't do anything in this part. The computer has some great games shipped with and it is even capable of loading web pages.<br />
<br />
== Step 3: Programming your system ==<br />
If you've programmed before this shouldn't be hard. It'll feel very comfortable.<br />
<br />
Type<br />
edit <filename><br />
in the terminal to open the included feature-rich <!-- Save and exit!!! --> text editor. To get the hang of Lua if you're new, use<br />
edit /rom/programs/redset<br />
to view the code of a simple program 'redset'.<br />
<br />
Navigating is easy.<br />
> ls<br />
rom<br />
> cd rom<br />
rom> ls<br />
apis help programs<br />
startup<br />
rom>cd programs<br />
rom/programs>cd /<br />
><br />
To say it in English: ls '''l'''i'''s'''ts the files and folders in a directory, while cd changes the '''c'''urrent '''d'''irectory. / is the root of the computer.<br />
Again, you don't have to program, but it's a big part of the mod. But you can still play those games.<br />
<br />
== Step 4: Test it ==<br />
Make sure that your program is bug-proof before using it as something important. A system controlling the state of an IndustrialCraft² Mark-III Nuclear Reactor to prevent it from overheating shouldn't crash every now and then with "Too long without yielding".<br />
<br />
== Step 5: Extend it ==<br />
Give back your part to the community. Help others on the forums or improve the wiki. Or, make your own OS or shell to run on the computers and share it with everybody. You can even create your own peripheral blocks using the API to create even a bigger system. A mainframe, for example.</div>Uncreative Namehttp://www.computercraft.info/wiki/index.php?title=Template:News&diff=912Template:News2012-03-13T04:27:07Z<p>Uncreative Name: News update</p>
<hr />
<div>ComputerCraft is currently at version '''1.31''' for Minecraft '''1.2.3'''.<br />
<!-- Eg.: '''13/03/2012''': CumputerCraft updated to version '''1.2.3''' --><br />
<!-- Please put a horizontal line (---- in Mediawiki code) before every entry --></div>Uncreative Name