Articles on: Gaming Servers

All Minecraft Commands

Understanding Minecraft commands can really enhance your game and help you manage your server better. This guide will show you all the important commands you need to change game modes, control player actions, and customize the game world. Most of these commands require you to be an operator (op) on the server or to use them or through the server's control panel. Whether you're making the game more fun for yourself or running a server for friends, these commands will give you the tools you need to do it right.

Player Commands



/gamemode [mode] [player]

Changes the game mode of a player. Modes: survival, creative, adventure, spectator.

Changes the game mode of a player. Modes: survival, creative, adventure, spectator.

/give [player] [item] [amount]

Gives an item to a player.

Gives an item to a player.

/tp [target player] [destination player or coordinates]

Teleports a player to another player or specific coordinates.

Teleports a player to another player or specific coordinates.

/time set [value]

Sets the time in the world. Values: day, night, noon, midnight or a number.

Sets the time in the world. Values: day, night, noon, midnight or a number.

/weather [clear/rain/thunder]

Changes the weather.

Changes the weather.

/spawnpoint [player] [coordinates]

Sets the spawn point for a player.

Sets the spawn point for a player.

/kill [target]

Kills the targeted player or entity.

Kills the targeted player or entity.

/effect [player] [effect] [seconds] [amplifier]

Applies a status effect to a player.

Applies a status effect to a player.

/enchant [player] [enchantment] [level]

Enchants an item that a player is holding.

Enchants an item that a player is holding.

/xp [amount] [player]

Gives a player experience points or levels.

Gives a player experience points or levels.

Administrative Commands



/ban [player]

Bans a player from the server.

Bans a player from the server.

/pardon [player]

Unbans a player.

Unbans a player.

/kick [player] [reason]

Kicks a player from the server.

Kicks a player from the server.

/op [player]

Grants operator status to a player.

Grants operator status to a player.

/deop [player]

Revokes operator status from a player.

Revokes operator status from a player.

/whitelist add [player]

Adds a player to the server's whitelist.

Adds a player to the server's whitelist.

/whitelist remove [player]

Removes a player from the server's whitelist.

Removes a player from the server's whitelist.

/save-all

Saves the server to disk.

Saves the server to disk.

/save-off

Disables automatic server saves.

Disables automatic server saves.

/save-on

Enables automatic server saves.

Enables automatic server saves.

World Manipulation Commands



/setblock [coordinates] [block]

Changes a block at specified coordinates.

Changes a block at specified coordinates.

/fill [from coordinates] [to coordinates] [block]

Fills an area with a specific block.

Fills an area with a specific block.

/clone [begin coordinates] [end coordinates] [destination coordinates]

Copies blocks from one area to another.

Copies blocks from one area to another.

/summon [entity] [coordinates]

Summons an entity at specified coordinates.

Summons an entity at specified coordinates.

/title [player] [title/subtitle/actionbar] [text]

Displays a title screen for a player.

Displays a title screen for a player.

/playsound [sound] [source] [player] [coordinates]

Plays a sound for a player at specific coordinates.

Plays a sound for a player at specific coordinates.

Debug and Information Commands



/seed

Displays the world seed.

Displays the world seed.

/gamerule [rule] [value]

Sets or queries a game rule value.

Sets or queries a game rule value.

/difficulty [difficulty]

Sets the difficulty level. Levels: peaceful, easy, normal, hard.

Sets the difficulty level. Levels: peaceful, easy, normal, hard.

/effect clear [player]

Clears all status effects from a player.

Clears all status effects from a player.

/list

Lists all players currently connected to the server.

Lists all players currently connected to the server.

Customization Commands



/scoreboard objectives add [name] [criteria]

Adds a new objective to the scoreboard.

Adds a new objective to the scoreboard.

/scoreboard players set [player] [objective] [score]

Sets a player's score in an objective.

Sets a player's score in an objective.

/team add [team name]

Creates a new team.

Creates a new team.

/team join [team name] [player]

Adds a player to a team.

Adds a player to a team.

Command Block Specific Commands



/execute [entity] [position] [command]

Executes another command on behalf of an entity.

Executes another command on behalf of an entity.

/function [function]

Runs a function from a datapack.

Runs a function from a datapack.

/data merge [entity/block] [data]

Merges data with an entity or block.


Merges data with an entity or block.


This list covers the majority of Minecraft commands, providing essential tools for gameplay, administration, world manipulation, debugging, and customization. You can find a full more in depth guide of all the Minecraft commands here.

​**Not a NameHero customer yet?** Elevate your gaming experience with one of our gaming servers today!

Learn More

Updated on: 11/10/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!