How to do it in single player. Operator Commands in Minecraft

Commands (or codes) allow you to change the Minecraft game world or even other players. A command block is an element in the game that stores a specific command. When the block is activated, the command is triggered. This allows you to create fun toys, handy tools, and even complex, exciting maps.

Steps

Part 1

Accessing Command Blocks

    Open Minecraft on your computer (Windows or Mac). Command blocks are available in the PC version of the game (they are not available in Minecraft Pocket Edition or in Minecraft for game consoles).

    Enter a world where you can open the console. Command blocks are elements in the game that provide access to the Minecraft console. They are powerful tools that can change the entire game - so they are only available in certain circumstances:

    • On multi-user servers, command blocks can only be used by server operators. You need to ask the operator to give you access to command blocks, or .
    • In a single-player game, activate codes (if you did not do so when creating the world). To do this, open the menu, select “Open on local network”, check the “Activate codes” box and click “Create a world”. This will last for one game session, but you can repeat the process if you want to add more command blocks.
  1. Switch to Creative mode. This is the only mode in which you can create command blocks. Use the following command to achieve this:

    • Press "T" to open the console, or press "/" to open the console and automatically enter a forward slash (/) at the command line.
    • Type "/gamemode c" (no quotes hereafter) and press Enter to enter Creative mode.
    • Once you've finished creating command blocks, enter "/gamemode s" to enter Survival mode or enter "/gamemode a" to enter Adventure mode.
  2. Create command blocks. Open the console (press "T") and enter the command "/give your_minecraft_username minecraft:command_block 64"

    • Please note that when entering your username, the letters are case sensitive.
    • If nothing happens, update Minecraft to version 1.4 (or later). By updating the game to the latest version, you will have access to all commands.
    • You can replace the number "64" with any number representing the number of blocks. 64 is the complete set of command blocks.

    Part 2

    Using Command Blocks
    1. Install the command block. In your inventory, look for the command blocks you created. These are brown cubes with gray control panels on each side. Place one command block on the ground as you would with other items.

    2. Open the command block interface. Go to the command block and right-click on it. A pop-up window with a text field will open.

      • If nothing happens, the command blocks are most likely blocked on the multiplayer server. A user with access to the server.properties file must open this file and set the "enable-command-block" option to "true" and the "op-permission-level" option to "2" (or higher).
    3. Enter the command. Type a command in the command block text box, and then click Done to save the command to the block. Below are examples of some commands, but first, experiment with the "summon Sheep" command.

      • To see a list of commands, open a console (not a command block) and type “/help.”
      • Unlike the console, you do not need to enter a forward slash (/) in a command block text window.
    4. Activate the block using red stone. Connect the red stone to the command block and place the pressure plate on the red stone. Step on the pressure plate to activate the red stone and a sheep should appear next to the block. This will happen when any player or mob activates a red stone.

      • This works the same as a normal redstone activation. You can replace the pressure plate with a button, lever, or other activation device. You can even place the button directly on the command block.
      • Any player can activate a command block, but only a player with access permission can change the command.
    5. Learn the special syntax. For the most part, the code in command blocks is similar to the commands in a regular console. If you are not familiar with the console, skip to the next section. If you already know how to use console commands, understand these additional options:

      • @p - Targets the player closest to the command block (no matter how far away they are).
      • @r – aimed at a random player.
      • @a – targets every player, including you.
      • @e – targets every element, i.e. players, objects, enemies and animals. Be careful with this setting.
      • You can use these options wherever you enter the name of a player, object, enemy, or animal.
    6. Modify the syntax for more control (if you want). You can create additional specific commands by adding modifiers after @p, @r, @a, @e. Such modifiers look like [(argument)=(value)]. There are many arguments and values ​​available. The full list can be found on the Internet, but here are a few examples:

      • Command with modifier @r will have an effect on a random sheep.
      • Command with modifier @e will have an effect on any object (player, mob) in the “Creativity” mode. The "m" argument stands for Mode and the "c" argument stands for Creativity.
      • Symbol "!" reverses the specified value. For example, @a will have an effect on any player, Not part of a team called Commando (teams only exist on special maps created by players).
    7. Use the Tab key for help. If you know a command but are not sure how to use it, press the Tab key to open help for that command. Press the Tab key a second time to scroll through the list of options.

      • For example, go back to the command to call a sheep and remove the word "Sheep". Press the Tab key to view a list of players or mobs that can be summoned.

    Part 3

    Examples of command blocks
    1. Create a teleportation block. In the command block, enter the command “tp @p x y z”, where instead of x, y, z, substitute the corresponding coordinates of the teleportation point (for example, “tp @p 0 64 0”). When someone activates this block, the player closest to them will disappear and appear at the specified coordinates.

      • Press F3 to display the coordinates.
      • You can replace "@p" with another parameter. If you enter a username, that user will be teleported, even if someone else activates the block. If you enter "@r", a random player will be teleported.

