Command Studio · Minecraft Java

Minecraft Command Generators

Find a command, open its editor and build a command for your Java version. Each entry includes a description and an example.

Available editors 23 / 23 Total visits 230 My visits 0

Command catalog

Players and items

/give

Gives items and player heads with selected properties.

Command example /give @p minecraft:diamond 5

The nearest player receives five diamonds.

Open editor

/effect

Applies and removes effects.

Command example /effect give @p minecraft:speed 60 1

The nearest player gets Speed II for 30 seconds.

Open editor

/enchant

Enchants the held item.

Command example /enchant @p minecraft:sharpness 3

It attempts to add Unbreaking III to a compatible item in the nearest player's main hand.

Open editor

/gamemode

Changes the game mode.

Command example /gamemode creative @p

The nearest player switches to Creative mode.

Open editor

/tp

Teleports players and entities.

Command example /tp @p 0 80 0

The nearest player moves to coordinates X=0, Y=80, Z=0.

Open editor

/xp

Adds or changes experience.

Command example /experience add @p 5 levels

The nearest player gains five experience levels.

Open editor

/clear

Removes selected inventory items.

Command example /clear @p minecraft:dirt

Ordinary dirt is removed from the nearest player's inventory.

Open editor

/spawnpoint

Sets a player respawn point.

Command example /spawnpoint @p 0 80 0

The nearest player's respawn point is set to the given coordinates.

Open editor

/attribute

Manages entity attributes.

Command example /attribute @p minecraft:max_health get

The command displays the nearest player's maximum-health attribute.

Open editor

World and building

/summon

Summons entities with selected settings.

Command example /summon minecraft:zombie ~ ~ ~

A zombie appears at the command's execution position.

Open editor

/setworldspawn

Sets the default world spawn point.

Command example /setworldspawn 100 64 200

The command /setworldspawn 100 64 200 sets the default world spawn near those coordinates.

Open editor

/fill

Fills an area with blocks.

Command example /fill ~ ~ ~ ~5 ~3 ~5 minecraft:stone

The selected area is filled with stone.

Open editor

/setblock

Places one block.

Command example /setblock ~ ~ ~ minecraft:stone

Stone is placed at the command's execution position.

Open editor

/clone

Clones a block area.

Command example /clone ~ ~ ~ ~3 ~3 ~3 ~10 ~ ~

Minecraft attempts to copy the chosen area to an offset destination.

Open editor

/time

Changes game time.

Command example /time set day

The game time changes to daytime.

Open editor

/weather

Changes weather.

Command example /weather clear

The weather becomes clear.

Open editor

/difficulty

Changes world difficulty.

Command example /difficulty normal

The world difficulty becomes Normal.

Open editor

/gamerule

Changes world rules.

Command example /gamerule keep_inventory true

In Java 1.21.11 and newer, keeping inventory after death is enabled.

Open editor

/worldborder

Controls world borders.

Command example /worldborder set 1000

The world border becomes 1,000 blocks wide on each side.

Open editor

Display and game systems

/title

Displays titles on screen.

Command example /title @a clear

Current screen titles are cleared for all players.

Open editor

/scoreboard

Manages game scoreboards.

Command example /scoreboard objectives list

A list of existing scoreboard objectives is displayed.

Open editor

/bossbar

Manages boss bars and progress.

Command example /bossbar list

A list of existing boss bars is displayed.

Open editor

/team

Configures player teams and rules.

Command example /team list

A list of existing player teams is displayed.

Open editor
Getting started

To give an item, open /give and choose your world version and recipient. Copy the result into Minecraft chat.

Where to enter commands

Choose chat, console, command block or a function in the editor when available. Chat commands start with a slash. Servers may require operator permissions.

How to test the result

For /fill and /clone, start with a small area in a world copy. If the command fails, check the version, coordinates and permissions.

FAQ Frequently asked questions 30 questions
Essential questions 6
Do I need plugins?

No. This section covers vanilla Minecraft Java Edition commands. Plugin-specific commands belong to a separate planned tool.

How do I find a command if I don’t know its name?

Search for an action such as teleport or weather, or choose a category. Expand the example on a card to see what the command does.

