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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=ComputerCraft_Wiki:Autoconfirmed_users&amp;diff=1177</id>
		<title>ComputerCraft Wiki:Autoconfirmed users</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=ComputerCraft_Wiki:Autoconfirmed_users&amp;diff=1177"/>
				<updated>2012-03-24T16:48:05Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: Created the Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a Group containing Users, that confirmed their E-Mail Address&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=OS_(API)&amp;diff=1176</id>
		<title>OS (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=OS_(API)&amp;diff=1176"/>
				<updated>2012-03-24T16:46:40Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: added Links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
''You may be looking for alternative OS's for ComputerCraft. If so, go to the [[list of oses|list of OSes]].''&lt;br /&gt;
&lt;br /&gt;
The Operating System API allows for interfacing with the Lua based Operating System itself.&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;
|[[os.version()]]&lt;br /&gt;
|Returns the version of the OS the computer is running.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.computerID()]]&lt;br /&gt;
|Returns the unique ID of this computer.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.run( environment, programpath, arguments )]]&lt;br /&gt;
|An advanced way of starting programs. A started program will have a given&lt;br /&gt;
Environment table which determines what functions it has available, as well as&lt;br /&gt;
any variables it will be able to access by default. You may prefer to use the&lt;br /&gt;
[[Shell (API)]] unless you need to do something special.&lt;br /&gt;
|-&lt;br /&gt;
|[[#api|os.loadAPI( name )]]&lt;br /&gt;
|Loads a lua script as an API, making it available to all programs.&lt;br /&gt;
|-&lt;br /&gt;
|[[#api|os.unloadAPI( name )]]&lt;br /&gt;
|Unloads a previously loaded API.&lt;br /&gt;
|-&lt;br /&gt;
|[[#pullEvent|os.pullEvent()]]&lt;br /&gt;
|Blocks until the computer has detected an event, then returns the event.&lt;br /&gt;
|-&lt;br /&gt;
|[[#pullEvent|os.pullEventRaw()]]&lt;br /&gt;
|Advanced version of pullEvent().&lt;br /&gt;
|-&lt;br /&gt;
|[[os.queueEvent()]]&lt;br /&gt;
|&amp;lt;no description given&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[os.clock()]]&lt;br /&gt;
|Returns CPU time.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.startTimer( timeout )]]&lt;br /&gt;
|Queues an event to be triggered after a number of seconds.&lt;br /&gt;
The ID of the timer is returned from this function to differentiate multiple&lt;br /&gt;
timers. Timers are one-shot, once they have fired an event you will need to&lt;br /&gt;
start another one if you need a recurring timer.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.sleep( timeout )]]&lt;br /&gt;
|Makes the system wait a number of seconds before continuing in the program.&lt;br /&gt;
May also be used as simply &amp;quot;sleep( timeout )&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.time()]]&lt;br /&gt;
|Returns the current Minecraft world time.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.setAlarm( time )]]&lt;br /&gt;
|Queues an event to be triggered at the specific Minecraft world time.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.shutdown()]]&lt;br /&gt;
|Turns off the computer.&lt;br /&gt;
|-&lt;br /&gt;
|[[os.reboot()]]&lt;br /&gt;
|Reboots the computer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div id=&amp;quot;api&amp;quot;&amp;gt;API&amp;lt;/div&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
API are programs which are loaded in to the OS itself, and expose functions&lt;br /&gt;
which other programs may use. The stock [[Category:APIs|APIs that ship with&lt;br /&gt;
ComputerCraft]] are loaded in this way, and may be replaced by a computer's&lt;br /&gt;
user or programs.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div id=&amp;quot;pullEvent&amp;quot;&amp;gt;os.pullEvent()&amp;lt;/div&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
os.pullEvent() causes the current program to pause, retrieving the next event&lt;br /&gt;
from the computer's queue of events. If there is no event to read, then the&lt;br /&gt;
program will stall until such an event becomes available. Note that if a&lt;br /&gt;
program has not attempted to pull an event in the past ten seconds, it will&lt;br /&gt;
be forcefully terminated to prevent CPU waste in SMP environments.&lt;br /&gt;
&lt;br /&gt;
pullEvent returns the name of the event that was read, as well as up to&lt;br /&gt;
five parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
local event, p1, p2, p3, p4, p5 = os.pullEvent()&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
os.pullEvent() is usually run inside a 'while true do' loop.&lt;br /&gt;
&lt;br /&gt;
An advanced version of this method &amp;lt;code&amp;gt;os.pullEventRaw&amp;lt;/code&amp;gt; bypasses the&lt;br /&gt;
normal handling of events from the OS. You may use this to act on the&lt;br /&gt;
&amp;quot;Terminate&amp;quot; event (triggered when holding Ctrl-T) for custom termination logic.&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Rednet.broadcast&amp;diff=1175</id>
		<title>Rednet.broadcast</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Rednet.broadcast&amp;diff=1175"/>
				<updated>2012-03-24T16:43:57Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: Created the Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=rednet.broadcast&lt;br /&gt;
