Minecraft Commands
Minecraft Java Edition commands for players, worlds and servers.
7 Commands found
No commands found. Try a different search or filter.
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Advance the Overworld clock to day
Run this example as a player in the ingame chat in the Overworld. Without an explicit clock, the command uses the execution dimension's default world clock. In the Overworld, it advances that clock to the next occurrence of the day time marker. It neither pauses the clock nor automatically resumes a paused clock.
/time set dayPermissions / 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 in the Overworld. Without an explicit clock, the execution dimension determines the default world clock. Inform other players before changing shared time; setting the time does not resume a paused clock.
- Source
- https://www.minecraft.net/en-us/article/minecraft-java-edition-26-1 (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
List existing scoreboard objectives
Enter this example in player chat. Lists existing scoreboard objectives without creating an objective, changing scores or changing a display slot. No setup is required. If there are no objectives, the output reports that state; this is not a list of online players or their individual scores.
/scoreboard objectives listPermissions / Source
- Permissions
- Requires permission level 2 or higher in Java Edition, including for this read-only query. Enable commands in single-player; on a Vanilla server, you need operator permissions at level 2 or higher. Enter this example in player chat. Listing objectives does not change scores or display settings.
- Source
- https://minecraft.wiki/w/Commands/scoreboard (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Request clear weather for 60 seconds
Enter this example in player chat, preferably in the Overworld of a separate test world where weather is easy to observe. Requests clear weather for 60 seconds of game time (1200 ticks at 20 ticks per second), replacing the current weather timing. This does not guarantee exactly 60 seconds of wall-clock time under lag. Java also allows execution outside the Overworld; visible weather depends on the dimension and biome. Warn other players before changing shared weather.
/weather clear 60sPermissions / 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. Enter this example in player chat, preferably in the Overworld. Inform other players before changing shared weather; visible effects depend on dimension and biome.
- Source
- https://minecraft.wiki/w/Commands/weather (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Run one message for each online player
Enter this example in player chat in a separate test world. as @a creates one execution branch per online player and makes that player the executing entity. at @s then uses that player's position, rotation and dimension; as alone would not move the execution point. run tellraw @s sends each selected player one green Library test message using an SNBT text component. The message itself does not depend on position, but the explicit at step demonstrates the context for later positional commands. Warn other players before testing.
/execute as @a at @s run tellraw @s {text:"Library test",color:green}Permissions / Source
- Permissions
- Requires permission level 2 or higher in Java Edition for both execute and the nested tellraw command. Enable commands in single-player; on a Vanilla server, you need operator permissions at level 2 or higher. Enter this example in player chat. as changes the executing entity, not the command source's permission level, and does not grant operator status. @a selects all online players; inform them before sending messages.
- Source
- https://minecraft.wiki/w/Commands/execute (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Set the world difficulty to Easy
Sets the world's difficulty to Easy. Enter this example in player chat. This is a change, not a read-only query. Record the previous difficulty before trying it and use a separate test world rather than changing an active shared world.
/difficulty easyPermissions / Source
- Permissions
- Allow commands in your single-player world. On a server, ask the administrator whether you have permission to change the difficulty. Enter this example in player chat in a separate test world. Changing difficulty affects the shared world, not only your player; obtain the administrator's approval and inform other players first.
- Source
- https://www.minecraft.net/en-us/article/minecraft-commands (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Set the world spawn at your location
Sets the world spawn point at your current location. Enter this example without coordinate arguments in player chat in the Overworld. The Overworld is the recommended test environment, not a technical restriction; other dimensions have also been supported since Minecraft Java 1.21.9. This changes the world's spawn setting; it does not teleport you. Use a separate test world and do not assume that every player will respawn at exactly these coordinates.
/setworldspawnPermissions / Source
- Permissions
- Allow commands in your single-player world. On a server, ask the administrator whether you have permission to change the world spawn. Enter this example in player chat in the Overworld of a separate test world. Choose a safe location and obtain approval before changing a shared world's spawn.
- Source
- https://www.minecraft.net/en-us/article/minecraft-commands (opens in a new tab)
- Source checked on
-
World Minecraft
- Edition
- Java Verified version: 26.3
- Execution context
- Ingame chat
Summon a zombie at your location
Summons one zombie at your current location. Enter this example in player chat. No coordinates or custom entity data are supplied. Since Minecraft Java 1.21.9, summoning hostile monsters such as zombies fails when the difficulty is set to Peaceful. Use a separate Creative test world with enough free space; this changes the world and can affect other players. A successful summon does not guarantee that the mob remains present under every world condition.
/summon minecraft:zombiePermissions / Source
- Permissions
- Allow commands in your single-player world. On a server, ask the administrator whether you have permission to use summon. Enter this example in player chat only in a separate Creative test world and inform other players first. It creates a hostile mob at your location.
- Source
- https://www.minecraft.net/en-us/article/minecraft-commands (opens in a new tab)
- Source checked on