<?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=PaxPi</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=PaxPi"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/PaxPi"/>
		<updated>2026-07-11T11:34:40Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=3563</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=3563"/>
				<updated>2012-10-29T19:23:12Z</updated>
		
		<summary type="html">&lt;p&gt;PaxPi: Undo vandalism&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Prerequisite: Installing the mods ==&lt;br /&gt;
'''It is very important to read everything carefully before asking questions.'''&lt;br /&gt;
'''Also, the latest version of this mod may not be compatible with the current Minecraft release.'''&lt;br /&gt;
&lt;br /&gt;
# Install [http://jenkins.minecraftforge.net/job/forge/forge-recommended/ Minecraft Forge Recommended Build]&lt;br /&gt;
# Download the latest version of [http://www.minecraftforum.net/topic/892282- ComputerCraft]&lt;br /&gt;
# Copy OR extract the .zip file into *minecraft folder*\mods\. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')&lt;br /&gt;
&amp;lt;!-- Both the zip or folder work. Please do not edit this without proof.  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 1: Crafting your first console ==&lt;br /&gt;
The recipe is simple:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|A1=stone |B1=stone      |C1=stone&lt;br /&gt;
|A2=stone |B2=redstone   |C2=stone&lt;br /&gt;
|A3=stone |B3=glass pane |C3=stone&lt;br /&gt;
|Output=console&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right click on the console to use it.&amp;lt;br /&amp;gt;&lt;br /&gt;
Some important keys to remember:&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;|Shortcut&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Usage&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + T&lt;br /&gt;
|Closes the current program.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + R&lt;br /&gt;
|Reboots the console.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + S&lt;br /&gt;
|Forcefully shuts down the computer.&lt;br /&gt;
|}&lt;br /&gt;
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!&amp;lt;br /&amp;gt;&lt;br /&gt;
These are forced (CTRL+T can be disabled by a program).&lt;br /&gt;
&lt;br /&gt;
== Step 2: Wiring it all up ==&lt;br /&gt;
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.&lt;br /&gt;
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. &lt;br /&gt;
&lt;br /&gt;
== Step 3: Programming your system ==&lt;br /&gt;
If you've programmed anything before this shouldn't be hard. It'll feel very comfortable.&lt;br /&gt;
&lt;br /&gt;
NOTE: You may also want to make a [[Floppy Disk]] or two to use along with your machine&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
edit &amp;lt;filename&amp;gt;&lt;br /&gt;
in the terminal to open the included feature-rich &amp;lt;!-- Save and exit!!! --&amp;gt; text editor. To get the hang of Lua if you're new, use&lt;br /&gt;
 edit /rom/programs/hello&lt;br /&gt;
