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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6510</id>
		<title>HTTP (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6510"/>
				<updated>2014-04-20T20:16:27Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| '''The HTTP API must be enabled in ComputerCraft.cfg before being used. To enable it see [http://www.computercraft.info/forums2/index.php?/topic/17533-how-to-enable-the-http-api/ this tutorial].'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The HTTP API allows interfacing with websites and downloading from them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;3&amp;quot; style=&amp;quot;font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Grid_disk.png|24px]]&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
HTTP (API)&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;width: 100px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Return&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Method Name&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Description&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[nil]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.request]]({{type|string}} url [, {{type|string}} postData [, {{type|table}} headers]])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP request to a website, asynchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.get]]({{type|string}} url [, {{type|table}} headers])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP GET request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.post]]({{type|string}} url, {{type|string}} postData [, {{type|table}} headers])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP POST request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[http.request]] is used to send a HTTP request that completes asynchronously and generates an event (one of [[Http success (event)|http_success]] or [[Http failure (event)|http_failure]]). [[http.get]] and [[http.post]] execute [[http.request]] and block until the operation completes.&lt;br /&gt;
&lt;br /&gt;
== Handles ==&lt;br /&gt;
All three operations make use of ''handles'', tables that contain functions to read data returned from the HTTP server. These handles act the same as the I/O handles returned by [[fs.open]] in read-only text mode, implementing the [[fs.open#Closing_a_file_handle|close]], [[fs.open#Files_opened_in_text_read_mode|readLine]], and [[fs.open#Files_opened_in_text_read_mode|readAll]] methods. These handles also implement the following function:&lt;br /&gt;
&lt;br /&gt;
{{Function&lt;br /&gt;
|name=&amp;lt;var&amp;gt;h&amp;lt;/var&amp;gt;.getResponseCode&lt;br /&gt;
|returns={{type|number}} HTTP response code&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|desc=Returns the numerical [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes HTTP response code] sent by the server&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Headers ==&lt;br /&gt;
As of '''ComputerCraft 1.63''', you can optionally set custom headers. This also means that you can override default headers such as the User-Agent.&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sends a request to http://example.com/ with the custom headers.&lt;br /&gt;
|code=&amp;lt;nowiki&amp;gt;local headers = {&lt;br /&gt;
  [&amp;quot;User-Agent&amp;quot;] = &amp;quot;A custom user-agent!&amp;quot;, -- Overrides the default User-Agent.&lt;br /&gt;
  [&amp;quot;Hi&amp;quot;] = &amp;quot;Hello&amp;quot; -- A non-standard custom header field.&lt;br /&gt;
}&lt;br /&gt;
http.get(&amp;quot;http://example.com/&amp;quot;, headers)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Http.post&amp;diff=6509</id>
		<title>Http.post</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Http.post&amp;diff=6509"/>
				<updated>2014-04-20T19:54:24Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=http.post&lt;br /&gt;
|args={{type|string}} url, {{type|string}} postData [, {{type|table}} headers]&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|returns={{type|table}} a [[HTTP (API)#Handles|handle]] on success, or [[nil]] on failure&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a HTTP POST request to a website, synchronously. Returns when the request completes, successfully or not.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Http.get&amp;diff=6508</id>
		<title>Http.get</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Http.get&amp;diff=6508"/>
				<updated>2014-04-20T19:54:14Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=http.get&lt;br /&gt;
|args={{type|string}} url [, {{type|table}} headers]&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|returns={{type|table}} a [[HTTP (API)#Handles|handle]] on success, or [[nil]] on failure&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a HTTP GET request to a website, synchronously. Returns when the request completes, successfully or not.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Gets the content of example.com (in HTML)&lt;br /&gt;
|code=local sExample = http.get(&amp;quot;http://example.com/&amp;quot;) --Get contents of page&amp;lt;br /&amp;gt;write(sExample.readAll()) --Read and print contents of page&amp;lt;br /&amp;gt;sExample.close() --Just in case&lt;br /&gt;
|output=The source of http://example.com/&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Http.request&amp;diff=6507</id>
		<title>Http.request</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Http.request&amp;diff=6507"/>
				<updated>2014-04-20T19:54:06Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=http.request&lt;br /&gt;
|args={{type|string}} url [, {{type|string}} postData [, {{type|table}} headers]]&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a HTTP request to a website, asynchronously. Returns immediately, with an [[Http success (event)|http_success]] or [[Http failure (event)|http_failure]] event being delivered later to indicate the outcome. Issues a POST request if ''postData'' is provided, or a GET request if it is [[nil]] (or omitted).&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints &amp;quot;If you see this message, HTTP works!&amp;quot; if successful.&lt;br /&gt;
|code=http.request(&amp;quot;http://pastebin.com/raw.php?i=itK2bx9K&amp;quot;)&lt;br /&gt;
  local requesting = true&lt;br /&gt;
  while requesting do&lt;br /&gt;
    local event, url, sourceText = os.pullEvent()&lt;br /&gt;
    if event == &amp;quot;http_success&amp;quot; then&lt;br /&gt;
      local respondedText = sourceText.readAll()&lt;br /&gt;
      print(respondedText)&lt;br /&gt;
      requesting = false&lt;br /&gt;
    elseif event == &amp;quot;http_failure&amp;quot; then&lt;br /&gt;
      print(&amp;quot;Server didn't respond.&amp;quot;)&lt;br /&gt;
      requesting = false&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6506</id>
		<title>HTTP (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6506"/>
				<updated>2014-04-20T19:52:27Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| '''The HTTP API must be enabled in ComputerCraft.cfg before being used. To enable it see [http://www.computercraft.info/forums2/index.php?/topic/17533-how-to-enable-the-http-api/ this tutorial].'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The HTTP API allows interfacing with websites and downloading from them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;3&amp;quot; style=&amp;quot;font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Grid_disk.png|24px]]&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
HTTP (API)&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;width: 100px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Return&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Method Name&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Description&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[nil]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.request]]({{type|string}} url [, {{type|string}} postData [, {{type|table}} headers]])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP request to a website, asynchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.get]]({{type|string}} url [, {{type|table}} headers])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP GET request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.post]]({{type|string}} url, {{type|string}} postData [, {{type|table}} headers])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP POST request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[http.request]] is used to send a HTTP request that completes asynchronously and generates an event (one of [[Http success (event)|http_success]] or [[Http failure (event)|http_failure]]). [[http.get]] and [[http.post]] execute [[http.request]] and block until the operation completes.&lt;br /&gt;
&lt;br /&gt;
== Handles ==&lt;br /&gt;
All three operations make use of ''handles'', tables that contain functions to read data returned from the HTTP server. These handles act the same as the I/O handles returned by [[fs.open]] in read-only text mode, implementing the [[fs.open#Closing_a_file_handle|close]], [[fs.open#Files_opened_in_text_read_mode|readLine]], and [[fs.open#Files_opened_in_text_read_mode|readAll]] methods. These handles also implement the following function:&lt;br /&gt;
&lt;br /&gt;
{{Function&lt;br /&gt;
|name=&amp;lt;var&amp;gt;h&amp;lt;/var&amp;gt;.getResponseCode&lt;br /&gt;
|returns={{type|number}} HTTP response code&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|desc=Returns the numerical [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes HTTP response code] sent by the server&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Shazz&amp;diff=6505</id>
		<title>User:Shazz</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Shazz&amp;diff=6505"/>
				<updated>2014-04-20T02:50:38Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: Created page with &amp;quot;Hello...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello...&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral.find&amp;diff=6504</id>
		<title>Peripheral.find</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral.find&amp;diff=6504"/>
				<updated>2014-04-20T02:48:36Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=peripheral.find&lt;br /&gt;
|args={{type|string}} type [, {{type|function}} fnFilter( name, object )]&lt;br /&gt;
|returns={{Type|table}} handle1, {{Type|table}} handle2, ... handles to peripherals of the given type&lt;br /&gt;
|api=peripheral&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Returns a list of handles to connected peripherals that match the supplied type and if the filter function supplied (optional) returns true once called with the peripheral name and peripheral handle as arguments. '''''Requires ComputerCraft 1.6 or later.''''' &lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Finds a monitor and writes 'Hello' on it.&lt;br /&gt;
|code= local monitor = '''peripheral.find(&amp;quot;monitor&amp;quot;)'''&lt;br /&gt;
 &lt;br /&gt;
 if monitor then&lt;br /&gt;
   monitor.[[term.write|write]](&amp;quot;Hello&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=If there is a monitor connected 'Hello' will be written on it.&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Finds 2 '''advanced''' monitors and writes 'Hello' on the first and 'World' on the second.&lt;br /&gt;
|code= local mon1, mon2 = '''peripheral.find(&amp;quot;monitor&amp;quot;, function(name, object) return object.isColour() end)'''&lt;br /&gt;
 &lt;br /&gt;
 if mon1 then&lt;br /&gt;
   mon1.[[term.setTextColor|setTextColour]]([[colors|colours]].blue)&lt;br /&gt;
   mon1.[[term.write|write]](&amp;quot;Hello&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
 if mon2 then&lt;br /&gt;
   mon2.[[term.setTextColor|setTextColour]]([[colors|colours]].red)&lt;br /&gt;
   mon2.[[term.write|write]](&amp;quot;World&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=If it finds 1 advanced monitor, 'Hello' will be written on it. If it finds 2 advanced monitors, 'Hello' will be written on the first and 'World' on the second.&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=6503</id>
		<title>Peripheral (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=6503"/>
				<updated>2014-04-20T02:32:52Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{msgbox&lt;br /&gt;
| text = This article is about the Peripheral API. For APIs exposed when wrapping peripherals through [[peripheral.wrap]]() see [[:Category:Peripheral_APIs|Peripheral APIs]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
__TOC__ &lt;br /&gt;
The Peripheral API is for interacting with [[peripheral]]s connected to the computer, such as the [[Disk Drive]], the [[Advanced Monitor]] and [[Monitor]]. (More peripherals can be found under [[:Category:Peripherals|here]]).&lt;br /&gt;
&lt;br /&gt;
Each peripheral block has a name, or ''side''. Although peripherals can now be attached to a computer using networking cables, the word ''side'' is a holdover from when peripherals needed to be directly next to the computer.&lt;br /&gt;
&lt;br /&gt;
If the peripheral is next to the computer, its side is either &amp;quot;front&amp;quot;, &amp;quot;back&amp;quot;, &amp;quot;left&amp;quot;, &amp;quot;right&amp;quot;, &amp;quot;top&amp;quot; or &amp;quot;bottom&amp;quot;. If the peripheral is attached by a cable, its side will follow the format &amp;quot;''type''_''id''&amp;quot;, for example &amp;quot;printer_0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Peripheral functions are called '''methods''', a term borrowed from Java.&lt;br /&gt;
&lt;br /&gt;
{{API table|Peripheral|image=Grid disk.png|2=&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.isPresent]]({{type|string}} side)|{{type|boolean}}|&lt;br /&gt;
Returns '''true''' if a peripheral is connected on ''side''.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getType]]({{type|string}} side)|{{type|string}} /{{type|nil}}|&lt;br /&gt;
Returns the type of peripheral connected on ''side'', as a string.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getMethods]]({{type|string}} side)|{{type|table}} /{{type|nil}}|&lt;br /&gt;
Returns a list of the names of all the methods of the peripheral connected on ''side''.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.call]]({{type|string}} side, {{type|string}} method, ...)|any|&lt;br /&gt;
Calls a method on a peripheral. The arguments (apart from ''side'' and ''method'') and the return values depend on the method being called.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.wrap]]({{type|string}} side)|{{type|table}} peripheral / {{type|nil}}|&lt;br /&gt;
Returns a table of functions, allowing you to call peripheral methods as if they were normal Lua functions.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.find]]({{type|string}} type [, {{type|function}} fnFilter( name, object )])|{{type|table}} peripheral / {{type|nil}}|&lt;br /&gt;
Finds an attached peripheral of the given type and if found returns a table of functions, similar to [[peripheral.wrap]], allowing you to call peripheral methods as if they were normal Lua functions.&lt;br /&gt;
If no peripheral of the given type is connected, it returns nil. '''''Requires ComputerCraft 1.6 or later.'''''&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getNames]]()|{{type|table}}|&lt;br /&gt;
This function returns a table of all the sides that have a peripheral present. If the present peripheral is a wired modem any names of the peripherals that is on the network are also added to the table.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Connecting peripherals using networking cables==&lt;br /&gt;
Using Networking Cables, you can attach and use peripherals without having them directly touching the computer. To connect a peripheral in this way, place a Wired Modem on any side of your computer, as you would a [[Wireless Modem]]. Place a Wired Modem on each peripheral you wish to connect, and then connect all of them with Networking Cables. Then right click each of the wired modems.&lt;br /&gt;
&lt;br /&gt;
You should receive a message in your chat bar for each peripheral informing you of a successful connection, and the peripheral side.&lt;br /&gt;
&lt;br /&gt;
==Monitor==&lt;br /&gt;
[[Monitor#Peripheral_Functions|Monitor Peripheral functions]] have been moved to the [[Monitor]] page.&lt;br /&gt;
In addition, the [[Advanced_Monitor#Peripheral_Functions|Advanced Monitor Peripheral functions]] have been moved to the [[Advanced Monitor]] page.&lt;br /&gt;
&lt;br /&gt;
==Printer==&lt;br /&gt;
[[Printer#Peripheral_Functions|Printer Peripheral functions]] have been moved to the [[Printer]] page.&lt;br /&gt;
&lt;br /&gt;
==Computers==&lt;br /&gt;
[[Computer#Peripheral_Functions|Computer Peripheral functions]] have been moved to the [[Computer]] page.&lt;br /&gt;
In addition, the [[Advanced_Computer#Peripheral_Functions|Advanced Computer Peripheral functions]] have been moved to the [[Advanced Computer]] page.&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral.find&amp;diff=6502</id>
		<title>Peripheral.find</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral.find&amp;diff=6502"/>
				<updated>2014-04-20T02:32:32Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=peripheral.find&lt;br /&gt;
|args={{type|string}} type [, {{type|function}} fnFilter( name, object )]&lt;br /&gt;
|returns={{Type|table}} handle1, {{Type|table}} handle2, ... handles to peripherals of the given type&lt;br /&gt;
|api=peripheral&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Returns a handle to a peripheral of the supplied type that can then be used to call methods, as if using [[peripheral.call]](side, method). The same handle is returned using [[peripheral.wrap]](). '''''Requires ComputerCraft 1.6 or later.'''''&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Finds a monitor and writes 'Hello' on it.&lt;br /&gt;
|code= local monitor = '''peripheral.find(&amp;quot;monitor&amp;quot;)'''&lt;br /&gt;
 &lt;br /&gt;
 if monitor then&lt;br /&gt;
   monitor.[[term.write|write]](&amp;quot;Hello&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
|output=If there is a monitor connected 'Hello' will be written on it.&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=6501</id>
		<title>Peripheral (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=6501"/>
				<updated>2014-04-20T02:30:18Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{msgbox&lt;br /&gt;
| text = This article is about the Peripheral API. For APIs exposed when wrapping peripherals through [[peripheral.wrap]]() see [[:Category:Peripheral_APIs|Peripheral APIs]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
__TOC__ &lt;br /&gt;
The Peripheral API is for interacting with [[peripheral]]s connected to the computer, such as the [[Disk Drive]], the [[Advanced Monitor]] and [[Monitor]]. (More peripherals can be found under [[:Category:Peripherals|here]]).&lt;br /&gt;
&lt;br /&gt;
Each peripheral block has a name, or ''side''. Although peripherals can now be attached to a computer using networking cables, the word ''side'' is a holdover from when peripherals needed to be directly next to the computer.&lt;br /&gt;
&lt;br /&gt;
If the peripheral is next to the computer, its side is either &amp;quot;front&amp;quot;, &amp;quot;back&amp;quot;, &amp;quot;left&amp;quot;, &amp;quot;right&amp;quot;, &amp;quot;top&amp;quot; or &amp;quot;bottom&amp;quot;. If the peripheral is attached by a cable, its side will follow the format &amp;quot;''type''_''id''&amp;quot;, for example &amp;quot;printer_0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Peripheral functions are called '''methods''', a term borrowed from Java.&lt;br /&gt;
&lt;br /&gt;
{{API table|Peripheral|image=Grid disk.png|2=&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.isPresent]]({{type|string}} side)|{{type|boolean}}|&lt;br /&gt;
Returns '''true''' if a peripheral is connected on ''side''.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getType]]({{type|string}} side)|{{type|string}} /{{type|nil}}|&lt;br /&gt;
Returns the type of peripheral connected on ''side'', as a string.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getMethods]]({{type|string}} side)|{{type|table}} /{{type|nil}}|&lt;br /&gt;
Returns a list of the names of all the methods of the peripheral connected on ''side''.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.call]]({{type|string}} side, {{type|string}} method, ...)|any|&lt;br /&gt;
Calls a method on a peripheral. The arguments (apart from ''side'' and ''method'') and the return values depend on the method being called.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.wrap]]({{type|string}} side)|{{type|table}} peripheral / {{type|nil}}|&lt;br /&gt;
Returns a table of functions, allowing you to call peripheral methods as if they were normal Lua functions.&lt;br /&gt;
If no peripheral is connected, returns nil.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.find]]({{type|string}} type [, {{type|function}} fnFilter])|{{type|table}} peripheral / {{type|nil}}|&lt;br /&gt;
Finds an attached peripheral of the given type and if found returns a table of functions, similar to [[peripheral.wrap]], allowing you to call peripheral methods as if they were normal Lua functions.&lt;br /&gt;
If no peripheral of the given type is connected, it returns nil. '''''Requires ComputerCraft 1.6 or later.'''''&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[peripheral.getNames]]()|{{type|table}}|&lt;br /&gt;
This function returns a table of all the sides that have a peripheral present. If the present peripheral is a wired modem any names of the peripherals that is on the network are also added to the table.&lt;br /&gt;
|odd}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Connecting peripherals using networking cables==&lt;br /&gt;
Using Networking Cables, you can attach and use peripherals without having them directly touching the computer. To connect a peripheral in this way, place a Wired Modem on any side of your computer, as you would a [[Wireless Modem]]. Place a Wired Modem on each peripheral you wish to connect, and then connect all of them with Networking Cables. Then right click each of the wired modems.&lt;br /&gt;
&lt;br /&gt;
You should receive a message in your chat bar for each peripheral informing you of a successful connection, and the peripheral side.&lt;br /&gt;
&lt;br /&gt;
==Monitor==&lt;br /&gt;
[[Monitor#Peripheral_Functions|Monitor Peripheral functions]] have been moved to the [[Monitor]] page.&lt;br /&gt;
In addition, the [[Advanced_Monitor#Peripheral_Functions|Advanced Monitor Peripheral functions]] have been moved to the [[Advanced Monitor]] page.&lt;br /&gt;
&lt;br /&gt;
==Printer==&lt;br /&gt;
[[Printer#Peripheral_Functions|Printer Peripheral functions]] have been moved to the [[Printer]] page.&lt;br /&gt;
&lt;br /&gt;
==Computers==&lt;br /&gt;
[[Computer#Peripheral_Functions|Computer Peripheral functions]] have been moved to the [[Computer]] page.&lt;br /&gt;
In addition, the [[Advanced_Computer#Peripheral_Functions|Advanced Computer Peripheral functions]] have been moved to the [[Advanced Computer]] page.&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=6292</id>
		<title>Disk (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=6292"/>
				<updated>2014-03-29T21:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: Undo revision 6291 by Shazz (talk) Sorry, mistook this for the API returned when wrapping to a disk drive.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''If you were looking for the item, please see [[Floppy Disk]].''&lt;br /&gt;
&lt;br /&gt;
The Disk API allows you to interact with disk drives. These functions can operate on locally attached or remote disk drives. To use a locally attached drive, specify “side” as one of the six sides (e.g. “left”); to use a remote disk drive, specify its name as printed when enabling its modem (e.g. “drive_0”).&lt;br /&gt;
&lt;br /&gt;
{{API table|Disk|image=Grid_disk.png|2=&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[disk.isPresent]]({{type|string}} side)|{{type|boolean}} present|Checks whether any item is in a disk drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.hasData]]({{type|string}} side)|{{type|boolean}} hasdata|Checks whether a [[Floppy Disk]] is in a disk drive.|}}&lt;br /&gt;
{{API table/row|[[disk.getMountPath]]({{type|string}} side)|{{type|string}}/{{type|nil}} path|Gets the directory name where the contents of the floppy disk can be accessed.|odd}}&lt;br /&gt;
{{API table/row|[[disk.setLabel]]({{type|string}} side, {{type|string}} label)|{{type|nil}}|Sets the floppy disk's label.|}}&lt;br /&gt;
{{API table/row|[[disk.getLabel]]({{type|string}} side)|{{type|string}}/{{type|nil}} label|Gets the floppy disk's label.|odd}}&lt;br /&gt;
{{API table/row|[[disk.getID]]({{type|string}} side)|{{type|number}}/{{type|nil}} id|Gets the floppy disk's unique ID number.|}}&lt;br /&gt;
{{API table/row|[[disk.hasAudio]]({{type|string}} side)|{{type|boolean}} hasaudio|Checks whether a [http://www.minecraftwiki.net/wiki/Music_Discs music disk] is in the drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.getAudioTitle]]({{type|string}} side)|{{type|string}}/{{type|nil}} title|Gets the title of the music disc in the drive.|}}&lt;br /&gt;
{{API table/row|[[disk.playAudio]]({{type|string}} side)|{{type|nil}}|Starts playing the music disc in the drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.stopAudio]]({{type|string}} side)|{{type|nil}}|Stops playing the music disc in the drive.|}}&lt;br /&gt;
{{API table/row|[[disk.eject]]({{type|string}} side)|{{type|nil}}|Ejects any item currently in the drive, spilling it into the world as a loose item.|odd}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=6291</id>
		<title>Disk (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=6291"/>
				<updated>2014-03-29T21:00:49Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: Fixed wrong function name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''If you were looking for the item, please see [[Floppy Disk]].''&lt;br /&gt;
&lt;br /&gt;
The Disk API allows you to interact with disk drives. These functions can operate on locally attached or remote disk drives. To use a locally attached drive, specify “side” as one of the six sides (e.g. “left”); to use a remote disk drive, specify its name as printed when enabling its modem (e.g. “drive_0”).&lt;br /&gt;
&lt;br /&gt;
{{API table|Disk|image=Grid_disk.png|2=&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[disk.isPresent]]({{type|string}} side)|{{type|boolean}} present|Checks whether any item is in a disk drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.hasData]]({{type|string}} side)|{{type|boolean}} hasdata|Checks whether a [[Floppy Disk]] is in a disk drive.|}}&lt;br /&gt;
{{API table/row|[[disk.getMountPath]]({{type|string}} side)|{{type|string}}/{{type|nil}} path|Gets the directory name where the contents of the floppy disk can be accessed.|odd}}&lt;br /&gt;
{{API table/row|[[disk.setLabel]]({{type|string}} side, {{type|string}} label)|{{type|nil}}|Sets the floppy disk's label.|}}&lt;br /&gt;
{{API table/row|[[disk.getLabel]]({{type|string}} side)|{{type|string}}/{{type|nil}} label|Gets the floppy disk's label.|odd}}&lt;br /&gt;
{{API table/row|[[disk.getDiskID]]({{type|string}} side)|{{type|number}}/{{type|nil}} id|Gets the floppy disk's unique ID number.|}}&lt;br /&gt;
{{API table/row|[[disk.hasAudio]]({{type|string}} side)|{{type|boolean}} hasaudio|Checks whether a [http://www.minecraftwiki.net/wiki/Music_Discs music disk] is in the drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.getAudioTitle]]({{type|string}} side)|{{type|string}}/{{type|nil}} title|Gets the title of the music disc in the drive.|}}&lt;br /&gt;
{{API table/row|[[disk.playAudio]]({{type|string}} side)|{{type|nil}}|Starts playing the music disc in the drive.|odd}}&lt;br /&gt;
{{API table/row|[[disk.stopAudio]]({{type|string}} side)|{{type|nil}}|Stops playing the music disc in the drive.|}}&lt;br /&gt;
{{API table/row|[[disk.eject]]({{type|string}} side)|{{type|nil}}|Ejects any item currently in the drive, spilling it into the world as a loose item.|odd}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Recipes&amp;diff=6288</id>
		<title>Recipes</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Recipes&amp;diff=6288"/>
				<updated>2014-03-29T17:13:14Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
|[[Computer]]&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=Computer&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Wired Modem]]&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=Stone          |C3=Stone&lt;br /&gt;
 |Output=Wired_Modem&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Networking Cable]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |          B1=Stone    &lt;br /&gt;
 |A2=Stone |B2=Redstone       |C2=Stone&lt;br /&gt;
           |B3=Stone      &lt;br /&gt;
 |Output=Networking_Cable&lt;br /&gt;
 |OA=6&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Wireless Modem|Wireless Modem]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Stone |B1=Stone          |C1=Stone&lt;br /&gt;
 |A2=Stone |B2=ender_pearl       |C2=Stone&lt;br /&gt;
 |A3=Stone |B3=Stone          |C3=Stone&lt;br /&gt;
 |Output=Modem&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Wireless Modem|Wireless Modem (old recipe, changed in 1.51)]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Stone |B1=Stone          |C1=Stone&lt;br /&gt;
 |A2=Stone |B2=redstone_torch       |C2=Stone&lt;br /&gt;
 |A3=Stone |B3=Stone          |C3=Stone&lt;br /&gt;
 |Output=Modem&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Disk Drive]]&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=Redstone      |C3=Stone&lt;br /&gt;
 |Output=Disk_Drive&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Floppy Disk]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |B1=Redstone&lt;br /&gt;
 |B2=paper&lt;br /&gt;
 |Output=disk&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Turtle]] (and see [[Turtle#Recipes|Turtle recipes]])&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=iron_ingot |B1=iron_ingot    |C1=iron_ingot&lt;br /&gt;
 |A2=iron_ingot |B2=Computer       |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;
|[[Monitor]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Stone |B1=Stone      |C1=Stone&lt;br /&gt;
 |A2=Stone |B2=glass_pane |C2=Stone&lt;br /&gt;
 |A3=Stone |B3=Stone      |C3=Stone&lt;br /&gt;
 |Output=Monitor&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Printer]]&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=Ink_Sac       |C3=Stone&lt;br /&gt;
 |Output=printer&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Advanced Computer]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Gold_Ingot |B1=Gold_Ingot    |C1=Gold_Ingot&lt;br /&gt;
 |A2=Gold_Ingot |B2=Redstone      |C2=Gold_Ingot&lt;br /&gt;
 |A3=Gold_Ingot |B3=glass_pane    |C3=Gold_Ingot&lt;br /&gt;
 |Output=Advanced_Computer&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Advanced Monitor]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Gold_Ingot |B1=Gold_Ingot |C1=Gold_Ingot&lt;br /&gt;
 |A2=Gold_Ingot |B2=glass_pane |C2=Gold_Ingot&lt;br /&gt;
 |A3=Gold_Ingot |B3=Gold_Ingot |C3=Gold_Ingot&lt;br /&gt;
 |Output=Advanced_Monitor |OA=4&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Advanced Turtle]] (and see [[Turtle#Recipes|Turtle recipes]])&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Gold_Ingot |B1=Gold_Ingot    |C1=Gold_Ingot&lt;br /&gt;
 |A2=Gold_Ingot |B2=Advanced_Computer       |C2=Gold_Ingot&lt;br /&gt;
 |A3=Gold_Ingot |B3=chest         |C3=Gold_Ingot&lt;br /&gt;
 |Output=Advanced_Turtle&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Pocket_Computer|Pocket Computer]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Stone |B1=Stone |C1=Stone &lt;br /&gt;
 |A2=Stone |B2=Golden_Apple |C2=Stone &lt;br /&gt;
 |A3=Stone |B3=glass_pane |C3=Stone &lt;br /&gt;
 |Output=Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
|-&lt;br /&gt;
|[[Pocket_Computer|Advanced Pocket Computer]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |A1=Gold_Ingot |B1=Gold_Ingot |C1=Gold_Ingot &lt;br /&gt;
 |A2=Gold_Ingot |B2=Golden_Apple |C2=Gold_Ingot &lt;br /&gt;
 |A3=Gold_Ingot |B3=glass_pane |C3=Gold_Ingot &lt;br /&gt;
 |Output=Advanced_Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|[[Pocket_Computer|Wireless Pocket Computer]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |B2=Modem&lt;br /&gt;
 |B3=Pocket_Computer&lt;br /&gt;
 |Output=Wireless_Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|[[Pocket_Computer|Advanced Wireless Pocket Computer]]&lt;br /&gt;
|{{Crafting grid&lt;br /&gt;
 |B2=Modem&lt;br /&gt;
 |B3=Advanced_Pocket_Computer&lt;br /&gt;
 |Output=Advanced_Wireless_Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Pocket_Computer&amp;diff=6287</id>
		<title>Pocket Computer</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Pocket_Computer&amp;diff=6287"/>
				<updated>2014-03-29T17:12:25Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: /* Recipes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Block&lt;br /&gt;
|name=Pocket Computer&lt;br /&gt;
|image=Pocket_Computer_Large.png&lt;br /&gt;
|id=31709&lt;br /&gt;
|damage-value=The ID of the Computer.&lt;br /&gt;
|is-peripheral=No&lt;br /&gt;
}}&lt;br /&gt;
Pocket Computers, added in 1.6, are computers than are held as an inventory item, allowing you to use them on the move. To use a Pocket Computer, hold it in your hand and press the &amp;quot;use&amp;quot; key (this is a right-click by default). Both advanced and standard versions are available. It is also possible to craft Pocket Computers with wireless modems built in, this allows you to control your machines from anywhere or even [http://www.computercraft.info/forums2/index.php?/topic/17614-ultimate-door-lock-pda-opened-doors/ open doors] for you without having to do anything! When removing from your inventory (dropping, moving in to chest, etc) the computer will stay on for 3-4 seconds. After that time it will turn it self off, you will not loose any data. The screen size of Pocket Computers is 26 wide by 20 high.&lt;br /&gt;
&lt;br /&gt;
If the computer your program is running on is a Pocket Computer 'pocket' will be a blank table.&lt;br /&gt;
For example, to check if your program is running on Pocket Computer do:&lt;br /&gt;
 if pocket then&lt;br /&gt;
     print('Running on a Pocket Computer')&lt;br /&gt;
 else&lt;br /&gt;
     print('Running on a standard Computer')&lt;br /&gt;
 end&lt;br /&gt;
[[Category:Items]]&lt;br /&gt;
[[Category:Consoles]]&lt;br /&gt;
== Recipes ==&lt;br /&gt;
Pocket Computer&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
 |A1=stone |B1=stone      |C1=stone&lt;br /&gt;
 |A2=stone |B2=Golden Apple   |C2=stone&lt;br /&gt;
 |A3=stone |B3=glass_pane |C3=stone&lt;br /&gt;
 |Output=Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
Advanced Pocket Computer&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
 |A1=Gold_Ingot |B1=Gold_Ingot |C1=Gold_Ingot&lt;br /&gt;
 |A2=Gold_Ingot |B2=Golden_Apple |C2=Gold_Ingot&lt;br /&gt;
 |A3=Gold_Ingot |B3=glass_pane |C3=Gold_Ingot&lt;br /&gt;
 |Output=Advanced_Pocket_Computer&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
Wireless Pocket Computer&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|B1=Modem&lt;br /&gt;
|B2=Pocket_Computer&lt;br /&gt;
|Output=Wireless_Pocket_Computer&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Advanced Wireless Pocket Computer&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|B1=Modem&lt;br /&gt;
|B2=Advanced_Pocket_Computer&lt;br /&gt;
|Output=Advanced_Wireless_Pocket_Computer&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Hold the Pocket Computer in your hands then right click. To turn it off type 'shutdown' in to the shell.&lt;br /&gt;
&lt;br /&gt;
Pocket Computers also come with a special program, falling, a Tetris game by by GopherAtl. &lt;br /&gt;
&lt;br /&gt;
Below is a ingame screen of a Pocket Computer.&lt;br /&gt;
&lt;br /&gt;
[[File:Pocket_Computer_Screenshot.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BlocksItemsList}}&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=File:Grid_Advanced_Wireless_Pocket_Computer.png&amp;diff=6286</id>
		<title>File:Grid Advanced Wireless Pocket Computer.png</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=File:Grid_Advanced_Wireless_Pocket_Computer.png&amp;diff=6286"/>
				<updated>2014-03-29T17:08:42Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=File:Grid_Wireless_Pocket_Computer.png&amp;diff=6285</id>
		<title>File:Grid Wireless Pocket Computer.png</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=File:Grid_Wireless_Pocket_Computer.png&amp;diff=6285"/>
				<updated>2014-03-29T17:03:13Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=2869</id>
		<title>Disk (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Disk_(API)&amp;diff=2869"/>
				<updated>2012-09-12T22:34:13Z</updated>
		
		<summary type="html">&lt;p&gt;Shazz: added disk.getDiskID function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''If you were looking for disks as-in Floppies, go to [[Floppy Disk]].''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Disk API allows you to mess around with disk drives.&lt;br /&gt;
&lt;br /&gt;
==Methods==&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;
|[[disk.isPresent|disk.isPresent]]([[string (type)|string]] side )&lt;br /&gt;
|Checks the given side for a disk&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.hasData|disk.hasData]]([[string (type)|string]] side )&lt;br /&gt;
|Checks the disk for data&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.getMountPath|disk.getMountPath]]([[string (type)|string]] side )&lt;br /&gt;
|Returns the directory path on which the disk on '''side''' has been mount (ex. /disk)&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.setLabel|disk.setLabel]]([[string (type)|string]] side, [[string (type)|string]] label )&lt;br /&gt;
|Sets the label&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.getLabel|disk.getLabel]]([[string (type)|string]] side )&lt;br /&gt;
|Finds label&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.getDiskID|disk.getDiskID]]([[string (type)|string]] side )&lt;br /&gt;
|Finds ID (unique for every disk)&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.hasAudio|disk.hasAudio]]([[string (type)|string]] side )&lt;br /&gt;
|Checks if the disk is a music disk&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.getAudioTitle|disk.getAudioTitle]]([[string (type)|string]] side )&lt;br /&gt;
|Returns the audio title on the disk&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.playAudio|disk.playAudio]]([[string (type)|string]] side )&lt;br /&gt;
|Plays the audio&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.stopAudio|disk.stopAudio]]([[string (type)|string]] side )&lt;br /&gt;
|Stops the audio&lt;br /&gt;
|-&lt;br /&gt;
|[[disk.eject|disk.eject]]([[string (type)|string]] side )&lt;br /&gt;
|Ejects the disk.&lt;br /&gt;
|}&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Shazz</name></author>	</entry>

	</feed>