@p – nearest player
@r – random player
@a – all players
@e – all entities
@s – the entity executing the command
Target selector variables set a specific target without typing out their full name. Above are the five different shorthand commands. You’ll get used to seeing these when playing on the best Minecraft servers.
Help
/help [CommandName]
Provides more information on the given command.
Give
/give <Player> <Item> [Amount]
Used to give another player an item from your inventory. Example: /give PCGamesN minecraft:planks 13. This would give PCGamesN 13 Spruce Wood Planks. This command is much simpler when giving single objects, but is useful for stackable objects.
Teleport
/tp [TargetPlayer] x y z
Used to instantly transport yourself or another player to a specific location in the world. Using another player’s name in place of the coordinates will transport the target directly to said player’s location. You can also teleport to a new world with these Minecraft maps.
Kill
/kill
Kills your character, adding another player’s name will apply the command to them.
Weather
/weather WeatherType
Allows you to choose the weather or your world. Options include: rain, thunder and snow.
Creative mode
/gamemode creative
Changes the gamemode to Creative mode, which allows player flight, unlimited resources and stops mobs attacking you.
Survival mode
/gamemode survival
Changes the gamemode to Survival mode, which means mobs will attack you and you’ll have to gather all resources the old-fashioned way.
Set time
/time set 1000
Sets the time to day. Replace “1000” with “0” for dawn, “6000” for midday, “12000” for dusk and “18000” for night.
Change difficulty to Peaceful
/difficulty peaceful
Changes difficulty to Peaceful mode. Replace “peaceful” with “easy”, “ normal”, or “hard” for more of a challenge.
How to find your world’s seed code
/seed
This will produce a code for your world, note it down so that you can load up an identical one in the future.
Keep inventory when you die
/gamerule keepInventory true
Ensures you don’t lose your items upon dying. To revert this, type “false” in place of “true”
Stop time
/gamerule doDaylightCycle false
This will stop the game’s day/light cycle in it’s place, allowing you to live under permanent sunshine or moonlight. To resume the day/light cycle type in “/gamerule doDaylightCycle true”.
Summon
/summon
Instantly drops a desired creature or object into your world, especially handy for when you’re short a couple of tame