Minecraft, developed by Swede Markus Person, also known to fans of the game as Notch, back in 2009, today has more than 46 million users and has firmly entered the ranking of the most popular games even at the beta testing stage. This game, in addition to the computer, is supported by gaming and mobile platforms. We invite you to take a short journey with us into the world of this universe and find out all the commands in Minecraft - which are available for players and administrators.

A little about the game

You can talk about all the possibilities for quite a long time, without ever repeating yourself. And this is not at all surprising, given the endless amount of possibilities that this game provides. Even if you are part of that tiny percentage of people who have never played it, you still heard about it from friends or read about it on the Internet.


The graphics of the game are quite simple and look like a lot of square blocks of not the highest resolution. To an unbiased look, this has an undeniable advantage, because you don’t need to worry about compatibility with the video card or processor of your PC. Moreover, if you have a “slow-witted” one from the nineties lying around somewhere, then you can easily install Minecraft on it.



But among the disadvantages we can safely highlight the absolute impossibility of tearing ourselves away from it. Minecraft will completely absorb your attention. So be prepared for the fact that if you decide to just get acquainted with the game, you will find yourself so captivated that you won’t even notice the 4-5 hours that have flown by.


“What’s so exciting about it?” you ask. The answer is very simple and even somewhat banal. There is simply nothing in this world that could limit the user’s imagination or actions, as well as the movements of the selected character. Quite the opposite: when the game starts, you will find yourself in a randomly created world. And it is in it that the hero will need to survive and develop. All sorts of twists and turns await him, from hunger to protection from monsters.



Pretty soon the second level will open in front of you. And this is where the most interesting and exciting things begin, since you will have the opportunity to feel like a true creator, craftsman or brave discoverer. The world will be huge and multifaceted, both basic construction or crafting and extreme exploration of underground caves will be possible. Moreover, neither you nor your character, as mentioned above, are limited by any plot or given line of development of the game - there is absolute freedom of choice and there are no boundaries. To summarize, we can only say one thing: if you haven’t played Minecraft yet, you simply must test it!

Teams in Minecraft

Commands in the game allow you to improve its functionality significantly and open up many new opportunities. You can enter them either through the console or directly in the chat itself. By the way, new versions of Minecraft have a function that allows you to see all available commands. To do this, just enter the symbol / in the chat and then press tab.



The currently existing teams in the game can be divided into the following groups and subgroups, which we will consider below in more detail and provide a list of them with a description:


1. Teams for the single version of the game, intended for so-called singles.

3. Region management commands (private codes).


4. Game server commands for:


  • ordinary users;
  • VIP accounts;
  • GOLD - players;
  • moderators.

5. Spawn commands.


Commands for Minecraft players

  • me. Show users your message.
  • tell<сообщение>,w<сообщение>. Used if you need to send any private message to a specific user without allowing others to read it.
  • kill. This command will help kill the hero when he is stuck somewhere in the texture and cannot get out.
  • seed. A very convenient command that allows you to find out the grain of the world in which your character is currently located.

