FANDOM


Command Blocks are a useful way for automating commands, especially in situations where commands could become tedious, or the player is not there all the time to carry them out. Of course, you may not know how to use them. This page aims to help you understand the basic commands, as well as some of the more complex ones.

Using Command Blocks

Simple

Basic Commands

Parameters that the Command block uses are as follows:

  • @a - Targets all players on the map.
  • @p - Targets the player nearest to the command block.
  • @r - Targets a random player on the map.
  • @f - Targets the farthest player away from the command block.
/say

/say can be used in a way to give dialogue without using Books.

Examples
  • /say Welcome to the minecraft computer wiki server!

Using the parameters, one could do as follows:

Output: [@] Welcome to the minecraft computer wiki server!

  • /say Welcome, @p !

Output: [@] Welcome, <closest player>!

  • /say Welcome, @a !

Output: [@] Welcome, <all players>!

  • /say Welcome @r !

Output: [@] Welcome <random player>!

  • /say Welcome @f !

Output: [@] Welcome <farthest player>!

Complex

/summon commands

/summon is a command that will summon any mob in the game.

Example

/summon Zombie

That will summon one zombie at the origin of the command block.

To spawn at a specific spot:

/summon Zombie <x> <y> <z>


How to summon mobs with equipment

To do this, a more complex code is required.

Example

/summon Zombie <tool ID>

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.