How to give experience to a player in minecraft. Minecraft Commands


Minecraft is full of mysteries and puzzles; you won’t find some very interesting features until you use the commands. We will consider admin commands in minecraft. Most of these commands will greatly please many admins; I have specially collected all possible commands for you and tried to describe as accurately as possible why they are needed

To enter a command, you should open the chat window and enter the command instead of a message; you can open the chat by pressing T or /.

  • clear (target) [item number] [additional data] - with this command, the admin can clear the inventory of the specified player or simply delete a specific item by specifying the ID.
  • debug (start|stop) - after installing the server or mod, plugin, textures/resource packs and other things, you should definitely check how the game works by turning on the debug mode, after checking, you can turn it off, this mode will show whether there are any defects.
  • defaultgamemode (survival|creative|adventure) - assigns a default mode for new players.
  • difficulty (0|1|2|3) - Makes the game mode more difficult, 0 - peaceful/calm, 1 - easy, 2 - normal, 3 - difficult.
  • enchant (target) [level] - Changes the level of the item in the hands to the one specified in the command.
  • gamemode (survival|creative|adventure) [goal] - Change the mode specified to the player, survival, s or 0 - survival, creative, c or 1 - creativity, adventrure, a or 2 - adventure. The command will work if the player is online.
  • gamerule (rule) [meaning] - Changes several basic rules. The value parameter can be either true or false.
    A few rules:
    doFireTick equal to false stops the fire.
    doMobLoot equal to false, mobs do not drop.
    doMobSpawning equal to false, prohibits mob spawning.
    doTileDrops equal to false, destroyed blocks do not give items.
    keepInventory equal to true, when a player dies, the inventory is not deleted, but remains.
    mobGriefing equal to false prevents mobs from destroying blocks, and creeper explosions will not ruin your or your player's hard-made terrain.
    commandBlockOutput equal to false, prohibits the output of information in the chat when certain commands are entered.

    Let's look at the following commands for admins in minecraft:

  • give (goal) (object number) [quantity] [ additional information] - Gives the player an item specified by block ID.
  • help [page|command] ? [page|command] - get a list of all available commands.
  • publish - will open access to the world of Minecraft via a local network.
  • say (message) - displays a message to all players, the text color will be pink.
  • spawnpoint [target] [x] [y] [z] - setting the spawn point for the player at the specified coordinates. Without specifying coordinates, the spawn point will be the current position.
  • time set (number|day|night) - change the time in the game. When indicating the time in numbers, you can write the following options: 0 - dawn, 6000 noon, 12000 sunset and 18 midnight.
  • time add (number) - the time specified in numbers is added to the current time.
  • toggledownfall - turning on and off fallout.
  • tp (target1) (target2), tp (target) (x) (y) (z) - a very complex command, but necessary for everyone, with its help you can teleport to the specified player or to the specified coordinates.
  • weather (time) - weather change over a certain period of time.
  • xp (quantity) (goal) - adding HP to the specified player i.e. experience, from 0 to 5000. If you want to add or subtract levels to a player, simply add the letter L after the number.
  • ban (player) [reason] - blocking access to the server by nickname.
  • ban-ip (ip address) - blocking by IP.
  • pardon (username) - unlocking access for the specified player.
  • pardon-ip (ip-address) - unblocking the IP address.
  • banlist - list of all banned players.
  • op (goal) - operator privileges to the player.
  • deop (target) - reset operator privileges.
  • kick (target) [reason] - Kicks the specified player.
  • list - all players online at the moment.
  • save-all - saves all changes on the server.
  • save-on - auto-save data on the server.
  • save-off - prohibit auto-saving.
  • stop - shutdown the server.
  • whitelist list - players on the “white” list.
  • whitelist (add|remove) (nickname) - adding or removing from the white list.
  • whitelist (on|off) - enable or disable the whitelist.
  • whitelist reload - whitelist update, i.e. if you modified the white-list.txt file manually, you need to run this command.

    On this admin commands in minecraft finished, as new teams are added I will update the list. We wish you successful server administration, also don’t miss the commands for users, multiplayer and others, coming soon to our website.

Minecraft server admins have access to many more options than admins in other games. Thanks to commands, administrators can easily regulate all processes occurring on the server, therefore, a well-prepared administration quickly resolves all issues and problems that arise on the server. If you decide to create a server in Minecraft, then first of all it is recommended to study admin commands in minecraft. At the first stage, at least the basic commands.

In order to use any command, you need to open the chat (by pressing the T button) and after the slash sign (/) enter the command you need. I would also like to note that some commands may not work for you, because... It is necessary to additionally install plugins that expand the range of admin capabilities.

