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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Pocket_Computer&amp;diff=6289</id>
		<title>Pocket Computer</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Pocket_Computer&amp;diff=6289"/>
				<updated>2014-03-29T17:29:23Z</updated>
		
		<summary type="html">&lt;p&gt;J15t98J: Added info about using the modem.&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, which 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! The modem is attached to the back of the Pocket Computer, so to use it, wrap it with peripheral.wrap(&amp;quot;back&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
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>J15t98J</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Printer&amp;diff=5220</id>
		<title>Printer</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Printer&amp;diff=5220"/>
				<updated>2013-03-24T12:44:15Z</updated>
		
		<summary type="html">&lt;p&gt;J15t98J: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|Printer methods are not documented on this page.}}&lt;br /&gt;
{{Block&lt;br /&gt;
|name=Printer&lt;br /&gt;
|image=Iso_Printer.png&lt;br /&gt;
|id=4094&lt;br /&gt;
|damage-value=Un-used.&lt;br /&gt;
|is-peripheral=Yes&lt;br /&gt;
|peripheral-api=Printer (API)&lt;br /&gt;
}}&lt;br /&gt;
The printer was added in the  [[ComputerCraft]] 1.42 update. The printer is placed next to a computer, and allows for printing text onto paper with any color of ink.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Recipe ==&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;
== Usage ==&lt;br /&gt;
To use a printer, place it adjacently but not diagonally next to a computer (left, right, top, bottom, front, or back side). Place any color ink in the single left slot, and paper in any of the top slots.&lt;br /&gt;
&lt;br /&gt;
If you are using blocks to pull/insert items from the printer the different slots are available from these sides:&lt;br /&gt;
Paper tray is accessible from the top, output paper tray is accessible from the front or bottom, and the ink slot is accessible from the back or sides.&lt;br /&gt;
&lt;br /&gt;
[[File:PrinterGUI.png|thumb|256px|GUI of the Printer]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Blocks]][[Category:Peripherals]]&lt;/div&gt;</summary>
		<author><name>J15t98J</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=5210</id>
		<title>Peripheral (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=5210"/>
				<updated>2013-03-23T12:41:42Z</updated>
		
		<summary type="html">&lt;p&gt;J15t98J: Remove needswork banner.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Peripheral API is for interacting with external [http://en.wikipedia.org/wiki/Peripheral peripherals], such as the [[Disk Drive]], the [[Advanced Monitor]] and [[Monitor]].&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Computer|Computers]] and [[Turtle|Turtles]] are also considered peripherals and you can interface two adjacent computers, although in a more limited fashion compared to [[Rednet (API)|rednet]]. Both Computers and Turtles provide the same methods: ''turnOn'', ''shutdown'', ''reboot'', ''getID''.&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;2&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;
Peripheral (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: 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;[[peripheral.isPresent]](side)&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;Returns '''true''' if a peripheral is present on ''side''.&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;[[peripheral.getType]](side)&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;Returns the type or peripheral present on ''side'', nothing returned if ''side'' is empty.&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;[[peripheral.getMethods]](side)&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;Returns a table containing all methods for peripheral on ''side''.&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;[[peripheral.call]](side, methodName, param1, param2, ...)&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 function call to peripheral located on ''side''. Return values match those of called method.&amp;lt;br /&amp;gt;'''Note:''' ''methodName'' is a string.&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;[[peripheral.wrap]](side)&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;Returns a handle to the peripheral located on ''side''. If assigned to a variable, it can be used to call all methods available from that peripheral, as if calling '''peripheral.call()''', e.g.:&amp;lt;br /&amp;gt;m = [[peripheral.wrap]](&amp;quot;left&amp;quot;)&amp;lt;br /&amp;gt;m.someMethod()&amp;lt;br /&amp;gt;''- is the same as -''&amp;lt;br /&amp;gt;[[peripheral.call]](&amp;quot;left&amp;quot;,&amp;quot;someMethod&amp;quot;)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;br /&gt;
&lt;br /&gt;
==Remote 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]], as well as all the peripherals you wish to connect, connecting all of them with Networking Cables. Then right click each of the wired modems. You should receive messages in your chat bar informing you of a successful connection. Don't forget to connect the [[Computer|computer]] too!&lt;br /&gt;
&lt;br /&gt;
Finally, you need to wrap the wired modem on your [[Computer|computer]] using the methods above. As well as those outlined on the [[Modem_(API)| Modem API]] page, the following additional functions will then become available to you, where ''p'' is the variable the modem is wrapped to:&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 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;p.getNamesRemote()&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;Returns the names of all connected peripherals. Peripheral names are the type of peripheral followed by an underscore and a unique number, e.g. ''&amp;quot;disk_0&amp;quot;''.&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;p.isPresentRemote(peripheral name)&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;Returns '''true''' if the specified peripheral is connected; '''false''' otherwise. &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;p.getTypeRemote(peripheral name)&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;Returns the type of the specified peripheral.&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;p.getMethodsRemote(peripheral name)&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;Returns a table of all the methods for the specified peripheral. &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;p.callRemote(peripheral name, peripheral method)&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;Calls the specified method for the specified peripheral.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&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>J15t98J</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=5209</id>
		<title>Peripheral (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=5209"/>
				<updated>2013-03-23T12:41:11Z</updated>
		
		<summary type="html">&lt;p&gt;J15t98J: Added tutorial for peripheral wrapping via networking cables.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|Remote peripheral wrapping via Cables isn't listed on this page.}}&lt;br /&gt;
The Peripheral API is for interacting with external [http://en.wikipedia.org/wiki/Peripheral peripherals], such as the [[Disk Drive]], the [[Advanced Monitor]] and [[Monitor]].&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Computer|Computers]] and [[Turtle|Turtles]] are also considered peripherals and you can interface two adjacent computers, although in a more limited fashion compared to [[Rednet (API)|rednet]]. Both Computers and Turtles provide the same methods: ''turnOn'', ''shutdown'', ''reboot'', ''getID''.&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;2&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;
Peripheral (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: 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;[[peripheral.isPresent]](side)&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;Returns '''true''' if a peripheral is present on ''side''.&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;[[peripheral.getType]](side)&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;Returns the type or peripheral present on ''side'', nothing returned if ''side'' is empty.&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;[[peripheral.getMethods]](side)&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;Returns a table containing all methods for peripheral on ''side''.&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;[[peripheral.call]](side, methodName, param1, param2, ...)&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 function call to peripheral located on ''side''. Return values match those of called method.&amp;lt;br /&amp;gt;'''Note:''' ''methodName'' is a string.&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;[[peripheral.wrap]](side)&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;Returns a handle to the peripheral located on ''side''. If assigned to a variable, it can be used to call all methods available from that peripheral, as if calling '''peripheral.call()''', e.g.:&amp;lt;br /&amp;gt;m = [[peripheral.wrap]](&amp;quot;left&amp;quot;)&amp;lt;br /&amp;gt;m.someMethod()&amp;lt;br /&amp;gt;''- is the same as -''&amp;lt;br /&amp;gt;[[peripheral.call]](&amp;quot;left&amp;quot;,&amp;quot;someMethod&amp;quot;)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;br /&gt;
&lt;br /&gt;
==Remote 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]], as well as all the peripherals you wish to connect, connecting all of them with Networking Cables. Then right click each of the wired modems. You should receive messages in your chat bar informing you of a successful connection. Don't forget to connect the [[Computer|computer]] too!&lt;br /&gt;
&lt;br /&gt;
Finally, you need to wrap the wired modem on your [[Computer|computer]] using the methods above. As well as those outlined on the [[Modem_(API)| Modem API]] page, the following additional functions will then become available to you, where ''p'' is the variable the modem is wrapped to:&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 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;p.getNamesRemote()&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;Returns the names of all connected peripherals. Peripheral names are the type of peripheral followed by an underscore and a unique number, e.g. ''&amp;quot;disk_0&amp;quot;''.&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;p.isPresentRemote(peripheral name)&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;Returns '''true''' if the specified peripheral is connected; '''false''' otherwise. &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;p.getTypeRemote(peripheral name)&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;Returns the type of the specified peripheral.&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;p.getMethodsRemote(peripheral name)&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;Returns a table of all the methods for the specified peripheral. &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;p.callRemote(peripheral name, peripheral method)&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;Calls the specified method for the specified peripheral.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&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>J15t98J</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5208</id>
		<title>Modem (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5208"/>
				<updated>2013-03-23T08:18:38Z</updated>
		
		<summary type="html">&lt;p&gt;J15t98J: Added isWireless() method&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;With the advent of ComputerCraft 1.5, the behavior of modems has changed somewhat drastically. Although the rednet api still has the same functionality, it is really just a wrapper for what is a completely different system underneath.&lt;br /&gt;
&lt;br /&gt;
The major change introduced to modems in this version of ComputerCraft is channels: Channels are essentially open networks which can be opened, closed, and listened on by any computer within range. To interact with channels, one must directly wrap the peripheral as opposed to the previous interaction with the rednet API.&lt;br /&gt;
&lt;br /&gt;
Here is a list of functions available from modems:&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;|Function&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|isOpen( [[int_(type)|int]] channel )&lt;br /&gt;
|Check to see if the specified channel is open&lt;br /&gt;
|-&lt;br /&gt;
|open( [[int_(type)|int]] channel )&lt;br /&gt;
|Opens the specified channel to allow for listening. The channel specified must be larger than 0 and less than 65535.&lt;br /&gt;
|-&lt;br /&gt;
|close( [[int_(type)|int]] channel )&lt;br /&gt;
|Closes an open channel to disallow listening&lt;br /&gt;
|-&lt;br /&gt;
|closeAll( )&lt;br /&gt;
|Closes all open channels&lt;br /&gt;
|-&lt;br /&gt;
|transmit( [[int_(type)|int]] channel, [[int_(type)|int]] replyChannel, [[string_(type)|string]] message )&lt;br /&gt;
|Transmits a message on the specified channel&lt;br /&gt;
|-&lt;br /&gt;
|isWireless( )&lt;br /&gt;
|Returns true if the modem is wireless; false if it is wired.&lt;br /&gt;
|}&lt;br /&gt;
==Sending Messages==&lt;br /&gt;
Sending messages is simple and does not require that you open any channels. Simply use the transmit function like so:&lt;br /&gt;
  &amp;lt;span&amp;gt;&lt;br /&gt;
  local modem = peripheral.wrap(&amp;quot;right&amp;quot;) --Wraps the modem on the right side.&lt;br /&gt;
  modem.transmit(3, 1, &amp;quot;Hello world!&amp;quot;)  &lt;br /&gt;
  &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What did that do? First I wrapped the peripheral in order to interact with it. Second, I used modem.transmit(channel, replyChannel, message) in order to send my message. In case you were wondering, the reply channel is captured by the listening computer and suggests which channel they should reply on.&lt;br /&gt;
&lt;br /&gt;
==Receiving Messages==&lt;br /&gt;
Receiving messages requires that you be familiar with events. As of this moment, there is no api which cuts out events from the process. Here is an example of how to receive messages:&lt;br /&gt;
  &amp;lt;span&amp;gt;&lt;br /&gt;
  local modem = peripheral.wrap(&amp;quot;left&amp;quot;)&lt;br /&gt;
  modem.open(3)--Open channel 3 so that we can listen on it&lt;br /&gt;
  local event, modemSide, senderChannel, &lt;br /&gt;
    replyChannel, message, senderDistance = os.pullEvent(&amp;quot;modem_message&amp;quot;)&lt;br /&gt;
  print(&amp;quot;I just received a message from: &amp;quot;..senderChannel)&lt;br /&gt;
  print(&amp;quot;I should apparently reply on: &amp;quot;..replyChannel)&lt;br /&gt;
  print(&amp;quot;The modem receiving this is located on the &amp;quot;..modemSide..&amp;quot; side&amp;quot;)&lt;br /&gt;
  print(&amp;quot;The message was: &amp;quot;..message)&lt;br /&gt;
  print(&amp;quot;The sender is: &amp;quot;..senderDistance..&amp;quot; blocks away from me.&amp;quot;)&lt;br /&gt;
  &amp;lt;/span&amp;gt;&lt;br /&gt;
So what did I do? Quite simply, I called os.pullEvent() with the string argument &amp;quot;modem_message&amp;quot;, which blocks all other events from being returned. When the &amp;quot;modem_message&amp;quot; event is captured, it returns the arguments: event, modemSide, senderChannel, replyChannel, message, senderDistance. I captured these and then printed them out.&lt;br /&gt;
&lt;br /&gt;
==Keep in Mind...==&lt;br /&gt;
* You can only open 128 channels at any given time.&lt;br /&gt;
* The max channel you can open is 65535.&lt;br /&gt;
* You can listen on more than one channel at a time. For example, if I have channel 3 and channel 5 open and somebody sends a message on channel 5, I will still receive it. If they send a message on channel 3, I will receive that.&lt;br /&gt;
* Sending messages does not require you to open any channels prior to sending it.&lt;br /&gt;
* If you aren't receiving a message when you think you should, check to make sure that you have opened the channel first!&lt;br /&gt;
* Modems and channels are not secure! If you are sending a message over rednet, it is available to any computer listening on the sent channel.&lt;/div&gt;</summary>
		<author><name>J15t98J</name></author>	</entry>

	</feed>