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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User_talk:Rihlsul&amp;diff=5228</id>
		<title>User talk:Rihlsul</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User_talk:Rihlsul&amp;diff=5228"/>
				<updated>2013-03-27T03:05:14Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: Created page with &amp;quot;Feel free to leave me a note here.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to leave me a note here.&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Rihlsul&amp;diff=5227</id>
		<title>User:Rihlsul</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Rihlsul&amp;diff=5227"/>
				<updated>2013-03-27T03:04:48Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Heading|Background}}&lt;br /&gt;
Some stuff about my programming knowledge and other relevant hacky bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Heading|Programs}}&lt;br /&gt;
Coming soon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Heading|Videos}}&lt;br /&gt;
Coming soon.&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User_talk:AfterLifeLochie&amp;diff=5226</id>
		<title>User talk:AfterLifeLochie</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User_talk:AfterLifeLochie&amp;diff=5226"/>
				<updated>2013-03-27T03:04:17Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: (forgot to sign my note)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Another test. Ignore this.&lt;br /&gt;
&lt;br /&gt;
== Why did you revert my changes on the function and example templates? ==&lt;br /&gt;
&lt;br /&gt;
The 24px ones were really small and blurry. --[[Special:Contributions/67.189.72.22|67.189.72.22]] 13:17, 3 December 2012 (MSK)&lt;br /&gt;
* The templates are optimized for screen-readers at present, and are only meant to be a complimentary object. In addition, the files themselves are actually blurry and aren't rendered in high-enough definition. If and when I get FTP access, I can setup a better system than the current one, but the most important point; ''please don't edit live production templates without using a sandbox''. The effects of a template bungle could be a potential eye-sore. ''[[User:AfterLifeLochie|AfterLifeLochie]] 13:22, 3 December 2012 (MSK)''&lt;br /&gt;
&lt;br /&gt;
== APT Minecraft Tekkit window. ==&lt;br /&gt;
&lt;br /&gt;
Lochie, I was viewing your new forum thread on ComputerCraft APT and realised you were running Tekkit. I am glad that not all of the Mod Admins are so hardcoming on the Technic Team. Yours, [[User:Jonjon1234|Jonjon1234]] 15:51, 14 December 2012 (MSK)&lt;br /&gt;
&lt;br /&gt;
== Program Listing? ==&lt;br /&gt;
&lt;br /&gt;
Question for you:  As a rookie to CC, I find it really hard to track down APIs or Programs in the forums for such.  Sites like Turtlescripts have spawned trying to be a better browseable index of programs.&lt;br /&gt;
&lt;br /&gt;
Would it make sense to have a Program Catalog on the site?  I was thinking relatively lightweight, a table with the name, author, summary, current supported version, and a link to the Programs forum thread for it.  Possibly have different sections for the major groupings, such as API, OS, Turtles, etc.  I can do a mock-up version of what I'm describing if I'm describing poorly.  Having posted a couple programs (and more to come), I'd have no issue creating a forum thread, then adding it to a Wiki page.  I'd prefer the visibility. [[User:Rihlsul|Rihlsul]] 07:04, 27 March 2013 (MSK)&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User_talk:AfterLifeLochie&amp;diff=5225</id>
		<title>User talk:AfterLifeLochie</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User_talk:AfterLifeLochie&amp;diff=5225"/>
				<updated>2013-03-27T03:03:46Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: /* Program Listing? */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Another test. Ignore this.&lt;br /&gt;
