Minecraft Blogs / Tutorial

A Guide To Command Blocks For Beginners!

  • 4,257 views, 3 today
  • 2
  • 1
  • 12
303_MakeAWish's Avatar 303_MakeAWish
Level 21 : Expert Engineer
5
A Guide To Command Blocks For Beginners
This is a guide to Command Blocks for beginners!
There will be no advanced content in this tutorial as it is for beginners!

Part 0: Obtaining Method
Obtaining command blocks is pretty simple however,
there is no crafting recipe and is useless in survival!
To get it simply type in the command
"/Give {Username-Here} minecraft:command_block
A Guide To Command Blocks For Beginners!
Part 1: How Does It Work?
Pretty simple stuff,
right click a Command Block and enter the command
you wish for it to do.
E.G.
If i typed /summon Pig ~ ~5 ~(pig must be written Pig not pig or PIG),
when the Command Block is powered a pig will spawn!
A Guide To Command Blocks For Beginners!
Part 2.1
A guide to the basics of /summon!
This is the layout of /summon,
/summon <Entity Name> [X] [Y] [Z] [Data Tag]
The data tag is pretty complicated so that won't be in-depth,
so first off, capitals matter when summoning,
/summon pig or /summon PIG simply just won't work,
you have to do /summon Pig for a pig to spawn!
Here are some of the names to summon entity's
Pig
Cow
EnderDragon
Pigman
FallingSand (Complicated)
EnderCrystal (Amazing)
Creeper
Zombie
Skeleton
WitherBoss
Etc.
This is the only part i will be talking about the
Data Tag
Well here is some of the things you can do with it,
{Invincible:1} Self explanitory,
{Riding:{id:Minecart}} Spawns the mob in a minecart!
{Riding:{id:item}} Spawns the mob riding a stone block!
If you want multiple data tags you must do
{FakeTagExample:1,TagEndExample}
That , is important!
A Guide To Command Blocks For Beginners!
Part 2.2
A basic guide to /me, /say and /tell.
I don't really know the use of these except map making
but i will cover them anyway!
Well they are pretty simple, normally typing /me will bring up
* {User who did /me} {What they typed after /me}
however with command blocks they have no username!
So it comes out * @ {text you set it to}!
/say works simlarly and if you do /say
Your username is written [UserName]
instead of <username>!
A command block gives us
[@] {Whatever you set it to after /say}!
Now last and slightly more confusing but not at all really,
/tell!
So first of /tell is basically the vanilla /msg on a server!
Now for /tell to work on a command block you must either write in the 
to msg either
@p (Nearest Player)
 @r  (Random Player)
@a (All Players).

I will keep updating this blog until everything basic is covered!     
Tags

Create an account or sign in to comment.

1
01/22/2018 12:05 am
Level 52 : Grandmaster Imposter
Jewelman
Jewelman's Avatar
When do you plan to update it?
1
04/02/2015 4:42 am
Level 1 : New Explorer
The Minecraft Expert
The Minecraft Expert's Avatar
Note that in 1.7.2 they added the command block minecart which is basically a command block on rails. In other words , a moving command block. Also the command /summon PrimedTnt will spawn a tnt block that instantly explodes. No countdown.
1
08/11/2014 2:00 am
Level 21 : Expert Engineer
303_MakeAWish
303_MakeAWish's Avatar
Sry that i haven't updated in a while or checked my comments recently
1
08/10/2014 12:15 pm
Level 21 : Expert Pony
RageLokiCat
RageLokiCat's Avatar
Uhuh.  So here's a test, what command would you use to spawn an ender crystal riding a zombie horse with speed 5? Hmmm?
1
08/10/2014 6:11 pm
Level 30 : Artisan Robot
TheEnderCat5
TheEnderCat5's Avatar
/summon EnderCrystal ~ ~ ~ {Riding:{id:EntityHorse,Type:3,ActiveEffects:1 999 5}} 

I might have gotten that completely wrong but I'm pretty sure I was close.
1
08/24/2014 12:06 am
Level 1 : New Miner
PileOfPixels
PileOfPixels's Avatar
There are never spaces in data tags, didn't you know that?
1
08/10/2014 7:26 pm
Level 21 : Expert Pony
RageLokiCat
RageLokiCat's Avatar
Lol I was testing him, but nice job! The active effectcs part is a fair amount off, but you got closer then many would have. I'll be honest, I'm not sure of the exact syntax either, but I know active effects needs a pair of {}, then [] for every effect, in which you define id:, duration:, amplifier: Still, congrats!
1
08/10/2014 7:38 pm
Level 30 : Artisan Robot
TheEnderCat5
TheEnderCat5's Avatar
Ohh yeah, I wasn't quite sure how that worked, when you do /effect it's like this:

/effect PLAYERNAME type duration amplifier 

so I expected it to be the same in a data tag :P
1
08/10/2014 7:50 pm
Level 21 : Expert Pony
RageLokiCat
RageLokiCat's Avatar
Good thinking, but NBT data doesn't really support spaces outside of pre-defined strings, like names or lores.
1
08/10/2014 7:53 pm
Level 30 : Artisan Robot
TheEnderCat5
TheEnderCat5's Avatar
Good point, but I wish Jeb would make it like /effect, just to make it simpler for mapmakers like me ;)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome