Difference between revisions of "Monitor"

From ComputerCraft Wiki
Jump to: navigation, search
(rollback again.)
Line 1: Line 1:
 
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. It is useful for displaying information at a server spawn, showing a program on the monitor, and even showing the status of a IC2 reactor! (provided you have [[CcSensors]] installed)
 
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. It is useful for displaying information at a server spawn, showing a program on the monitor, and even showing the status of a IC2 reactor! (provided you have [[CcSensors]] installed)
  
===KFC===
+
===Recipe===
 
{{Crafting grid
 
{{Crafting grid
 
  |A1=stone |B1=stone      |C1=stone
 
  |A1=stone |B1=stone      |C1=stone
Line 10: Line 10:
 
[[Category:Blocks]]
 
[[Category:Blocks]]
  
===MCDONALDS===
+
===Using the Monitor===
 
The command used to control a monitor: monitor [top, bottom, left, right, front or back] [the name of the command to display]
 
The command used to control a monitor: monitor [top, bottom, left, right, front or back] [the name of the command to display]
  
 
So, in this case, if you typed "hello" in the name of the program part, the monitor would display "Hello World!".
 
So, in this case, if you typed "hello" in the name of the program part, the monitor would display "Hello World!".
  
===BURGER KING===
+
===Using the Monitor within the Lua interface===
 
The monitor can be summoned through a command or through coding with the Lua command.
 
The monitor can be summoned through a command or through coding with the Lua command.
  
Line 25: Line 25:
  
 
[[Shell (API)|shell]].[[Shell.run|run]]("monitor", "right", "hello")</tt>
 
[[Shell (API)|shell]].[[Shell.run|run]]("monitor", "right", "hello")</tt>
 
 
Rhythm is a dancer
 
It's a source companion
 
People feel it everywhere
 
Lift your hands and voices
 
Free your mind and join us
 
You can feel it in the air
 
 
Oh it's a passion
 
Oh you can feel it yeah
 
Oh it's a passion
 
Ohh
 
 
Check this out
 
Let the rhythm ride you, guide you
 
Sneak inside you set your mind to move
 
To its pulsation, bass vibrations
 
Sense sensation, pause is not implicit
 
Mind and body must be free too
 
Please take it all way, nothing to lose
 
Everything to win
 
 
Let it control you hold you mold you
 
Not the old, the new, touch it, taste it
 
Free your soul let it invade you
 
Gotto to be what you wanna
 
If the groove don't get you the rhyme flow's gonna
 
I'm serious as cancer when I say
 
"Rhythm is a dancer"
 
 
Rhythm is a dancer
 
It's a source companion
 
People feel it everywhere
 
Lift your hands and voices
 
Free your mind and join us
 
You can feel it in the air
 
 
Oh it's a passion
 
Oh you can feel it yeah
 
Oh it's a passion
 
Ohh
 
 
I'm serious as cancer when I say
 
"Rhythm is a dancer"
 
 
Rhythm is a dancer
 
It's a source companion
 
People feel it everywhere
 
Lift your hands and voices
 
Free your mind and join us
 
You can feel it in the air
 
 
Oh it's a passion
 
Oh you can feel it yeah
 
Oh it's a passion
 
Ohh
 
 
Rhythm is a dancer
 
It's a source companion
 
People feel it everywhere
 
Lift your hands and voices
 
Free your mind and join us
 
You can feel it in the air
 
 
Oh it's a passion
 
Oh you can feel it yeah
 
Oh it's a passion
 
Ohh
 
 
Check this out
 
Let the rhythm ride you, guide you
 
Sneak inside you set your mind to move
 
To its pulsation, bass vibrations
 
Sense sensation, pause is not implicit
 
Mind and body must be free too
 
Please take it all way, nothing to lose
 
Everything to win
 
 
Let it control you hold you mold you
 
Not the old, the new, touch it, taste it
 
Free your soul let it invade you
 
Gotto to be what you wanna
 
If the groove don't get you the rhyme flow's gonna
 
I'm serious as cancer when I say
 
"Rhythm is a dancer"
 
 
Rhythm is a dancer
 
It's a source companion
 
People feel it everywhere
 
Lift your hands and voices
 
Free your mind and join us
 
You can feel it in the air
 
 
Oh it's a passion
 
Oh you can feel it yeah
 
Oh it's a passion
 
Ohh
 

Revision as of 21:00, 18 July 2012

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. It is useful for displaying information at a server spawn, showing a program on the monitor, and even showing the status of a IC2 reactor! (provided you have CcSensors installed)

Recipe

stone

stone

stone

stone

glass_pane

stone

stone

stone

stone


Using the Monitor

The command used to control a monitor: monitor [top, bottom, left, right, front or back] [the name of the command to display]

So, in this case, if you typed "hello" in the name of the program part, the monitor would display "Hello World!".

Using the Monitor within the Lua interface

The monitor can be summoned through a command or through coding with the Lua command.

The command used to control a monitor within the Lua interface: shell.run("monitor [top, bottom, left, right, front or back] [the name of the command to display]")

For example, here is a way of summoning the monitor through a command:

print("Hello Monitor!")

shell.run("monitor", "right", "hello")