to view the code of a simple program 'hello'.&lt;br /&gt;
&lt;br /&gt;
Navigating is easy.&lt;br /&gt;
 &amp;gt; ls&lt;br /&gt;
 rom&lt;br /&gt;
 &amp;gt; cd rom&lt;br /&gt;
 rom&amp;gt; ls&lt;br /&gt;
 apis   help   programs&lt;br /&gt;
 startup&lt;br /&gt;
 rom&amp;gt; cd programs&lt;br /&gt;
 rom/programs&amp;gt; cd /&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Test it ==&lt;br /&gt;
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 &amp;quot;Too long without yielding&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Extend it ==&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>PaxPi</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Turtle_(API)&amp;diff=3472</id>
		<title>Talk:Turtle (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Turtle_(API)&amp;diff=3472"/>
				<updated>2012-10-22T22:42:35Z</updated>
		
		<summary type="html">&lt;p&gt;PaxPi: /* More than 1 mover per turtle.up() */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Is there a way to detect a block's type? Preferably without picking it up; it would be nice to be able to write a function to check the block about to be broken against a list of &amp;quot;Do not break&amp;quot; blocks, such as Industrial craft's MFSU, which loses all held power when picked up. &lt;br /&gt;
&lt;br /&gt;
Also I request a way to set server-wide list of blocks immune to the turtle.dig() functions, such as say personal safes (Industrial Craft again).&amp;lt;small&amp;gt;&amp;lt;span class=&amp;quot;autosigned&amp;quot;&amp;gt;— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:50.131.199.48|50.131.199.48]] ([[User talk:50.131.199.48|talk]] • [[Special:Contributions/50.131.199.48|contribs]]) &amp;lt;/span&amp;gt;&amp;lt;/small&amp;gt;&amp;lt;!-- Template:Unsigned --&amp;gt;&lt;br /&gt;
:As far as I know, there's no way to check the block type with the current API. Could be a feature in the future though, never know. {{User:Scarfacial/Signature|22:17 - 8 March 2012}}&lt;br /&gt;
::Would be interesting to see if one could write a function for that. {{User:Banane9/Signature|22:43 - 9 March 2012}}&lt;br /&gt;
:::i would see it too please. But i dont think that you can make that in a function&lt;br /&gt;
:::[[User:Dude|Dude]] 22:13, 9 March 2012 (UTC)&lt;br /&gt;
::::You can determine if the block matches the one in its inventory using turtle.select(slot) and then turtle.compare() or turtle.compareUp() or turtle.compareDown()&lt;br /&gt;
&lt;br /&gt;
== turtle collect ? ==&lt;br /&gt;
&lt;br /&gt;
i understand that the turtle can drop items from its inventory with turtle.drop( [amount] )&lt;br /&gt;
but is there a way to make the turtle collect items (like a player would do) around and store it in inventory ?&lt;br /&gt;
(from what i understand right now the turtle collects items taken from a digged block ?&lt;br /&gt;
thanks&lt;br /&gt;
:Nope they don't collect items that are already dropped --[[User:Banane9|Banane9]] 12:22, 11 July 2012 (UTC)&lt;br /&gt;
:Now in 1.4 there is the [[turtle.suck|turtle.suck()]] function --[[User:Dadmob18|Dadmob18]] 12:22, 27 Sep 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
== treefarm ==&lt;br /&gt;
&lt;br /&gt;
i have write a big programm (120 lines) that destory the tree full (with the leaves) when the tree is grown. so the turtle can plant an new tree an beginn at the start. My problem: the programm dont work and i cant find the faults... &amp;lt;small&amp;gt;&amp;lt;span class=&amp;quot;autosigned&amp;quot;&amp;gt;— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Dude|Dude]] ([[User talk:Dude|talk]] • [[Special:Contributions/Dude|contribs]]) &amp;lt;/span&amp;gt;&amp;lt;/small&amp;gt;&amp;lt;!-- Template:Unsigned --&amp;gt;&lt;br /&gt;
:Maybe because the leaves of the tree decay and that f*cks up the code? We cant help you without seeing your code ;) --[[User:Banane9|Banane9]] 12:22, 11 July 2012 (UTC)&lt;br /&gt;
::On a similar note, I have written a disassembler script which (mostly) disassembles arbitrary things from the top down, but it really gets messed up by doors and other turtles and pistons, it is basically because interacting with blocks only works well if the blocks don't change while you are trying to deal with them/use them for navigating.&lt;br /&gt;
&lt;br /&gt;
== Turtle API to detect block/item ID? ==&lt;br /&gt;
&lt;br /&gt;
I have a suggestion, what if you have a function like: turtle.getBlockID() which would return ID, damage value, or simmilar&lt;br /&gt;
:Dan doesn't want Block IDs as they'd break the 4th wall. --[[User:Pinkishu|Pinkishu]] 13:12, 16 August 2012 (CEST)&lt;br /&gt;
&lt;br /&gt;
== More than 1 mover per turtle.up() ==&lt;br /&gt;
&lt;br /&gt;
is there a way to make a turtle go up more than once for each turtle.up() ? like maybe turtle.up(36) (i tried that but it said attempt to call nil)&lt;br /&gt;
&lt;br /&gt;
You could use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
turtleold = turtle.up&lt;br /&gt;
function turtlenew(times)&lt;br /&gt;
for i=1,times do&lt;br /&gt;
turtle.up()&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
turtle.up = turtlenew&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then just use turtle.up(5) and stuff, because it overrides the function.&lt;br /&gt;
&lt;br /&gt;
If you want to make sure, the turtle wasn't blocked, you should add a return value. I'd also recommend sticking close to the regular interface, if you replace turtle.up().&lt;br /&gt;
To keep most regular uses working, maybe something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
turtle.up = function(times)&lt;br /&gt;
  for i=1,times do&lt;br /&gt;
    if not turtle.up() then&lt;br /&gt;
      return false, i&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  return true, times&lt;br /&gt;