What is a vanilla command?

It is a command supported by Minecraft Java Edition without server plugins. Examples include /time, /weather, and /give.

How do I find the right command?

Open the Command Studio menu and use search. Start by choosing the task: items, entities, time, teleportation, or world management.

How is /give different from /summon?

The /give command gives items to players, while /summon creates entities in the world. They perform different actions and have separate generators.

Does opening a guide execute a command?

No. Opening a guide only displays information. Minecraft changes occur after you execute the command in the game or on a server.

Syntax and arguments 4
Why do commands start with a slash?

In the game chat, / tells Minecraft that the entered text is a command rather than an ordinary chat message.

What does @a mean?

The @a selector targets all matching players. For example, /give @a minecraft:bread 3 gives three bread items to every selected player.

What is the difference between @s and @p?

The @s selector refers to the current command executor. The @p selector targets the nearest matching player relative to the execution position.

What do square brackets mean in syntax?

In command documentation, square brackets often indicate an optional argument. In actual commands, they can also be required syntax for item components.

Practical examples 6
How is the server console different?

Commands normally start with / in game chat, but not in a dedicated server console. The @s selector does not identify a player in the console.

Can commands run in command blocks?

Yes, when the command supports that execution context. Pay attention to selectors, position, and command-block settings.

How do I set daytime?

The command /time set day sets the world time to daytime. Run it in a world with commands enabled or with the required operator permissions.

How do I clear the weather?

Use /weather clear. It sets clear weather in the world where the command is executed, provided you have sufficient permissions.

How do I teleport a player?

For example, /tp Steve 100 70 200 teleports Steve to the specified coordinates. Make sure the destination is safe before executing the command.

How do I set Peaceful difficulty?

Use /difficulty peaceful. The command changes the world difficulty and affects gameplay mechanics, including hostile mob behavior.

Advanced usage 4
Can multiple commands run in sequence?

Yes, through suitable command blocks, datapack functions, or other Minecraft mechanisms. A normal command line does not automatically execute several unrelated commands.

What does /execute do?

It sets conditions and execution context for another command, including the executor, position, dimension, and other parameters. It is useful for complex systems.

Why use relative coordinates?

The ~ symbol specifies an offset from the execution position. For example, ~ ~1 ~ means one block above the current position.

What is the minecraft: namespace?

It is Minecraft's standard identifier namespace. For example, minecraft:stone identifies normal stone, while datapacks can define identifiers in other namespaces.

Troubleshooting 4
Why does a command fail on my server?

Check the Minecraft version, operator permissions, syntax, and whether the specified entity or item exists. Server permissions may also restrict execution.

Why is my command highlighted in red?

Minecraft usually detected invalid syntax, an unknown argument, or an unacceptable value. Check the highlighted part and the game's error message.

Why does Minecraft say Unknown command?

The command may not exist in that version, may be misspelled, or may be hidden by permissions. Check its name and your access rights first.

Why does a command run without a visible result?

It may target another entity or dimension, use the wrong player selector, or fail its execution conditions. Check selectors, coordinates, and the result message.

Minecraft versions 4
Does this guide support Bedrock Edition?

The primary target is Java Edition. Bedrock commands can have different arguments and behavior.

Why does an old video show different syntax?

Minecraft command formats change between versions. Item components, text components, game rules, and NBT are particularly version-sensitive.

Why does command syntax vary between Java versions?

Command arguments and registries change over time. For example, Java 1.20.5 introduced item components instead of the older item NBT format.

What changed in Java 1.21.11?

Game rules received registry-based names, and /worldborder time arguments gained updated unit handling. Older command examples must be checked against the target version.

Permissions and safety 2
Are all commands safe to run?

No. Commands such as /fill, /clone, and /clear can modify the world or inventories. Back up your world and test destructive changes first.

How can I test complex commands safely?

Use a world copy, a limited test area, and small values. Back up the world before /fill, /clone, mass item distribution, or summoning dangerous entities.

Minecraft Wiki reference

Reviews for this page

No published reviews yet.

All WopBlockStudio reviews

Rate this tool

Did this tool work for you? Tell us what went well or what could improve.

Sign in to leave a review
Rating from 1 to 5