&lt;br /&gt;
== Why did you revert my changes on the function and example templates? ==&lt;br /&gt;
&lt;br /&gt;
The 24px ones were really small and blurry. --[[Special:Contributions/67.189.72.22|67.189.72.22]] 13:17, 3 December 2012 (MSK)&lt;br /&gt;
* The templates are optimized for screen-readers at present, and are only meant to be a complimentary object. In addition, the files themselves are actually blurry and aren't rendered in high-enough definition. If and when I get FTP access, I can setup a better system than the current one, but the most important point; ''please don't edit live production templates without using a sandbox''. The effects of a template bungle could be a potential eye-sore. ''[[User:AfterLifeLochie|AfterLifeLochie]] 13:22, 3 December 2012 (MSK)''&lt;br /&gt;
&lt;br /&gt;
== APT Minecraft Tekkit window. ==&lt;br /&gt;
&lt;br /&gt;
Lochie, I was viewing your new forum thread on ComputerCraft APT and realised you were running Tekkit. I am glad that not all of the Mod Admins are so hardcoming on the Technic Team. Yours, [[User:Jonjon1234|Jonjon1234]] 15:51, 14 December 2012 (MSK)&lt;br /&gt;
&lt;br /&gt;
== Program Listing? ==&lt;br /&gt;
&lt;br /&gt;
Question for you:  As a rookie to CC, I find it really hard to track down APIs or Programs in the forums for such.  Sites like Turtlescripts have spawned trying to be a better browseable index of programs.&lt;br /&gt;
&lt;br /&gt;
Would it make sense to have a Program Catalog on the site?  I was thinking relatively lightweight, a table with the name, author, summary, current supported version, and a link to the Programs forum thread for it.  Possibly have different sections for the major groupings, such as API, OS, Turtles, etc.  I can do a mock-up version of what I'm describing if I'm describing poorly.  Having posted a couple programs (and more to come), I'd have no issue creating a forum thread, then adding it to a Wiki page.  I'd prefer the visibility.&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Rednet_(API)&amp;diff=5224</id>
		<title>Rednet (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Rednet_(API)&amp;diff=5224"/>
				<updated>2013-03-27T02:07:29Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: Changes to isOpen - description was wrong, was missing link to already created page for it.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{msgbox&lt;br /&gt;
|title=Please Note&lt;br /&gt;
|text=As of ComputerCraft 1.5, the Rednet API is just a wrapper for [[Modem_(API)|modems and channels]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The Rednet API allows computers to communicate between themselves without using redstone wires. In order to send and receive data, a [[modem]] is required. The data is received immediately after sending it, but only by computers within a certain range. That range depends on the altitude of the sending computer increasing with higher altitudes to a max of 384.&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;
Rednet (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;[[rednet.open]](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;Tells the computer that the side can be used for networking.&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;[[rednet.close]](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;Tells the computer that the side can no longer be used for networking.&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;[[rednet.announce]]()&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;Broadcasts an empty rednet message.&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;[[rednet.send]](receiverID, message)&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 message to the computer using the opened sides. The receiver ID is the ID (number, not string) of the computer you're sending the message to. ID as nil will do the same as a broadcast. The message must be a string to send across rednet, if you are wanting to send a table see [[textutils.serialize]]&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;[[rednet.broadcast]](message)&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 the message to ALL connected and open computers.&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;[[rednet.receive]](timeout)&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;Waits until it received a rednet message or &amp;lt;var&amp;gt;timeout&amp;lt;/var&amp;gt; has passed. Leave args empty to wait for a message forever.&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;[[rednet.isOpen]](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 the wireless modem is open.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Events==&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;|Event name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Parameters&lt;br /&gt;
|-&lt;br /&gt;
|rednet_message&lt;br /&gt;
|Fired when a rednet message is received (can be used as alternative for rednet.receive())&lt;br /&gt;
|senderId, message, distance&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
Before the creation of the in-game wireless networking API, the term &amp;quot;Rednet&amp;quot; referred to a system created by one of the ComputerCraft users based on bundled cables from a popular Minecraft mod - RedPower. It also allowed communication between computers, but the data was transferred slowly - every bit was converted to redstone signal, that lasted about 0,1 seconds. On the release of ComputerCraft 1.3, the system became useless, as the wireless networking was officially implemented to the mod.&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5223</id>
		<title>Modem (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5223"/>
				<updated>2013-03-27T02:02:46Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: Added to the correct Category&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Category:User_Created_Peripherals&amp;diff=5207</id>
		<title>Category:User Created Peripherals</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Category:User_Created_Peripherals&amp;diff=5207"/>
				<updated>2013-03-21T14:16:31Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: Just adding this Category to Peripherals so it's more readily find-able.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This category lists notable peripherals created by the ComputerCraft community.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lists]][[Category:Peripherals]]&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.setAlarm&amp;diff=5179</id>
		<title>Os.setAlarm</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.setAlarm&amp;diff=5179"/>
				<updated>2013-03-04T17:43:53Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: /* Explanation */  fix function call&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
 |name=os.setAlarm&lt;br /&gt;
 |args=[[float (type)|float]] time&lt;br /&gt;
 |api=OS&lt;br /&gt;
 |returns=[[Table_(type)|Table]] alarmID&lt;br /&gt;
 |addon=ComputerCraft&lt;br /&gt;
 |desc=Adds an alarm which will fire an &amp;quot;alarm&amp;quot; event at the specified Minecraft world time. The returned table acts as a unique ID for the alarm.&lt;br /&gt;
 |examples=&lt;br /&gt;
}}&lt;br /&gt;
== Explanation ==&lt;br /&gt;
([http://www.computercraft.info/forums2/index.php?/topic/5599-ossetalarm/page__view__findpost__p__46168 Forum Post] by jag_e_nummer_ett:)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    --(( Basic format ))--&lt;br /&gt;
    os.setAlarm(time)&lt;br /&gt;
    --(( Will timeout when it's 18 o'clock in the world ))--&lt;br /&gt;
    os.setAlarm(18.00)&lt;br /&gt;
    --(( Will timeout 2 (in-game) hours later ))--&lt;br /&gt;
    os.setAlarm(os.time()+2)&lt;br /&gt;
    --(( Basic event layout ))--&lt;br /&gt;
    local ev,p1 = os.pullEvent(&amp;quot;alarm&amp;quot;)&lt;br /&gt;
    --(( Event output ))--&lt;br /&gt;
    Name: alarm&lt;br /&gt;
    Parameter 1: A table that acts like it's unique ID&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
([http://www.computercraft.info/forums2/index.php?/topic/5599-ossetalarm/page__view__findpost__p__46167 Forum Post] by MysticT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    local alarm = os.startAlarm(5)&lt;br /&gt;
    while true do&lt;br /&gt;
        local evt, arg = os.pullEvent(&amp;quot;alarm&amp;quot;)&lt;br /&gt;
        if arg == alarm then&lt;br /&gt;
            print(&amp;quot;It's 5:00, wake up!&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.setAlarm&amp;diff=5178</id>
		<title>Os.setAlarm</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.setAlarm&amp;diff=5178"/>
				<updated>2013-03-04T17:26:55Z</updated>
		
		<summary type="html">&lt;p&gt;Rihlsul: Added some explanation/example from a forum post, since usage was unclear at best.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
 |name=os.setAlarm&lt;br /&gt;
 |args=[[float (type)|float]] time&lt;br /&gt;
 |api=OS&lt;br /&gt;
 |returns=[[Table_(type)|Table]] alarmID&lt;br /&gt;
 |addon=ComputerCraft&lt;br /&gt;
 |desc=Adds an alarm which will fire an &amp;quot;alarm&amp;quot; event at the specified Minecraft world time. The returned table acts as a unique ID for the alarm.&lt;br /&gt;
 |examples=&lt;br /&gt;
}}&lt;br /&gt;
== Explanation ==&lt;br /&gt;
([http://www.computercraft.info/forums2/index.php?/topic/5599-ossetalarm/page__view__findpost__p__46168 Forum Post] by jag_e_nummer_ett:)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    --(( Basic format ))--&lt;br /&gt;
    os.setAlarm(time)&lt;br /&gt;
    --(( Will timeout when it's 18 o'clock in the world ))--&lt;br /&gt;
    os.setAlarm(18.00)&lt;br /&gt;
    --(( Will timeout 2 (in-game) hours later ))--&lt;br /&gt;
    os.setAlarm(os.clock()+2)&lt;br /&gt;
    --(( Basic event layout ))--&lt;br /&gt;
    local ev,p1 = os.pullEvent(&amp;quot;alarm&amp;quot;)&lt;br /&gt;
    --(( Event output ))--&lt;br /&gt;
    Name: alarm&lt;br /&gt;
    Parameter 1: A table that acts like it's unique ID&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
([http://www.computercraft.info/forums2/index.php?/topic/5599-ossetalarm/page__view__findpost__p__46167 Forum Post] by MysticT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    local alarm = os.startAlarm(5)&lt;br /&gt;
    while true do&lt;br /&gt;
        local evt, arg = os.pullEvent(&amp;quot;alarm&amp;quot;)&lt;br /&gt;
        if arg == alarm then&lt;br /&gt;
            print(&amp;quot;It's 5:00, wake up!&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Core_Functions]]&lt;/div&gt;</summary>
		<author><name>Rihlsul</name></author>	</entry>

	</feed>