So, let's look at the commands

  • debug - by turning on this mode, after installing any add-on (mods, plugins, etc.), you can check how the game works, see if there are bugs in their operation.
  • defaultgamemode - thanks to this command you can specify the default mode for new players.
  • difficulty - change the difficulty level of the game on the entire server.
  • enchant [level] - thanks to this command you can change the level of any item.
  • clear [player] [item number] [quantity] - this command completely clears the inventory of the player you specified, you can also delete a specific item by specifying the id of the desired item.
  • gamemode [player] - change the game mode for a certain person. To enable survival mode, enter (s or 0), for creative (c or 1), for adventure mode (a or 2). The player must be in the game, otherwise the command will not work.
  • gamerule [rule] - changing the basic rules of the game.

List of rules:

  • doFireTick turn on/off the fire.
  • doMobLoot mobs drop/mobs do not spawn.
  • doMobSpawning allows/prohibits mob spawning.
  • doTileDrops destroyed blocks do/do not drop.
  • keepInventory after the death of a player, the inventory does not disappear.
  • mobGriefing allows/prohibits mobs from destroying blocks around them.
  • commandBlockOutput allows/prohibits displaying information in chat when entering commands.

These were complex commands, now let’s look at quite simple, but not unimportant ones commands for admin in minecraft

  • give [item id ] [quantity] - You can give any item to any player in any quantity.
  • help - help for the admin.
  • publish - this command gives access to the minecraft world via a local network.
  • say [message] - a global message that will be seen by players on the server.
  • spawnpoint [target] - setting the spawn point for the selected player. The indicators x, y, z are the spawn coordinates; if you do not specify the coordinates, then the spawn point will be those coordinates where at the moment there is a player.
  • time set [number] - a function that changes the time on the server: dawn = 0, noon = 6000, sunset = 12000 and midnight = 18000.
  • time add [number] - server time in numbers.
  • toggledownfall - enable/disable fallout on the server.
  • tp is a fairly complex command that teleports players around the map. You can read information about this feature in this article.
  • weather [time] - weather change during the specified time.
  • xp (quantity) (goal) - increases the player’s experience in the range from 0 to 5000. By adding the letter L after the number, you can add or, conversely, lower the player’s level.
  • ban [Player nickname] [reason for blocking] - everything is simple here, you can block a player by nickname, indicating the reason for the ban.
  • ban-ip - blocking a player by IP.
  • pardon [Player nickname] - resuming access to the server by nickname.
  • pardon-ip - unblocking a previously blocked player's IP address.
  • banlist - getting a list of all banned players.
  • op [Player nickname] - issuing admin information to the player.
  • deop [Player nickname] - reset the admin panel by nickname.
  • kick [Player nickname] [reason] - using this function you can kick the specified player.
  • list - getting a list of all players who are online.
  • save-all- this command allows you to save all changes on the server.
  • save-on or save-off - enable/disable automatic saving of server data.
  • stop - stops the server.
  • whitelist list - list of players on the white list.
  • whitelist [Player nickname] - adding or removing a player from the whitelist.
  • whitelist (on|off) - on. or off white sheet.
  • whitelist reload - updating the whitelist, i.e. if you made changes to the white-list.txt file manually, then you need to write this phrase.

Having studied these admin commands in minecraft, It will be easier for you to manage

These commands can be executed in the console of a running server, or they can be entered in the game by a user who has server administrator rights assigned (assigned by the command op). To launch the console in the game you need to press the “T” or “/” key. In the player console, all commands must begin with a "/" character. On the server, commands can be written without the “/” character.

In Minecraft since version 1.4.2 it is possible to write any console command to command block , which will allow you to perform it when receiving a redstone signal (via a redstone wire).

clear<цель>[object number] [additional data]— Clears the specified player's inventory of all items or specific IDs.

debug — Starts debug mode or stops it.

defaultgamemode - Allows you to change the default mode for new players on the server.

difficulty<0|1|2|3> — Changes the difficulty of the game, 0 - peaceful, 1 - easy, 2 - normal, 3 - difficult.

enchant<цель>[level] - Enchant an item in your hands to the level specified in the command.

gamemode [target]- Changes the game mode for the specified player. Survival (survival, s or 0), Creativity (creative, c or 1), Adventure (adventure, a or 2). For the command to work, the player must be online.

gamerule<правило>[meaning] - Allows you to change several basic rules. The value must be true or false.

Rules that can be set using gamerule:

  • doFireTick - if false, stops the spread of fire.
  • doMobLoot - if false, mobs do not drop drops.
  • doMobSpawning - when false, prohibits mob spawning.
  • doTileDrops - if false, objects will not drop from destructible blocks.
  • keepInventory - if true, after death the player does not lose the contents of his inventory.
  • mobGriefing - if false, mobs cannot destroy blocks (creeper explosions do not spoil the landscape).
  • commandBlockOutput - if false, the command block does not output anything to the chat when commands are executed.

