Minecraft

Ressources

Catégorie voyageCommandes Minecraft

Player commands

Command Description
me <actiontext> Similar to the /emote or /action, and the same as the /me commands in IRC clients, the /me command sends a narrative message to the other players in the form of "* Yourname actiontext" (e.g., "* Notch sneezes." or "* Notch exploded." ).
help [page | commandname] or ? [page | commandname] Shows a list of available commands or further information to the commandname. Note: the multiplayer-only commands are not listed in single-player games, even when open to LAN players.
tell <playername> <message> Used to private message a player on the server. Very useful on PVP servers if you need to ask something to another player so other players don't see.

Operator-only commands

Command Description
clear <playername> [item] [data] Clears the inventory of playername or the specified item:data.
debug <start | stop> Starts a new debug profiling session or stops the session currently running. It notifies about potential performance bottlenecks in the console when active and creates a profiler results file in the folder debug when stopped.
defaultgamemode <survival | creative | adventure> Sets the default game mode that is shown on the world selection menu. New players that join the world will be put into the default game mode; i.e., if the default game mode is creative, new players will start in creative. The game modes can be abbreviated to "s/c/a" or "0/1/2" respectively. This command cannot enable or disable Hardcore mode.
difficulty <peaceful | easy | normal | hard> Changes the difficulty. The difficulties can be abbreviated to "p/e/n/h" or "0/1/2/3" respectively.
effect <player> <effect> [seconds] [amplifier] gives the targeted player the specified effect for the specified time (default is 30 seconds). Effects have a limit of 1,000,000 seconds, and the amplifier field has a limit of 255. Effect id's can be found on the potion effects page.
enchant <playername> <enchantment ID> [enchantment level] Enchants the item that the player is currently holding, according to enchantment ID. Note that this works within the normal limitations of enchanting items. Enchantments can only be applied to items which can normally receive that specific enchantment. Enchantment levels can not be above the normal highest achievable for the selected enchantment. Conflicting or overpowering enchantment combinations usually prevented are also prevented with this command.
gamemode <survival | creative | adventure> [playername] Changes the game mode for playername. The game modes can be abbreviated to "s/c/a" or "0/1/2" respectively. If no playername is given, it will set your own gamemode. Remember, this will only affect playername and no one else. Note: Player must currently be online for the command to work.
gamerule <rulename> [true | false] Activates or deactivates the rulename. Available rules are:
  • commandBlockOutput - Whether command blocks should notify admins when they perform commands.
  • doFireTick - Whether fire should spread.
  • doMobLoot - Whether mobs should drop items.
  • doMobSpawning - Whether mobs should naturally spawn.
  • doTileDrops - Whether blocks should have drops.
  • keepInventory - Whether the player should keep items in their inventory if they die.
  • mobGriefing - Whether creepers, endermen, ghasts, and withers should be able to change blocks, or zombies, skeletons, and zombie pigmen can pick up items.
give <playername> <item> [amount] [data-value] Spawns amount (defaults to 1) of the item defined by item with the specified data value (defaults to 0) at playername 's location. For example typing /give John 5 30 1 will give a player called John 30 blocks of Spruce Wood Planks.
kill Inflicts 1000 ( × 500) damage to the user, killing them unless an extremely powerful /effect for resistance is in use. Useful when lost, stuck or to restore health and hunger (assuming you can get your items back easily). Also displays message "Ouch. That looks like it hurt."
publish Opens your single-player game for LAN friends to join. This command appears in the singleplayer cheats.
say <message> Broadcasts message to all players on the server.
scoreboard <objectives|players|teams> See Scoreboard for more information. Scoreboard-specific commands.
seed Displays the seed. This command can always be used in single-player mode, regardless of whether cheats are enabled.
spawnpoint <player> [x] [y] [z] Sets the spawnpoint of that player to that position, or to the current position if x y and z are not specified. NOTE: Spawnpoint coordinates must be specified in whole numbers. No decimals.
time set <number | day | night> Sets the world time. number is an integer between 0 and 24000, inclusive, where 0 is dawn, 6000 midday, 12000 dusk and 18000 midnight. "time set day" sets the time to 0, and "time set night" sets the time to 12500.
time add <number> Increments the world time, as above. number must be 0 or positive.
toggledownfall Toggles rain and snow.
tp [playername] <targetplayer> Teleports player playername to targetplayer 's location. If no player is specified, it will teleport yourself.
tp [playername] <x> <y> <z> Teleports player playername (or yourself if no player is specified) to coordinates x,y,z. (the y value cannot be smaller than 0). Can also relatively move the player by adding the ~ character before the coordinate value. For example typing /tp John ~3 64 ~3 will teleport a player called John 3 blocks away from his current x and z, and to y 64.
weather <clear | rain | thunder> [seconds] Changes the weather. Maximum is 1000000.
xp <amount> <playername> Gives the specified user the given number of orbs. Maximum is 2,147,483,647 per command. Negative amounts may not be used to remove experience points.
xp <amount>L <playername> Gives playername the amount number of experience levels. Maximum is 2,147,483,647. Negative amounts may be used to remove experience levels.

Multiplayer-only commands

Command Description
ban <playername> [reason] Blacklists the name playername from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place.
ban-ip <ip-address> Blacklists an IP address so that all subsequent connections from it are rejected.
banlist [ips] Displays the banlist. To display banned IP addresses, use the command "banlist ips"
deop <playername> Revokes a player's operator status.
kick <playername> [reason] Forcibly disconnects playername from the server.
list Shows the names of all currently-connected players (the same can be achieved when pressing tab)
op <playername> Grants playername operator status on the server.
pardon <playername> Removes playername from the blacklist, allowing them to connect again.
pardon-ip <ip-address> Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server.
save-all Forces the server to write all pending changes to the world to disk.
save-off Disables the server writing to the world files. All changes will temporarily be queued.
save-on Enables the server writing to the world files. This is the default behavior.
stop Gracefully shuts down the server.
whitelist <add | remove> <playername> Adds or removes playername from the whitelist.
whitelist list Displays all players in the whitelist.
whitelist <on | off> Enables/disables the server's use of a whitelist. Note: Server ops will always be able to connect when the whitelist is active, even if their names do not appear in the whitelist.
whitelist reload Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft).