Sunday, August 16, 2026

Minecraft Commands: Complete Guide to Teleport, Gamerules, Give, Summon and Command Blocks

Minecraft Commands let players change the way they play by teleporting to locations, giving items, changing gameplay rules, summoning mobs, and creating automated systems. Commands can be useful in Survival worlds with cheats enabled, Creative builds, multiplayer servers, adventure maps, and custom game modes. In this guide, we will explain the most useful Minecraft Commands, including /teleport, /gamerule, /give, /summon, and command blocks. You will also learn how target selectors, coordinates, and command syntax work so you can start using commands without memorizing complicated code.

Minecraft Commands: How to Use Them

Minecraft Commands are instructions that the game executes when you enter them in chat or use them through a command block. Depending on the command, you can modify the world, control players and mobs, change gameplay rules, or create automated systems. Minecraft’s official command documentation includes commands for teleportation, items, entities, game rules, effects, blocks, time, weather, and more.

To use commands, type / in the chat box followed by the command. Minecraft provides autocomplete suggestions while you type, which makes it easier to find commands and their available arguments. You can also use /help to view available commands or /help <command> to see information about a specific command.

Some commands require cheats or the appropriate permissions. On multiplayer servers, your permissions can determine which commands you can use. In Bedrock Edition, commands such as /teleport, /give, /gamerule, and /summon require the relevant game permissions and cheats where specified by the command.

Minecraft Commands for Teleporting

The /teleport command, also available as /tp, lets you move yourself or other entities to a specific location. You can teleport to coordinates or, in supported situations, to another entity.

Here are some useful examples:

/teleport @s 100 64 100

This teleports yourself to the coordinates 100, 64, 100.

/tp @p 200 70 -50

This teleports the nearest player to the specified coordinates.

/tp Steve Alex

This can teleport Steve to Alex when the destination resolves to a single entity.

Minecraft uses X, Y, and Z coordinates to identify positions. X controls east-west movement, Y controls height, and Z controls north-south movement. You can also use ~ for relative coordinates. For example, ~ ~5 ~ means 5 blocks above your current position.

Minecraft Gamerules Explained

The /gamerule command changes specific gameplay settings. It is especially useful when you want to customize how a world behaves without changing the entire game mode. Minecraft Bedrock includes both Boolean gamerules, which use true or false, and integer-based gamerules.

Some useful examples include:

/gamerule keepinventory true

Keeps players’ inventory after they die, where supported by the edition and current game rules.

/gamerule dodaylightcycle false

Stops the normal day-night cycle.

/gamerule doweathercycle false

Stops the weather from changing naturally.

/gamerule commandblockoutput false

Prevents command block output from filling the chat in Bedrock Edition.

Available gamerules can vary between Minecraft Java Edition and Bedrock Edition, so check the autocomplete suggestions in your version before using a specific rule.

Minecraft Give Command

The /give command lets you add items directly to a player’s inventory. It is one of the easiest Minecraft Commands to learn and is useful for testing builds, Creative projects, maps, and custom gameplay.

The basic format is:

/give <player> <item> <amount>

For example:

/give @s diamond 64

This gives yourself 64 diamonds.

You can also give items to every player:

/give @a iron_sword

Or give yourself a specific amount of another item:

/give @s golden_apple 16

In Bedrock Edition, the official syntax supports a target, item name, optional amount, and additional arguments such as data and components.

Minecraft Summon Command

The /summon command creates an entity at your location or at specified coordinates. You can use it to spawn mobs for testing, build custom maps, create arenas, or set up command-based events.

The basic command is:

/summon minecraft:zombie

This summons a zombie near your current location.

You can also specify coordinates:

/summon minecraft:creeper 100 64 100

This attempts to summon a creeper at the specified position.

In Bedrock Edition, /summon supports additional options, including spawn positions, rotation, events, and name tags.

Because entity IDs and advanced summon syntax can differ between Java and Bedrock, use the game’s autocomplete feature when creating more complicated commands.

Minecraft Command Blocks Explained

Command blocks allow you to run commands without typing them into chat every time. They are particularly useful for adventure maps, minigames, teleport systems, automated events, and custom mechanics.

Minecraft’s official help documentation identifies 3 main command block types:

  • Impulse: Runs its command when activated.
  • Repeat: Repeatedly runs its command while powered.
  • Chain: Runs after another command block in the sequence executes.

You can obtain a command block with:

/give @s command_block

After placing it, enter a command into its interface and activate it using redstone or the appropriate command block settings.

For example, you could place this command inside a command block:

/tp @p 100 64 100

When activated, it teleports the nearest player to those coordinates.

Command blocks become much more powerful when you connect multiple blocks together. A chain can execute several commands in sequence, allowing you to create systems that would be difficult to perform manually.

Minecraft Target Selectors You Should Know

Target selectors make commands more flexible because they let you choose players or entities without typing their names.

SelectorWhat it does
@sSelects the command executor
@pSelects the nearest player
@aSelects all players
@eSelects all entities
@rSelects a random player

For example:

/give @a diamond 1

gives every player a diamond.

You can also combine selectors with conditions. For example:

/tp @a 100 64 100

teleports all players to the same location.

Target selectors are especially useful in command blocks because they allow the same command to work for different players without manually entering usernames. Minecraft’s command documentation describes targets as player names or target selectors and supports selector parameters for more advanced control.

Useful Minecraft Commands for Beginners

Once you understand the main commands, these are some other commands worth learning:

/gamemode creative

Changes the player’s game mode.

/time set day

Changes the time to day.

/weather clear

Changes the weather to clear.

/locate structure minecraft:stronghold

Finds the nearest stronghold in versions that support this syntax.

/setworldspawn

Sets the world spawn at your current location.

/kill @e[type=minecraft:zombie]

Targets zombie entities for removal, where the syntax is supported by the edition/version.

Minecraft’s official command guide lists teleportation, item distribution, weather, time, summoning, world spawn, locating structures, and several other commands among the most useful commands for players.

Minecraft Commands: Java vs Bedrock

The biggest thing beginners should remember is that Minecraft Java Edition and Bedrock Edition do not always use identical command syntax. The command names may be the same while arguments, entity IDs, item IDs, selector syntax, or advanced features differ.

For this reason, do not assume that a command found for Java Edition will work exactly the same way in Bedrock Edition.

The safest approach is to type the command in-game and use Minecraft’s autocomplete suggestions. You can also use /help followed by a command to check its available syntax in Bedrock Edition.

Minecraft Commands Tips for Beginners

If you are new to commands, start with simple commands such as /time, /weather, /give, and /teleport. Once you understand coordinates and target selectors, move on to /execute, /summon, /fill, and command blocks.

Keep these tips in mind:

  • Use autocomplete instead of memorizing every argument.
  • Test complicated commands in a backup world.
  • Check whether cheats and permissions are enabled.
  • Remember that Java and Bedrock syntax can differ.
  • Use ~ coordinates when you want positions relative to the command’s execution point.
  • Use target selectors when you want commands to work for multiple players or entities.

With these basics, Minecraft Commands become much easier to understand. Whether you want to teleport across the map, change gamerules, give yourself items, summon mobs, or build a complete command-block system, learning a few core commands is enough to get started.

Esports News