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

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Monitor&amp;diff=5918</id>
		<title>Monitor</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Monitor&amp;diff=5918"/>
				<updated>2013-08-01T18:53:23Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: Changed CCSensors reference to OpenCCSensors, seeing as OCCS is up to date.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Block&lt;br /&gt;
|name=Monitor&lt;br /&gt;
|image=Iso_Monitor.png&lt;br /&gt;
|id=4094&lt;br /&gt;
|damage-value=0&lt;br /&gt;
|is-peripheral=Yes&lt;br /&gt;
|peripheral-api=Term (API)&lt;br /&gt;
}}&lt;br /&gt;
The '''Monitor''' is a block that can display text on its front side. When several screen blocks are placed on the same plane, it will form a single monitor. The maximum size of a single monitor is 8 blocks wide and 6 blocks tall, and must be placed to be shaped as a rectangle, else it will separate into multiple parts. It is useful for displaying information at a server spawn, showing a program on the monitor, and even showing the status of an IC2 reactor! (provided you have [[OpenCCSensors]] installed)&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=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;
==Redirecting Programs to a Monitor==&lt;br /&gt;
[[File:Computer_w_DiskDrive_w_Monitor.png|frame|428x241px|right|A 2x2 [[Monitor]], connected to a [[Computer]], with a [[Disk Drive]] connected.]]&lt;br /&gt;
From the CraftOS shell, type &amp;lt;tt&amp;gt;monitor [top|bottom|left|right|front|back] [a-program-name]&amp;lt;/tt&amp;gt;. For example, typing &amp;lt;tt&amp;gt;monitor top hello&amp;lt;/tt&amp;gt; would show &amp;quot;Hello world.&amp;quot; on the top Monitor.&lt;br /&gt;
&lt;br /&gt;
==Monitor as a Peripheral==&lt;br /&gt;
To use a Monitor, you need to either call a method directly using [[peripheral.call]](), or, wrap the monitor using the [[Peripheral_(API)|Peripheral API]]. Wrapped monitors provide all functions listed in the [[Term_(API)|Term API]], with the exception of [[Monitor.setTextScale|monitor.setTextScale(size)]], which is native to monitors only.&lt;br /&gt;
&lt;br /&gt;
For this example, we have a Monitor connected to the top of our [[Computer]]:&lt;br /&gt;
&lt;br /&gt;
 -- Immediately invoke a method without wrapping&lt;br /&gt;
 peripheral.call(&amp;quot;top&amp;quot;, &amp;quot;write&amp;quot;, &amp;quot;Hello World!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
 -- You can also &amp;quot;wrap&amp;quot; the peripheral side to a variable:&lt;br /&gt;
 local monitor = peripheral.wrap(&amp;quot;top&amp;quot;)&lt;br /&gt;
 monitor.write(&amp;quot;Hello World!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
{{BlocksItemsList}}&lt;br /&gt;
[[Category:Blocks]][[Category:Peripherals]]&lt;/div&gt;</summary>
		<author><name>Sora the Hedgehog</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Monitor.setTextScale&amp;diff=5917</id>
		<title>Monitor.setTextScale</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Monitor.setTextScale&amp;diff=5917"/>
				<updated>2013-08-01T18:51:33Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: Changed the pointed-to API to Term, removed TLC notice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=monitor.setTextScale&lt;br /&gt;
|args={{type|number}} scale&lt;br /&gt;
|api=Term&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sets the size of all text on the monitor. scale can be any multiple of 0.5, starting at 0.5 and ending at 5.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sets the monitor's text scale to 2.&lt;br /&gt;
|code=monitor.setTextScale(2)&lt;br /&gt;
|output=none&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>Sora the Hedgehog</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Term_(API)&amp;diff=5916</id>
		<title>Term (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term_(API)&amp;diff=5916"/>
				<updated>2013-08-01T18:50:17Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: Added monitor.setTextScale() to the list, seeing as it's techincally a term API function.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Terminal API provides functions for writing text to the terminal and monitors, and drawing ASCII graphics.&lt;br /&gt;
&lt;br /&gt;
Methods in ''italics'' are available only to [[Advanced Computer|Advanced Computers]] and [[Advanced Monitor|Advanced Monitors]].&lt;br /&gt;
Methods in '''bold''' are available only to [[Monitor|Monitors]].&lt;br /&gt;
&lt;br /&gt;
{{API table|Term|image=Grid disk.png|2=&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.write]]({{type|string}} text)&lt;br /&gt;
|Writes ''text'' to the screen.|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.clear]]()&lt;br /&gt;
|Clears the entire screen}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.clearLine]]()&lt;br /&gt;
|Clears the line the cursor is on|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.getCursorPos]]()&lt;br /&gt;
|Returns two arguments containing the x and the y position of the cursor.}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.setCursorPos]]({{type|number}} x, {{type|number}} y)&lt;br /&gt;
|Sets the cursor's position.|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.setCursorBlink]]({{type|boolean}} bool)&lt;br /&gt;
|Disables the blinking or turns it on.}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.isColor]]()&lt;br /&gt;
|Returns if the computer supports color. (Used to determine whether or not an [[Advanced Computer]] is being used)|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.getSize]]()&lt;br /&gt;
|Returns two arguments containing the x and the y values stating the size of the screen. (Good for if you're making something to be compatible with both [[Turtle]]s and [[Computer]]s.)}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.scroll]]({{type|number}} n)&lt;br /&gt;
|Scrolls the terminal ''n'' lines.|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.redirect]](target)&lt;br /&gt;
|Redirects terminal output to a monitor or other redirect target. (Use [[peripheral.wrap]] to acquire a monitor &amp;quot;object&amp;quot;.)}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|[[term.restore]]()&lt;br /&gt;
|Restores terminal output to the previous target.|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|''[[term.setTextColor]]({{type|number}} [[Colors (API)|color]])''&lt;br /&gt;
|Sets the text color of the terminal. Available only to [[Advanced Computer|Advanced Computers]] and [[Advanced Monitor]]s.}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|''[[term.setBackgroundColor]]({{type|number}} [[Colors (API)#Colors|color]])''&lt;br /&gt;
|Sets the background color of the terminal. Available only to [[Advanced Computer|Advanced Computers]] and [[Advanced Monitor]]s.|odd}}&lt;br /&gt;
&lt;br /&gt;
{{API table/row|'''[[monitor.setTextScale]]({{type|number}} scale)'''&lt;br /&gt;
|Sets the text scale on a [[Monitor]].}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Sora the Hedgehog</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Tutorials&amp;diff=5291</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Tutorials&amp;diff=5291"/>
				<updated>2013-04-05T20:28:54Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: /* External Tutorials/Guides */ Added PIL as a guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;As some tutorials might not be listed here, you can also browse the [[:Category:Tutorials|tutorials category]].&lt;br /&gt;
&lt;br /&gt;
== Basic Tutorials ==&lt;br /&gt;
These tutorials are designed to be used in the order shown, each tutorial will build on the previous ones.&lt;br /&gt;
=== Introduction to Coding ===&lt;br /&gt;
*[[Hello_World_Tutorial|Hello World!]]&lt;br /&gt;
*[[Variables]]&lt;br /&gt;
*[[Conditional_statements|If, Then, Else]]&lt;br /&gt;
*[[Function (type)|Function]]&lt;br /&gt;
*[[Loops]]&lt;br /&gt;
*[[Tables]]&lt;br /&gt;
&lt;br /&gt;
== Example Programs ==&lt;br /&gt;
These pages guide you through programs created by other users. They are not necessarily well-coded, but can be useful as a loose guide.&lt;br /&gt;
&lt;br /&gt;
=== Programming &amp;amp; Wiring ===&lt;br /&gt;
*[[Guess_The_Number_(tutorial)|Guess the Number]]&lt;br /&gt;
*[[Making_a_Password_Protected_Door|Password Protected Door]]&lt;br /&gt;
*[[Making_an_API_(tutorial)|Programming an API]]&lt;br /&gt;
*[[Startup|Running script automatically at boot with Startup]]&lt;br /&gt;
*[[Raw key events| Detecting specific keys (such as the arrow keys)]]&lt;br /&gt;
*[[Receiving a rednet message through os.pullEvent()|Receiving a rednet message through os.pullEvent()]]&lt;br /&gt;
*[[Calculator Tutorial]]&lt;br /&gt;
*[[Rednet Tutorial]].&lt;br /&gt;
&lt;br /&gt;
=== Turtles ===&lt;br /&gt;
The nice little robots that do the hard work for you.&lt;br /&gt;
*[[Turtle_Tutorial|Turtles!]]&lt;br /&gt;
*[[Turtle_Lumberjack_(tutorial)|Turtle Lumberjack]]&lt;br /&gt;
*[[Advanced_Turtle_Lumberjack_(tutorial)|Advanced Turtle Lumberjack]]&lt;br /&gt;
*[[Cobble_Generator|Cobblestone Generator]]&lt;br /&gt;
*[[Turtle_Stairbuilder_(tutorial)|Turtle Stairbuilder]]&lt;br /&gt;
&lt;br /&gt;
== External Tutorials/Guides ==&lt;br /&gt;
*[http://www.minecraftforum.net/topic/907632-mod-tutorial-computercraft-v12-very-basic-lua-tutorial-updated-1112/page__p__11556908#entry11556908 Onionnion's Basic Lua Tutorial]&lt;br /&gt;
*[http://www.computercraft.info/forums2/index.php?/topic/1516-ospullevent-what-is-it-and-how-is-it-useful/page__view__findpost__p__11156 Onionnion's os.pullEvent() Guide]&lt;br /&gt;
*[http://wiki.roblox.com/ Roblox Wiki (Has tutorials on Lua)]&lt;br /&gt;
*[http://www.lua.org/pil/contents.html Programming in Lua, a general purpose guidebook written by a programmer that writes the Lua interpreter]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Sora the Hedgehog</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Login_with_Roaming_Profiles&amp;diff=5290</id>
		<title>Talk:Login with Roaming Profiles</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Login_with_Roaming_Profiles&amp;diff=5290"/>
				<updated>2013-04-05T20:20:29Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Does not work. Not authorised&lt;br /&gt;
&lt;br /&gt;
== Not the best tutorial ==&lt;br /&gt;
&lt;br /&gt;
And by that, I mean that this program isn't conceptually simple enough.&lt;br /&gt;
We should make room for other tutorials that are simpler to understand.&lt;br /&gt;
Hopefully that will stop the flood of lock programs, as that is the&lt;br /&gt;
only tutorial on the wiki that is simple enough for new programmers to&lt;br /&gt;
follow.&lt;br /&gt;
&lt;br /&gt;
[[User:Sora the Hedgehog|Sora the Hedgehog]] 00:20, 6 April 2013 (MSK)&lt;br /&gt;
&lt;br /&gt;
== Should be posted in &amp;quot;Programs&amp;quot; instead? ==&lt;br /&gt;
&lt;br /&gt;
My argument is that this does not belong on the wiki. My reason is: we have forums for this. That simple.&lt;br /&gt;
&lt;br /&gt;
Just wanted to make a quick note here - &lt;br /&gt;
&lt;br /&gt;
if validSender then&lt;br /&gt;
  for i,v in ipairs(users) do&lt;br /&gt;
   if message == v then&lt;br /&gt;
    password = passwords[i]&lt;br /&gt;
    valid = true&lt;br /&gt;
   else&lt;br /&gt;
    valid = false&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
That section of code is why it doesn't work - after the 'valid = true', there needs to be a 'break' or it will continue to iterate.&lt;br /&gt;
&lt;br /&gt;
if validSender then&lt;br /&gt;
  for i,v in ipairs(users) do&lt;br /&gt;
   if message == v then&lt;br /&gt;
    password = passwords[i]&lt;br /&gt;
    valid = true&lt;br /&gt;
    break&lt;br /&gt;
   else&lt;br /&gt;
    valid = false&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;/div&gt;</summary>
		<author><name>Sora the Hedgehog</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=5287</id>
		<title>Wireless Modem</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=5287"/>
				<updated>2013-04-05T20:11:18Z</updated>
		
		<summary type="html">&lt;p&gt;Sora the Hedgehog: Changed the first example to use the Modem API rather than the Rednet API&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;
== 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>Sora the Hedgehog</name></author>	</entry>

	</feed>