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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=5298</id>
		<title>Wireless Modem</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=5298"/>
				<updated>2013-04-09T14:02:01Z</updated>
		
		<summary type="html">&lt;p&gt;Zaptross: added note to top that modems can send via specific channels&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|The behaviour of Rednet has changed as of 1.5 - please consider updating this page with information. (Please don't add prerelease info!)}}&lt;br /&gt;
:''This page is for the Modem blocks. For the modem API, see [[Modem_(API)|Modem (API)]]''&lt;br /&gt;
{{Block&lt;br /&gt;
|name=Modem&lt;br /&gt;
|image=WirelessModem.png&lt;br /&gt;
|id=4094&lt;br /&gt;
|damage-value=1&lt;br /&gt;
|is-peripheral=Yes&lt;br /&gt;
|peripheral-api=Modem (API)&lt;br /&gt;
}}&lt;br /&gt;
Modems are blocks which can be used to wirelessly transfer data between [[Computer|computers]] and [[Turtle|turtles]], using the [[Rednet_(API)|Rednet API]] or the [[Modem_(API)|Modem API]].&lt;br /&gt;
To place a modem on a side of a computer, right-click to place the modem while sneaking.&lt;br /&gt;
&lt;br /&gt;
It is also possible to turn the modem on and off by typing &amp;quot;rednet.open ( side )&amp;quot; to open and &amp;quot;rednet.close ( side )&amp;quot; to close.&lt;br /&gt;
&lt;br /&gt;
Modems can send messages to other modems located up to 64 meters away, or 16 meters during a thunderstorm.&lt;br /&gt;
As of 1.4 Modem range is increased with higher altitudes. If there is no thunderstorm, the range will always be higher than 64, and at max altitude you would have a range of 384 meters.&lt;br /&gt;
&lt;br /&gt;
In 1.4 and 1.41 there is a miscalculation that causes the range to only be 381 meters at max altitude.&lt;br /&gt;
&lt;br /&gt;
As of the 1.5 update for ComputerCraft, Wireless Modems can send messages on specific channels.&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=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;
== Example (Modem API)==&lt;br /&gt;
* Place 2 computers and add modems to them by clicking the right mouse button while sneaking.&lt;br /&gt;
* Access them, and start Lua.&lt;br /&gt;
* Once Lua has started, wrap your modem using peripheral.wrap() (something like &amp;quot;modem = peripheral.wrap(&amp;quot;&amp;lt;side of modem&amp;gt;&amp;quot;)&lt;br /&gt;
* Type &amp;quot;[[modem_(API)|modem.open]] (&amp;lt;A modem port number, anything from 1 to 65535&amp;gt;)&amp;quot; on one computer.&lt;br /&gt;
* Check if there exists a connection: a dim, red light should be found on the modem.&lt;br /&gt;
* Now, type &amp;quot;[[modem_(API)|modem.transmit]] (&amp;lt;Same number as above&amp;gt;, &amp;lt;Also the same number&amp;gt;, 'Your message')&amp;quot; on the other computer. This should send your message to all computers connected.&lt;br /&gt;
* Opening the first computer should show the message written on the second computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Modem as a Peripheral==&lt;br /&gt;
To use a Modem as a peripheral, you need to either call a method directly using [[peripheral.call]](), or, wrap the modem using the [[Peripheral_(API)|Peripheral API]]. Wrapped modems provide all functions listed in the [[Modem_(API)|Modem API]].&lt;br /&gt;
&lt;br /&gt;
For this example, we have a Modem connected to the top of our [[Computer]], we are going to open channel 5:&lt;br /&gt;
&lt;br /&gt;
 -- Immediately invoke a method without wrapping&lt;br /&gt;
 peripheral.call(&amp;quot;top&amp;quot;, &amp;quot;open&amp;quot;,5)&lt;br /&gt;
&lt;br /&gt;
 -- You can also &amp;quot;wrap&amp;quot; the peripheral side to a variable:&lt;br /&gt;
 local modem = peripheral.wrap(&amp;quot;top&amp;quot;)&lt;br /&gt;
 modem.open(5)&lt;br /&gt;
&lt;br /&gt;
[[Category:Peripherals]]&lt;/div&gt;</summary>
		<author><name>Zaptross</name></author>	</entry>

	</feed>