You can use Minecraft commands to manage a server or to get tons of diamonds. Using a command block, you can automate their use by typing them in your chat.
There are plenty of commands to try. With the gamemode command, you can switch between Creative and Normal modes, where you can fly around wherever you want. With the give command, you can give yourself any item you want. If you die far from your spawn point, you can teleport. If you don’t have a bed, you can even change your spawn point anytime!
Some Minecraft commands work the same way on both versions, while others may have different syntaxes on consoles and mobile devices. Players on PCs can use “Java Edition” commands, while those on consoles and mobile devices need “Bedrock Edition” commands.
Player Modification And Cheats
Clear Items From Inventory
- /clear [target]
- /clear [target] [item]
- /clear [target] [item] [amount]
Add Or Remove Advancements
- /advancement (grant/remove) [target] everything
Grant Or Remove A Status Effect
- For Java: /effect give [entity] [effect] (duration) (effect level) (hide particles: true/false)
- For Bedrock: /effect [entity] [effect] (duration) (effect level) (hide particles: true/false)
- For Java: /effect clear [entity] [effect]
- For Bedrock: /effect [entity] clear
Enchant Current Weapon
- /enchant [target] [enchantment ID] [level]
Add Or Remove Experience Points
- (/experience OR /xp) add [target] [amount] (points/levels)
- (/experience OR /xp) set [target] [amount] (points/levels)
- /experience query [target] (points/levels)
Give An Item To Someone
- /give [target] [item] [amount]
Kick Player
- /kick [target] [reason]
Kill Entity
- /kill
- /kill [target]
Count An Entity
- /testfor [target]
Locate Structure
- /locate [structure]
Add Or Remove Recipes
- /recipe (give/take) [player] [recipe name]
Set Player’s Spawn Point
- /spawnpoint
- /spawnpoint (x, y, z)
- /spawnpoint [optional target] (x, y, z)
Summon An Entity
- /summon [entity]
- /summon [entity] (x, y, z)
Teleport An Entity
- /tp [target] (coords)
- /tp [target] (coords) (rotation)
- /tp [target] (coords) facing (location)
- /tp [target] (coords) facing [entity]