MC Hub Command Guides

Here is a list of all of the everyday commands you may need.

If you're looking for commands for an older version of Minecraft, which were removed long ago, PCGamesN has a great list.

They start at /atlantis on this page. (commands before /atlantis are still present in the game)


Teleport

Cheat

The /tp command allows you to instantly teleport any entity to a set of coordinates or another entitity.

Example: /tp [entity] [x, y, z / entity]

Example: /tp @e[type=dolphin] MCHubSite

Example: /tp MCHubSite 450 30 -2260


Clone

Cheat

The /clone command can be used to replicate a set of blocks somewhere else! It will save you a lot of time when building a row of houses, for example.

Example: /clone [x, y, z] [x, y, z] [x, y, z] [optional:type]

Example: /clone 72 64 -129 83 73 -160 ~ ~ ~

This will clone all the blocks from 72 64 -129 (the bottom back left corner) to 83 73 -160 (the top front right corner) of a 3d structure to ~ ~ ~ (where you are standing)

So the cloned structure's bottom back left corner will reappear where you were standing. You can also replace ~ ~ ~ with a set of coordinates to clone it there instead.

Use "move" at the end of the command to remove the original structure but keep the duplicate. "replace" is the default.

Remember, you can turn on Show Coordinates in the Settings menu if playing Bedrock edition. It may also lag a bit before it clones.


Fill

Cheat

The /fill command can be used to create solid walls, cubes, or cuboids, in a matter of seconds.

Example: /fill [x, y, z] [x, y, z] [block] [optional:data]

Example: /fill ~ ~ ~ 94 68 -228 wool

That will create a solid wall from where you are standing to 94 68 -228 out of white wool.

For wool, experiment with adding numbers from 1-16 (the number of different colours of wool) to the end to change the colour!

For wood, 1-8 at the end for different types.


Difficulty

Not a cheat

You can use /difficulty to change the game difficulty to either Peaceful, Easy, Normal, Hard, and if on Java, Hardcore.

Example: /difficulty hard

On Bedrock Edition, you can also use numbers. (0: Peaceful) (1: Easy) (2: Normal) (3: Hard).

On Bedrock Edition, you can also use single letters. (p: Peaceful) (e: Easy) (n: Normal) (h: Hard).


Give

Cheat

Use /give to put items in a player's inventory.

Example: /give [player] [item] [amount] [optional:data]

Example: /give @p wool 64

This will give the closest player 64 white wool.

For wool, experiment with adding numbers from 1-16 (the number of different colours of wool) to the end to change the colour!

For wood, 1-8 at the end for different types.


Say

Not a cheat

The /say command is probably the easiest, and in the chat, is practically useless.

Example: /say [text]

Example: /say hi guys MC Hub is a great site


Setblock

Cheat

The setblock command is like the fill command, except it only sets one block.

Example: /setblock [x, y, z] [block] [optional:data]

So you enter the coordinates of the spot where you want it, then enter the block, and if you want, the data.

Example: /setblock 1 5 1 wool 3


Title

Cheat

The title command is really useful when making minigames.

It allows you to select a player and show a message on the player's screen.

Example: /title [player] [titletype] [titletext]

You enter the player who should see the message, the title type, and the text that should appear.

The title type would be either "title", "subtitle" or "actionbar".

With "title", the message would cover most of the player's screen.

With "subtitle", it would show a slightly smaller message below the title although you can't do just a subtitile you'll need a title as well.

And with "actionbar", it would show up above your XP bar.

/title MCHubSite title You win!


Kill

Cheat

The kill command will allow you to instantly kill any entity.

The player kill command is /kill [player]

The entity kill command is /kill [entity]

Or you can kill all entities/players with /kill @e

You can also choose a specific type of entity to kill with /kill @e[type=type]

So to kill all silverfish, do /kill @e[type=silverfish]

In Bedrock Edition, you can't kill players in Creative.


Summon

Cheat

The summon command will allow you to instantly spawn any entity in your Minecraft world.

Example: /summon [entity] [x, y, z]

So to spawn a Wither at your coordinates, do /summon wither ~ ~ ~ , or simply /summon wither


Weather

Cheat

The weather command can change the weather to anything you like.

Example: /weather [weatherType]

Options include: rain, thunder, snow and clear.


Time

Cheat

The time command can change the time to anything you like.

Example: /time set [Time]

Options include: “1000” for day, “0” for dawn, “6000” for midday, “12000” for dusk and “18000” for night.

You can also do /time add to add minutes on to the current time.


Gamerule

Not a cheat

The gamerule commands can change the way your world works.

Example: /gamerule [gamerule] [true/false]

Some common ones are keepinventory and commandblockoutput.


Gamemode

Cheat

Using /gamemode, you can change the game mode of any player.

Example: /gamemode [survival:creative:adventure:spectator:default] [player]

Example: /gamemode creative MCHubSite

In Bedrock Edition, you can't set someone to Spectator.

In Bedrock Edition, you can simply do "c" for Creative, "s" for Survival, "a" for Adventure, and "d" for the default gamemode.

So: /gamemode c MCHubSite

See below for an explanation of default, or "d"


Default Gamemode

Cheat

Similar to Gamemode (see above), except this sets the default gamemode for new players, instead of a specific player.

Use /defaultgamemode instead of /gamemode, and don't include the player.

You can't use default, or "d" here.


Seed

Not a cheat

You can use /seed to get the seed of your world.

Input (Seed: 2048971879): /seed

Output (Seed: 2048971879) 2048971879


OP and deOP

Not a cheat

If you are an operator, then by using /op, you can give operator permissions to any player, and by using /deop, you can remove someone's OP status.

Example: /op [player] | /deop [player]

Example: /op MCHubSite | /deop this_random_noob


Enchant

Cheat

You can use /enchant to enchant the item that a player is holding.

Example: /enchant [player] [enchantment] [level]

Example: /enchant MCHubSite sharpness 5

So in the second example, if MCHubSite was holding a diamond sword, it would then be enchanted with Sharpness 5.

Unfortunately, you can only enchant an item if you could normally put the same enchantment on it in an anvil. So you can't enchant blocks, and you can't get more than the designated level for an enchantment.