As a result, the command to the server looks like this:
“gamerule doMobLoot false” - will cancel drops from mobs.

give<цель> <номер объекта>[quantity] [additional information]— Gives the player an item specified by block or item ID.

help [page | team] ? [page | team] - Lists all available console commands.

publish— Opens access to the world via a local network.

say<сообщение> — Shows a pink message to all players.

spawnpoint [target] [x] [y] [z]— Allows you to set the spawn point for the player at the specified coordinates. If coordinates were not specified, the spawn point will be your current position.

time set<число|day|night> - Allows you to change the time of day. Time can be specified in numerical value, where 0 is dawn, 6000 is noon, 12000 is sunset and 18000 is midnight.

time add<число> — Adds the specified amount of time to the current one.

toggledownfall- Allows you to enable or disable precipitation.

tp<цель1> <цель2>,tp<цель> — Makes it possible to teleport a player specified by name to another or to the entered coordinates.

weather<время> — Allows you to change the weather for a specific time specified in seconds.

xp<количество> <цель> — Gives the specified amount of experience to a specific player, from 0 to 5000. If L is entered 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.

ban<игрок>[cause]— Allows you to block a player’s access to the server by nickname.

ban-ip Allows you to block a player’s access to the server by IP address.

pardon<никнейм> — Allows you to unblock the specified player from accessing the server.

pardon-ip Removes the specified IP address from the blacklist.

banlist - Allows you to see a list of all players blocked on the server.

op<цель> — Gives the specified player operator privileges.

deop<цель> — Removes operator privileges from the player.

kick<цель>[reason] — Kicks the specified player from the server.

list— Displays a list of all players online.

save-all- Forces all changes to be saved on the server.

save-on Allows the server to make automatic saves.

save-off Prevents the server from performing automatic saving.

stop— Shuts down the server.

whitelist list— Displays a list of players in the whitelist.

whitelist <никнейм> — Adds or removes a player to the whitelist.

whitelist — Enables or disables the use of a white list on the server.

whitelist reload— Reloads the whitelist, that is, updates it in accordance with the white-list.txt file (can be used when white-list.txt is modified manually).

Teams in Minecraft on the server for the player

Commands are entered into the game chat console. To launch the console in the game you need to press the “T” or “/” key.

Hint: if you enter the “/” symbol in the console and press the key Tab, then all commands available to the player on this server will be shown.

me<сообщение> — Displays the entered message on behalf of a third party: “Player_name message text.” For example: "Player explores a cave."

tell<игрок> <сообщение>,w<игрок> <сообщение> — Sending a private message to another player. Useful if you want to prevent other players on the server from seeing the contents of the message.

kill- Allows you to kill yourself, which can be useful if you get stuck in textures. After using a command in chat, the message “Ouch. That look like it hurt."

seed— Allows you to find out the grain of the world in which the game is taking place.

Commands for private territory in minecraft on the server

/region claim<имя региона> — Saves the selected area as a region with the specified name.

//hpos1— Sets the first point according to your current coordinates.

//hpos2— Sets a second point according to your current coordinates.

/region addowner<регион> <ник1> <ник2> — Adds the specified players to the owners of the region. Owners have the same capabilities as the region creator.

/region addmember<регион> <ник1> <ник2> — Adds the specified players to the members of the region. Participants have limited options.

/region removeowner<регион> <ник1> <ник2> — Remove the specified players from the region owners.

/region removemember<регион> <ник1> <ник2> — Remove the specified players from region participants.

//expand<длина> <направление> — Expands the region in a given direction. For example: //expand 5 up - will expand the selection up 5 cubes. Acceptable directions: up, down, me.

//contract<длина> <направление> — Will reduce the region in a given direction. For example: //contract 5 up - will reduce the selection by 5 cubes from bottom to top. Acceptable directions: up, down, me.

/region flag<регион> <флаг> <значение> — You can set a flag for a region if you have sufficient access.

Possible flags to set:

  • pvp - is PvP allowed in the region?
  • use - is it permissible to use mechanisms, doors
  • chest-access - is it permissible to use chests?
  • lava-flow - is lava spreading acceptable?
  • water-flow - is water spreading acceptable?
  • lighter - is it permissible to use a lighter?

Possible values:

  • allow - enabled
  • deny - disabled
  • none - the same flag as not in the private zone
  • 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 the 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 using ⇧ 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 created 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: String with NBT data of the item.
        • show_entity: A compound string with the keys "type", "name" and "id" (must be a UUID, but actually accepts any string).

We've compiled a list of some useful console commands and cheats for Minecraft that all players will find useful.

It doesn't matter if you need to copy an existing build, change the game mode, or just cheat, console commands in Minecraft is an important part of the game that we encounter every day. There are many different commands, all of which vary in difficulty, and we've gone over the must-know ones that you can use to troll your friends. Because what would Minecraft be without friendly griefing?