Commands for administrators in Minecraft

  • clear [object number] [additional data]. Cleans the selected user's equipment.
  • debug Start/stop setup mode.
  • defaultgamemode. Setting the beginner mode.
  • difficulty. Selecting the difficulty level.
  • enchant [level]. Enchant an item to a specified level.
  • gamemode [target]. Replacing the mode from creative - c\1 to adventure - a\2, or survival - s\0.
  • gamerule [value]. Change of basic dogmas.
  • give [number] [extra. information]. Issuing several missing items to the user.
  • say. Pink is the color of your correspondence.
  • spawnpoint [target] [x] [y] [z]. Setting the resurrection site at a given location.
  • time set. Replacement day/night.
  • time add. Increasing the existing timer.
  • toggledownfall. Turn on/off precipitation.
  • tp. Teleportation according to specified parameters.
  • weather code Changing weather conditions.
  • xp. Adding a specified amount of experience to a specific user.
  • publish. Access to the whole world via the network.
  • ban [name]. Blocking a user on Minecraft servers.
  • ban-ip. Sending a user to a block via an IP address.
  • pardon. Unbanning a previously blocked user.
  • pardon-ip. Removing a block via IP address.
  • banlist. Opens a list of users who have received a ban.
  • list. Opens a list of players for users who are online.
  • op. Assignment of operator status.
  • deop. Deprives the user of operator status.
  • kick [name]. “Kick” a specific user from the server.
  • save-all. Saving all changes made on the server.
  • save-on. Automatically saved in the server.
  • save-off. Prohibition of automatic saving.
  • stop. Used to shut down the server.

Commands for playing on a Minecraft server

Basic set for casual players

  • /help. Provides assistance in using codes.
  • /sethome. Designating a specific location as the player's home.
  • /home. Move to the location that was specified before.
  • /who or /list. Opens a complete list of users who are online at the moment.
  • /spawn. Instantly move to the place where the character is resurrected.
  • /m. Sending a message to any user.
  • /r. Used to reply to the message that arrived last.
  • /mail read. Reading all incoming emails.
  • /mail clear. Complete cleaning of letters from mail.
  • /pay. Used to send a specified amount to the user.

Teams for VIP players

  • /hat. Moves a block from the hands to the character's head.
  • /colorme list. Shows the entire possible color palette for a nickname.
  • /colorme<цвет>. Replacing the existing nickname color with another one.

Commands for GOLD players

  • /mhome<название>. Creating a teleport to the house specified by the command;
  • /msethome<название>. Installation of a specific house under a given name;
  • /mdeletehome<название>. Removing a specific house by specifying its name;
  • /mlisthomes. Used to view a list of all houses.

Territory management

  • /region claim. Saving a designated area using a specific name.
  • //hpos1. Setting the starting point at specified coordinates.
  • //hpos2. Used to set the next point.
  • /region addowner. Allows you to add users to the list of territory owners.
  • /region addmember. Adding users to the list of region users.
  • /region removeowner. Removing a user from the list of hosts.
  • /region removemember. Removing any player from the roster.
  • //expand. Expansion of the territory according to the specified parameters.
  • //contract. Reducing the territory in a given direction.
  • /region flag. Installation of the banner.

Spawn command

  • /spawner. It is used when there is a need to summon some kind of mob that is needed right now. To do this, simply enter the code, followed by a space and the name\name of the specific mob. For example, spawner skeleton, spawner spider, spawner zombie, and so on down the list.

We hope that the commands provided will help make playing Minecraft more comfortable and convenient for you. Feel like a real wizard, easily overcoming all possible obstacles and difficulties. Leave comments and share with friends. Don't forget to rate the article! Thank you!

Video