|args=[[string]] message&lt;br /&gt;
|returns=[[boolean]] success code. True if a message has been sent, false if not. &amp;quot;true&amp;quot; does not guarantee, that any computer was reachable!&lt;br /&gt;
|api=rednet&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a message to all Computer in Range. (see [[rednet.send( receiverID, message )]] and [[rednet.receive( timeout )]].&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sends a Message to all Computers (assuming a modem is attached and open)&lt;br /&gt;
|code=rednet.broadcast(&amp;quot;ComputerCraft&amp;quot;)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Rednet.send&amp;diff=1174</id>
		<title>Rednet.send</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Rednet.send&amp;diff=1174"/>
				<updated>2012-03-24T16:40:56Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: Created the Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=rednet.send&lt;br /&gt;
|args=[[int]] receiverID, [[string]] message&lt;br /&gt;
|returns=[[boolean]] success code. True if a message has been sent, false if not. &amp;quot;true&amp;quot; does not guarantee, that the destination was reachable!&lt;br /&gt;
|api=rednet&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a message to a Computer. (see [[rednet.broadcast( message )]] and [[rednet.receive( timeout )]]. To get the id from a computer see [[os.computerID()]].&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sends a Message to the Computer with the ID 22 (assuming a modem is attached and open)&lt;br /&gt;
|code=rednet.send(22,&amp;quot;ComputerCraft&amp;quot;)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1173</id>
		<title>Os.computerID</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1173"/>
				<updated>2012-03-24T16:33:20Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=os.computerID&lt;br /&gt;
|returns=the ID of the Computer&lt;br /&gt;
|api=os&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=returns the ID of the computer this command is executed on.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=prints the Computer ID&lt;br /&gt;
|code=term.write(os.computerID())&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1172</id>
		<title>Os.computerID</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1172"/>
				<updated>2012-03-24T16:33:05Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=os.computerID()&lt;br /&gt;
|returns=the ID of the Computer&lt;br /&gt;
|api=os&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=returns the ID of the computer this command is executed on.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=prints the Computer ID&lt;br /&gt;
|code=term.write(os.computerID())&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1171</id>
		<title>Os.computerID</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.computerID&amp;diff=1171"/>
				<updated>2012-03-24T16:32:42Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: Created the Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=os.computerID()&lt;br /&gt;
|args=none&lt;br /&gt;
|returns=the ID of the Computer&lt;br /&gt;
|api=os&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=returns the ID of the computer this command is executed on.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=prints the Computer ID&lt;br /&gt;
|code=term.write(os.computerID())&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Rednet.receive&amp;diff=1170</id>
		<title>Rednet.receive</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Rednet.receive&amp;diff=1170"/>
				<updated>2012-03-24T16:29:01Z</updated>
		
		<summary type="html">&lt;p&gt;AyrA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=rednet.receive( timeout )&lt;br /&gt;
|args=A number representing the seconds to wait or leave empty to wait unlimited&lt;br /&gt;
|returns=a tuple where the first value is the sending computers id and the second the message string&lt;br /&gt;
|api=rednet&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Waits till timeout or another computer send a message to this computer. (see [[rednet.broadcast( message )]] and [[rednet.send( receiverID, message )]]. To get the id from a computer see  [[os.computerID()]]. In case a Timeout occurs the return id and message are set to nil&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=waits unlimited till someone sends a message to this computer and displays it&lt;br /&gt;
|code=senderId, message = rednet.receive()term.write(message)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>AyrA</name></author>	</entry>

	</feed>