The Command Block is a block that can only be obtained by typing the cheat "/give <playername> command_block <number of items>" in the chat with cheats on. You can only place and/or change the designated command if you are a OPed player in creative mode. These blocks are primarily used in Adventure Maps and Servers. These blocks are not obtainable other than /give. Their main purpose is to execute a command when activated with a Redstone signal. The command block was added in 1.4.
Command Blocks cannot be destroyed by any reasonable sized explosion and cannot be mined in Survival Mode. However, blue Wither skulls still damage and break them.
Sending at players:
There are four types of addressing for command blocks:
- @p: sends command at nearest active player
- @r: sends command at random active player
- @a: sends command at all active players
- @f: sends command at farthest active player
This is due to the potential for players to lock out a server using these commands.
Scoreboards can be used to create teams, display stats such as number of kills, and much more besides.