Minecraft Commands
Minecraft Java Edition commands for players, worlds and servers.
3 Commands found
No commands found. Try a different search or filter.
-
Players Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Add a demo tag to yourself
Enter this example in player chat. Adds the persistent entity tag dj_demo to you, selected by @s. Use a separate test world and first ensure this tag is not already used by another system. Adding an existing tag does not add a second copy. To undo this demonstration, enter /tag @s remove dj_demo in player chat; remove it only if you added it for this test.
/tag @s add dj_demoPermissions / Source
- Permissions
- Requires permission level 2 or higher in Java Edition. Enable commands in single-player; on a Vanilla server, you need operator permissions at level 2 or higher. Run this example in player chat: @s selects you. A command block or server console needs an explicit entity target instead. Tags persist; do not remove a tag used by another system.
- Source
- https://minecraft.wiki/w/Commands/tag (opens in a new tab)
- Source checked on
-
Players Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Play a quiet note-block sound for yourself
Enter this example in player chat. Targets only you with @s and plays the Java sound event minecraft:block.note_block.pling at your execution position (~ ~ ~), using the master category, volume 0.5 and pitch 1. The event ID is not a sound-file path. Audible output depends on client volume settings and resource packs. In other execution contexts the position can differ from the listener's position; selecting a player alone does not guarantee that the sound is within hearing range.
/playsound minecraft:block.note_block.pling master @s ~ ~ ~ 0.5 1Permissions / Source
- Permissions
- Requires permission level 2 or higher in Java Edition, even when playing sound only to yourself. Enable commands in single-player; on a Vanilla server, you need operator permissions at level 2 or higher. Run this example in player chat: @s selects you and ~ ~ ~ uses your execution position. In a command block or server console, adapt both target and position. Hearing the sound also depends on distance, client volume settings and resource packs.
- Source
- https://minecraft.wiki/w/Commands/playsound (opens in a new tab)
- Source checked on
-
Players Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Switch yourself to Creative mode
Changes your own game mode to Creative. Run this example as a player in the ingame chat; it changes how you interact with the world.
/gamemode creative @sPermissions / Source
- Permissions
- Requires permission level 2 or higher in Java Edition. Enable commands in single-player; on a Vanilla server, you need operator permissions at level 2 or higher. Run this example in player chat: @s selects you. A command block or server console has no player entity of its own, so the target must be adapted for those contexts.
- Source
- https://minecraft.wiki/w/Commands/gamemode (opens in a new tab)
- Source checked on