We are waiting for your comments, feel free to write!

  • Main constituent element
    • text : A string representing the text that will be directly displayed. Please note that selectors will not be translated into player names; use instead selector. "\n" is used to break to a new line.
    • translate : The translation ID of the text that will be translated into the player's language. The identifiers are located in the language files of the game or resource pack. If the identifier is not in the translation file, the text recorded in this identifier will be displayed. Ignored if already present text.
    • with : List of text components used translate.
      • The number of the element in the list corresponds to the number of the %s argument in the translation string. That is, the first element of the list corresponds to %1$s in the translation string. For example: /tellraw @a ("translate":"<%2$s>%1$s","with":[("translate":"I want to see %s!","with":[("text":"honey","color":"gold")])," Bear"]) will display in chat " <Медведь>I want to see honey "
    • score : The player's score in the task. Will display an empty line if the player is not yet being tracked in this task. Ignored if already present text or translate.
      • name : The name of the player whose score will be displayed. Selectors can be used. If "*" is specified, then the player for whom the text is displayed will have his own score displayed. For example, /tellraw @a ("score":("name":"*","objective":"obj")) will show each player their own score in the "obj" task.
      • objective : Name of the task whose score will be displayed.
      • value : Optional. When used, will display the specified value regardless of what it actually is.
    • selector : A string containing a selector (@p , @a , @r , @e or @s ) and optionally the conditions for it. Unlike text, selector will be translated into the creature's name. If the selector found more than one entity, it will be displayed as Name1 and Name2 or Name1, Name2, Name3 and Name4. Clicking LMB on a player's name, displayed by the /tellraw command, will enter /msg into the chat Player name. Pressing ⇧ Shift + LMB on a player's name will enter it into the chat line. Pressing ⇧ Shift + LMB on an entity name will enter its UUID into the chat line. Ignored if already present text, translate or score.
    • keybind : A string representing the key required to perform a specific action. For example, key.inventory will display "E" until the player changes the inventory key.
    • extra : List of extra elements.
      • A list of elements in the same format as the initial JSON object. Note that all properties of this object are inherited by child elements. That is, child elements will retain the same formatting and events until they are overwritten.
    • color : The color of the displayed text. Possible values: "black", "dark_blue", "dark_green", "dark_aqua", "dark_red", "dark_purple", "gold", "gray", "dark_gray", "blue", "green", "aqua" , "red", "light_purple", "yellow", "white" and "reset" (resets the color of the ancestor elements). Technically, "bold", "underline", "italic", "strikethrough", and "obfuscated" are also possible, but it is better to use the tags below.
    • bold : Makes the text bold. Default value: "false".
    • italic : Makes the text italic. Default value: "false".
    • underlined : Makes the text underlined. Default value: "false".
    • strikethrough : Makes the text strikethrough. Default value: "false".
    • obfuscated : Causes the characters in the text to constantly change. Default value: "false".
    • insertion : When a player clicks on text with ⇧ Shift + LMB, the string of that element will be inserted into the chat. This will not affect previously written text.
    • clickEvent: Performs some action when the player clicks on the text.
      • action : The action that is performed when clicked.
        • open_url: Opens value as a link in the player's browser.
        • open_file: Opens value like a file on your computer. Only used in messages generated by the game (for example, when taking a screenshot).
        • run_command: Executes value as if the player himself entered it in the chat. This can also be a command, but it will not work if the player does not have enough rights to execute it.
        • change_page: Redirects to the page specified in value, if it exists. Can only be used in completed books.
        • suggest_command: Inserts value to the player's chat; in this case, all previously written text disappears.
      • value : URL, text, or book page number used action. Note that commands must be preceded by a forward slash (/).
    • hoverEvent : Shows a tooltip when hovering over text.
      • action : Tooltip type.
        • show_text Shows text in JSON format.
        • show_item: Shows a tooltip of the item, which may also contain NBT tags.
        • show_entity: Shows the entity name and, if possible, its type and UUID.
      • value : Possible values ​​for this argument depend on the selected action.
        • show_text: Can be either just a string or a JSON object with the same formatting as the main one.
        • show_item: A string containing the item's NBT data.
        • show_entity: A compound string with the keys "type", "name" and "id" (must be a UUID, but actually accepts any string).

Material from Playzone: Minecraft

Minecraft has a full command line interface (hereinafter - console), which allows the user to give specific commands to be executed by entering them from the keyboard. Commands can be typed in game chat (default is T or / to open chat immediately with the / character entered), then the command must be preceded by a forward slash (/). Commands can also be executed from the server console; in this case, the slash is not needed.

In addition, with 1.4.2 it is possible to write any console command into a command block, which will allow you to execute it when receiving a redstone signal.

Pressing Tab ↹ in chat will autocomplete a command and show all available options if autocompletion is ambiguous. So pressing Tab ↹ while typing / will show all available commands.

Teams

Required parameters are surrounded<угловыми скобками>, and optional ones - [square], brackets are not used when entering. The parameters that need to be substituted when entering the command are highlighted italics. Alternative arguments are separated by a vertical bar |.

Teams for players

List of commands for players without server operator privileges.

Team Description
me <message> Similar to the /me command in IRC and Jabber clients. The command sends a third-person message to the player: “* Nickname action text" Can be used to indicate a player's specific status ("*Player explores cave").
tell <player> <message>
w <player> <message>
Sends a private message to another player. Used on servers to write something to another player without others seeing.
kill Deals 1000 damage to the player, killing him. Useful if the player is lost, stuck, or starving (if the player can easily find things after death). Works in Creative mode (after preview 12w16a). Also, after using the chat, the message “Ouch. That look like it hurt."
seed Brings out the grain of the world. Introduced in version 12w19a.

Commands for operators only

These commands can only be used by server operators using game chat while on the server, or from the server console. When entering a command from the game chat, the prefix “/” is required.

These commands can be used in a single player game if cheat codes were enabled when creating the world.

The note: Regular players on the server will see the commands that were entered by the operator in the chat log.

Team Description
clear <target> [object number] [Additional information] Completely clears the specified player's inventory or only removes the specified objects from it.
debug Starts a new debugging profiling session or stops the current one if it is running. If a session is running, this is detected by characteristic lags while working with the console and creating a file with the results in the folder debug after stopping. The team was added at 12w27a.
defaultgamemode Sets the default game mode. This means that new players who have just joined will play in this game mode. The command is also available in single player, but is only useful in multiplayer. survival = s = 0, creative = c = 1, adventure = a = 2. This command was added in 12w22a.
difficulty <0 | 1 | 2 | 3> Sets difficulty: 0 - peaceful, 1 - easy, 2 - normal, 3 - difficult. This command was added in 12w32a.
enchant <target> <EID> [level] Enchant an item the player is holding based on its effect ID. Incompatible and impossible enchantments cannot be obtained. This command was added in 1.4.4 Pre-release.
gamemode [target] Changes the game mode for a specific player. Survival (survival, s or 0), Creativity (creative, c or 1), Adventure (adventure, a or 2). If the player's nickname is not specified, the command will change the game mode for the one who entered it. For the command to work, the player must be online. Note: this command is the very first in the list of cheat codes. To quickly type it, press / and Tab ↹.
gamerule <rule> [meaning] Regulates several basic parameters (rules). The value can be true or false, if no value is specified, the current state of the rule will be displayed. List:
  • doFireTick - if false, the fire does not spread, does not destroy blocks, and does not die out.
  • doMobLoot - if false, mobs do not drop drops (experience still drops).
  • doMobSpawning - if false, mobs cannot spawn.
  • doTileDrops - if false, objects do not drop when blocks are destroyed.
  • keepInventory - if true, the player's inventory is saved upon death.
  • mobGriefing - if false, mobs cannot destroy blocks (disables creeper explosions and the ability of Endangerers to pick up blocks).
  • commandBlockOutput - if false, the command block does not output anything to the chat when commands are executed.
give <target> <object number> [quantity] [Additional Information] Gives the player a certain item/block in the specified quantity according to data numbering. For example, if you enter /give John 4, it will give the player with the nickname John 1 block of cobblestone, /give John 35 64 11 will give a full stack of blue wool, /give John 278 1 1000 will give a diamond pickaxe damaged by 1000 units, and /give John 373 10 8193 will give you 10 vials of regeneration potion.
help [page | team]
? [page | team]
Lists all available console commands. The list is divided into pages, so the command can take a page number as an argument. You can also display help for a specific command. Note: Some commands are not displayed.
publish Provides access to the world via a local network. This command was added in 12w24a.
say <message> Shows a message in pink to all players on the server.
spawnpoint [target] [x] [y] [z] Sets the spawn point for the player. If the player is not specified, it is executed for the one who typed the command. If coordinates are not specified, the spawn point is set to the current position.
time set<number| day | night> Sets the time of day. Parameter number can take integer values ​​in the range from 0 to 24000, where 0 is dawn, 6000 noon, 12000 sunset and 18000 midnight (i.e. the hours are divided in half). day is equivalent to 0 (dawn) and night - 12500 (sunset).
time add<number> Adds the specified value to the current time of day. Parameter number can take non-negative integer values.
toggledownfall Precipitation switch.
tp <goal1> <goal2> Teleports the first player to the second, that is, "player1" to "player2"
tp <target> <x> <y> <z> Teleports the player to the specified x, y, z coordinates. The y value must be greater than 0. Relative coordinates can be used, for example /tp John ~10 70 ~-16 will move the John player to a height of 70, +10 in X and -16 in Z.
weather <time> Sets the weather for a specific time, specified in seconds. This command was added in 12w32a.
xp <quantity> <target> Gives the specified player a certain number of experience points, valid values ​​from 0 to 5000. If you enter L after the number, the specified number of levels will be added. In addition, levels can be lowered, for example -10L will reduce the player's level by 10.

