Your ultimate resource for Minecraft tools and guides.
© 2025 CraftMC. All rights reserved.
This comprehensive guide covers all essential Minecraft Java Edition commands for 2025, from basic cheats to advanced admin commands. Whether you're a beginner learning how to teleport or change gamemode, or a server admin looking for powerful commands, this guide has you covered with clear examples.
Commands in Minecraft allow you to modify your game experience, create amazing builds instantly, control server settings, and perform actions that would be impossible in regular survival gameplay. This guide will teach you everything from enabling cheats to mastering complex command syntax.
Open a world → Pause menu → Open to LAN → Enable cheats: ON → Start LAN World. For new worlds, select 'Create New World' → 'Allow Cheats: ON'.
Use /tp or /teleport followed by coordinates or player name: '/tp @s ~ ~5 ~' teleports you 5 blocks up, '/tp PlayerName' teleports to another player.
Use the /locate command: '/locate structure minecraft:stronghold' finds the nearest stronghold. Other useful structures: village, mansion, monument, fortress, bastion_remnant, end_city.
Use the /seed command to display your current world's seed number. This is useful for sharing worlds or finding specific features.
Use /gamemode followed by the mode: '/gamemode creative', '/gamemode survival', '/gamemode adventure', or '/gamemode spectator'. Shorthand: '/gamemode c', '/gamemode s', etc.
Use /give with NBT tags: '/give @s minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5}]}' gives a Sharpness V diamond sword.
Use /execute with in: '/execute in minecraft:the_nether run tp @s ~ 100 ~' teleports to the Nether. Replace with minecraft:the_end for the End dimension.
Use /summon with NBT data: '/summon minecraft:zombie ~ ~ ~ {ArmorItems:[{},{},{id:"minecraft:diamond_chestplate",Count:1b},{}],HandItems:[{id:"minecraft:diamond_sword",Count:1b},{}]}' spawns a zombie with diamond armor and sword.
Use /worldborder set <diameter>: '/worldborder set 1000' creates a 1000×1000 border. Use '/worldborder center ~ ~' to center it on your position.
Use /title: '/title @a title {"text":"Welcome!","color":"gold"}' shows a gold welcome message. Use 'subtitle' instead of 'title' for smaller text below.
/gamemode <mode>Changes your game mode to survival, creative, adventure, or spectator
/tp [target] <location> [<yRot> <xRot>]Teleports players or entities to specific coordinates, other entities, or with specific rotation
/give <player> <item> [amount]Gives items to players, with optional NBT data for custom properties
/locate <structure|biome> <name>Finds the nearest specified structure or biome
/seedDisplays the seed of the current world
Before you can use these commands, you need to enable cheats: