How To Code - Minecraft Edition

# Printing A Message

## Opening The Command Source

1. Press the Ⓣ key on your keyboard to open up the command source.

It's that simple!

## Printing

In your Command Window (CW), you should see a list of commands, the top one being /? .

To print out a message, first, click on the grey box at the bottom.

Now, type in /say and then your message. For example, if I wanted to say "Hello, World!" Then I would type this in.

```
/say Hello, World!

```

## Displaying Your Message

Simply press the ENTER key on your keyboard. This will exit you out of your CW, and will display the message you wrote after "/say" in a grey box. Congratulations!

# Say My Name, /say!

## Adding Names

Here are the things that you can put in to display a name:

Can Be Displayed:
 @e
 @p
 @r
 @s

If I wanted to say my own name (ExampleName) when typing in the CW, then I would then use the @s or @p command to say it like this:

```
/say My name is @s, everyone!

```

```
*execute command

```

```
My name is ExampleName, everyone!

```

Very handy indeed.

## Errors In @

**It's saying a different name AND mine.** Have you tried checking which @ command you're using?

**It's saying only a letter.** Is there an @ before the letter?

# /say A Rainbow

## The Special ALT Code

To choose a different colour to display your text, then hold down the ALT key, and while holding it, type in the following numbers into the keypad:

```
0167

```

This is going to display a symbol like this: §

These are COLOUR CODES. Here is the full list of colour codes you can display:

If I wanted Red Text saying "Hello, World!" Then here's the command: (The § is hidden in the final result.)

```
/say §4Hello, World!

```

Similarly, I could combine 4 of them to make a red bit, and then a blue bit, and then a bold black !.

```
/say §4Hello, §1World§0§L!

```

A red "Hello,", a blue "World" and a thick "!" in the shade of black.

# Using /fill

## The Co-ordinates (co)

Firstly, you'll have to have co enabled.

1. From the title screen, click "Play".
2. Press "Create A New World".
3. Find the cheats tab.
4. Enable "Show Coordinates" in cheats.
5. Press "Create World".
6. Up the top left, it should display "0 -60 0". These are your co!

When moving around, the co should change.

## Choosing a place

Go to the place where you want your block filled. Now, look at the co.

## Placing A Block

Open up your CW after reading the co. Now, type in the co twice after /fill. If I wanted to fill the co 3, 7, 4, then I would type in this:

```
/fill 3 7 4 3 7 4

```

Now choose from the list on the left of your CW of what block you want to fill, or type it in. I want to fill 3 7 4 with a redstone torch. I'd do this:

```
/fill 3 7 4 3 7 4 redstone_torch

```

***Remember! If there's a space, replace it with an \_. Now it should work.***

## The Tilde

Want your block to go somewhere else? Try the tilde. If I wanted my block to be where I'm at, but 5 blocks more in the X axis, then I'd use the tilde like so:

```
/fill ~5 ~ ~ ~5 ~ ~

```

***Remember! The order the co display in is X, Y, Z. Here it goes XYZXYZ.***

The Tilde indicates your XYZ position. If I added another number onto the end of the tilde indicating my X axis (maybe I'll use 5) then it would fill from my X axis + 5. If I did -5, then it would be my X axis - 5. If I did the number 3 on the Y axis' tilde, then the block would display 3 blocks above me. Simple!

## Line Of Blocks

If I wanted to fill a line of blocks, let's say from my Y to my Y+5, creating a 6-block pillar, then I'd do something like this:

```
/fill ~ ~ ~ ~ ~5 ~

```

***Remember! X = left + right, Y = up + down, and Z = forward + back.***

What's happening here is that the first set of 3 ~'s are saying my X, Y, and Z position. The second set (the one with the 5 in it) says my X, Y, and Z position, but the Y is 5 more blocks. It pretty much makes a block at my XYZ and one with the Y + 5, and then fills in the gap in between.