end&lt;br /&gt;
ok, moves = turtle.up(5)&lt;br /&gt;
if not ok then&lt;br /&gt;
  -- check for obstacles or fuel shortage etc.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can you tell the turtle to drop/not pick up unwanted items like dirt, cobble, sand and gravel?&lt;br /&gt;
&lt;br /&gt;
== Detecting Fluids ==&lt;br /&gt;
&lt;br /&gt;
It seems as though water or lava aren't considered as blocks, and I was wondering if it would be possible to make it possible to detect a fluid but not directly, something like a fluid temperature attachment, and&lt;br /&gt;
with that you could distinguish between water, lava and air and perhaps fire. As i said nothing too easy like a function that spits out a string like &amp;quot;water&amp;quot; or &amp;quot;lava&amp;quot; or &amp;quot;air&amp;quot;. Just something that allows the programmer to make functions that can come to those conclusions.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sand|Sand]] 00:46, 7 October 2012 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have also just realized that if there is going to be a way to detect fluids, there will need to be a way to pick them up/ place them as well.&lt;br /&gt;
&lt;br /&gt;
==Anything==&lt;br /&gt;
&lt;br /&gt;
Whenever I try to do anything with a turtle, it says &amp;quot;No such program&amp;quot;, and normally I am good at programming. How do I do even the simplest things with these turtles?&lt;br /&gt;
&lt;br /&gt;
Please post this on the forums. It's easier to reply there. --[[User:Thesbros|Thesbros]] 17:25, 21 October 2012 (EDT)&lt;/div&gt;</summary>
		<author><name>PaxPi</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:PaxPi&amp;diff=3335</id>
		<title>User:PaxPi</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:PaxPi&amp;diff=3335"/>
				<updated>2012-10-08T01:40:31Z</updated>
		
		<summary type="html">&lt;p&gt;PaxPi: Created page with &amp;quot;Memo: java.lang.IllegalArgumentException: Empty string not allowed ... at dan200.computer.shared.ItemPrintout.createFromTitleAndText(ItemPrintout.java:116) at dan200.computer....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Memo:&lt;br /&gt;
java.lang.IllegalArgumentException: Empty string not allowed&lt;br /&gt;
...&lt;br /&gt;
at dan200.computer.shared.ItemPrintout.createFromTitleAndText(ItemPrintout.java:116)&lt;br /&gt;
at dan200.computer.shared.ItemPrintout.createMultipleFromTitleAndText(ItemPrintout.java:133)&lt;br /&gt;
...&lt;/div&gt;</summary>
		<author><name>PaxPi</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Textutils.slowWrite&amp;diff=3040</id>
		<title>Textutils.slowWrite</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Textutils.slowWrite&amp;diff=3040"/>
				<updated>2012-09-20T15:07:11Z</updated>
		
		<summary type="html">&lt;p&gt;PaxPi: match code and example output&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=textutils.slowWrite&lt;br /&gt;
|args= [[string (type)|string]] text&lt;br /&gt;
|returns=Text written on the screen&lt;br /&gt;
|api=textutils&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Writes to the screen&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Writes text to the screen, character by character.&lt;br /&gt;
|code=textutils.slowWrite(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
|output=Hello, world!&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>PaxPi</name></author>	</entry>

	</feed>