If you're wondering how to enter the Minecraft console commands listed below, all you have to do is press the forward slash (/) key and a small window will appear. Enter the code and press Enter and your command will be activated.

Selectors

Below are selectors, that is, abbreviation codes that save you from having to enter the names of different players. These are worth remembering so you don't have to type in nicknames like "Sniper_Kitty_Bruv_91" every time some idiot joins your game.

  • @p – player closest to you
  • @r – random player
  • @a – all players
  • @e – all objects in the world
  • @s – you

Clone command

/clone

Clones a series of blocks to another location. Very useful if you are building a city and want to copy several buildings to other locations. " » – starting point. " » – end point. AND " " is the location where you want to move the selected blocks.

Example: /clone 100 234 -10 200 100 0 300 200 100

How to change difficulty

/difficulty<сложность>

Changes the difficulty of the game. Replace the last part of the code with one of the following values:

  1. peaceful (peaceful)
  2. easy (easy)
  3. normal
  4. hard (difficult)

Example: /difficulty peaceful

Apply an effect to yourself or another player

/effect<эффект>[seconds] [level]

Places an effect on the player. "[seconds]", "[level]" and "" (hide particles) are optional conditions, so feel free to ignore them unless you want to change the duration, effect strength, and particle visibility. If you want to remove an effect from a player, enter "/effect"<имя игрока>clear".

Example: /effect Gamer water_breathing 30

Enchant an item

/enchant<игрок> [level]

Places an enchantment on an item in the player's hands. Celestial Punishment, Arthropod Scourge, Wit - any enchantment you could pull from a book or enchantment table. Here is a list of enchant IDs.

Example: /enchant Gamer minecraft:smite 1

Changing Experience

/xp<количество>[player]

Gives the player the specified amount of experience points. If you just want to add levels, which is useful for enchanting, try "/xp<количество>L [player].”

Example: /xp 100L Gamer

Changing Game Mode

/gamemode<режим>

Changes the game mode for everyone in the game. Add a player's name to the end of the command to change the mode for that player only. Replace "<режим>» one of the following options:

  • Survival
  • Creative
  • Adventure
  • Spectator

Example: /gamemode Survival

Give out an item or items

/give<игрок> <предмет>[quantity]

Adds an item to the player's inventory. Ideal if you want to start the game with a full set of diamond equipment. But keep in mind that the quantity only works for stackable items. You can't give yourself 100 diamond swords at a time, although that would be great. A complete list of item IDs can be found here.

Example: /give Gamer diamond_sword 1

Help if the command doesn't work

/help [command name]

Gives additional information about any console command. If you are trying to run a command and it is not working as expected, type the above command before the name of the command that is not working and it will tell you more details about how it works.

Example: /help kill

Enable Inventory Saving

/gamerule keepInventory true

Changes the rules of the game so that if you die, you will keep all items in your inventory. Replace "true" with "false" to disable this.

Kill everyone or everything

Kills everyone, including the player. But if you want to kill another player, use "/kill"<игрок>" And to kill certain mobs, type "/kill @e".

Audio playback command

/playsound<звук> <игрок>

Plays a specific audio file. Great if you want to use a command block to play a sound when someone opens a door. Who doesn't love a good doorbell? Take a look at all the audio file names here.

Example: /playsound minecraft:entity.elder_guardian.ambient voice @a

How to view the world seed

Shows the seed for the current world so you can duplicate the world or give the seed to a friend.

Set the spawn point

/setworldspawn

Moves the spawn point to the location where the player is standing. If you don't want to do this, you can also set the spawn point to a given location using "/setworldspawn »

Example: /setworldspawn 100 80 0

Stop time

/gamerule doDaylightCycle false

This command completely stops the day/night cycle, so the world will always have the current time of day. To restart the loop, replace "false" with "true".

Spawn a mob

/summon<имя_сущности>[x] [y] [z]

Summons a mob in a specific location. Remove the part with "[x][y][z]" at the end so the mob will appear right above you. Just remember that if you spawn a Wither, you need to make your feet as quickly as possible.

Example: /summon creeper

Teleportation

/tp [player]

Teleports the player to the specified location. And yes, you can actually teleport a friend high into the sky and laugh as they fly back to earth.

Example: /tp Gamer 100 0 10

Change the in-game time

/time set<значение>

Sets the in-game time. Add one of the following numbers to the end to change the time of day to:

  • 0 – dawn
  • 1000 – morning
  • 6000 – noon
  • 12000 – sunset
  • 18000 – night

Change the weather to something better or worse

/weather

Changes the weather in the game. Those. "/weather thunder" will start a thunderstorm. This is a must for hunting charged creepers. No one will sit and wait for a thunderstorm.