Multiplayer only commands

These commands are similar to the previous group, but they can only be used on the server.

Team Description
ban <player> [cause] Blocks the player's nickname, adding him to the server's blacklist. Blocking removes the player's nickname from the white list.
ban-ip <ip address> Blocks all connections from a specific IP address.
banlist Displays a list of blocked players (blacklist). To display a list of blocked IP addresses, you need to enter an additional parameter: banlist ips
deop <target> Removes operator privileges from the player.
kick <target> [cause] Kicks the specified player from the server.
list Displays a list of all players connected to the server. Same as pressing Tab ↹
op <target> Gives the specified player operator privileges.
pardon <nickname> Removes the player's nickname from the blacklist, which again gives him the ability to connect to the server.
pardon-ip <ip address> Removes the specified IP address from the blacklist.
save-all Forces the server to write all changes in the game world to the hard drive.
save-off Disables the server's ability to write game world files to the hard drive.
save-on Allows the server to save game world files automatically. By default this option is enabled.
stop Shuts down the server normally.
whitelist <nickname> Adds or removes a player with a specific nickname to the whitelist.
whitelist list Displays all players in the white list.
whitelist Enables/disables the use of a white list for the server. Server operators will always be able to connect, regardless of whether their nicknames are on the white list.
whitelist reload Reloads the whitelist, that is, updates it according to the file white-list.txt on the local hard drive (can be used when white-list.txt is modified by third-party programs).

Commands for the command block only

These commands cannot be executed in chat or in the server console, only in the command block.

In which a long-awaited innovation was added - command blocks.

Using command blocks, you can set specific commands that can apply both to the entire server and to a random player.

Important to know: Commands can only be set to create a game world and only in creative mode. Command blocks do not work in Survival mode.

Many players do not know or understand how to use these blocks and what commands need to be entered to make them active.

To get a command block you need to open the chat and enter the command /give @p command_block

Then we select it and install a lever or any other activator to it.

How to specify a command for a command block?

In order for a command block to perform a particular function, it needs to be given a specific command. To do this, click on the command block and a window with settings will open. In the “Console command” field we need to enter the command we need.

Below you will find the Top 15 most popular commands for the command block on mobile Minecraft.

Top 15 commands for Minecraft PE

/title @a title Your message. Using this command, you can write and transmit some message or instruction to everyone on the server.

/effect @a regeneration 2000 2000. Regeneration command. 2000 is a level and quantity.

/tp @a 0 0 0 . Where are your coordinates, and 0 0 0 are the coordinates where you need to teleport. To find out your coordinates you need to download a special mod.

/clone~ -1~1~3~3~-3~4~-1~-3 Command for an endless road for a trolley. That is, the road will be constantly cloned and created.

/setblock its coordinates diamond_block . Command for an endless diamond block. This way you can get rich very quickly.

/weather rain . Command to change the weather to rain.

/weather clean .Command to change to clear weather, turns off rain.

/gamemode 0 – Quickly switch to Survival mode. /gamemode 1 – switch to creative mode. We set for whom the mode will change, for example /gamemode 0 @a - this way the mode will be applied to all players.

/time set night – this command changes the time of day to night. /time set day – thanks to this command, the day will come in Minecraft.

/give @a diamon 1 – a command that gives you items that you specify. In our case, these are diamonds. Where is 1 the number of diamonds.

/spawnpoint – thanks to this command you can set the spawn point after you die.

/kill – Command that kills everything on the map. You can specify what exactly needs to be killed, for example, animals or creeps.

/difficulty – a program that changes the difficulty of the game. You can bet from 0 to 3.

/say – a command with which you can also communicate with players on the server.

Did you like the article? Share with your friends!