Skip to content
Minecraft
Free tool

Minecraft Commands: Command Generator & Command List

The Minecraft Command Generator builds commands for Java and Bedrock: choose /summon, a Zombie, and 40 health, for example, and get the finished command in the syntax for your version. It also supports /effect, /tp, /gamerule, /tellraw, /title, /fill, and more, plus a list of all 89 Java and 82 Bedrock commands.

Built by Florian Galz

Free and without sign-up. The command is generated right in your browser.

Command ready? Test it on your own Minecraft server.

Summon a mob with a name, properties, and attributes. For items with names and enchantments, use the Give Generator

Mob or entity

Position

Number, ~ for position-relative (e.g. ~5), or ^ for facing direction.

2 = one heart

Zombie: 0.23

1 = normal, since 1.20.5

Your command (Java 26.x)

/summon minecraft:zombie ~ ~ ~

Paste the command into chat, the server console, or a command block.

30 characters

In chat, you need OP permissions or enabled cheats. In the server console, omit the slash.

Example result

What the Minecraft Command Generator creates

Choose a command, edition, and version, then fill in the fields. The generator produces the finished command. This example summons a Zombie named “Boss” with 40 health that glows and does not despawn, shown as a /summon command for three versions.

Example · /summon zombie · Name Boss · 40 Health · Glowing

Output: Java 26.x

/summon
/summon minecraft:zombie ~ ~ ~ {CustomName:"Boss",CustomNameVisible:1b,Glowing:1b,PersistenceRequired:1b,attributes:[{id:"minecraft:max_health",base:40d}],Health:40f}
  • Java 26.xFrom Java 1.21.2 onward, attributes use names such as minecraft:max_health without the generic prefix. From 1.21.5 onward, the name is an SNBT text component. Health sets the current health to the new maximum immediately.

Output: Java 1.20 – 1.20.6

/summon
/summon minecraft:zombie ~ ~ ~ {CustomName:'{"text":"Boss"}',CustomNameVisible:1b,Glowing:1b,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:40d}],Health:40f}
  • Java 1.20 – 1.20.6Up to Java 1.20.6, the fields are called Attributes, Name, and Base, and the attribute has the generic prefix. The name is JSON text enclosed in single quotes.

Output: Bedrock

/summon
/summon zombie Boss ~ ~ ~
  • BedrockBedrock does not support NBT data with /summon. You can specify the type, name, and position, but you cannot set health, glowing, or persistence with the command.

What the generator can do

Build Minecraft commands without syntax errors

Everything you need for the most common commands, in one tool for both editions.

Java and Bedrock

Switch editions with one toggle: selectors, IDs, text formats, and arguments adjust accordingly—for example, c=3 instead of limit=3, or rawtext instead of a text component.

Correct syntax for each version

Six Java version ranges from 1.20 to 26.3: game rule names, text components, attributes, and /time change, so the generator uses the right syntax for each.

Selector builder

Add @p, @a, @r, @s, @e, or @n with a click, plus filters for entity type, name, tag, distance, count, sort order, game mode, level, and team.

Tellraw and Title with previews

Combine multiple text segments with individual colors, hex colors, bold, italic, and more, plus click actions and hover text. Preview the message before using it.

All commands with syntax

The command list includes all 89 Java and 82 Bedrock commands, with descriptions, permission levels, and every syntax variant ready to copy, directly from the game files.

Helpful warnings instead of errors

The generator warns you before the game rejects a command: if the /fill area is too large, the command exceeds the 256-character chat limit, you use @n in an older version, or Bedrock does not support an option.

How it works

How to create a Minecraft command with the Command Generator

From choosing a command to using the finished result in-game in three steps.

Step 1

Choose a command and version

Select Java or Bedrock above, your version if you choose Java, and then a command such as /summon, /tp, or /gamerule.

Step 2

Fill in the fields

Set the target, mob, effect, coordinates, or text. The command on the right updates with every change.

Step 3

Copy and paste

Copy the command and paste it into chat, the server console (without the slash), or a command block.

Command list

All Minecraft commands at a glance

All 89 Java Edition 26.3 commands grouped by category, followed by the 36 commands exclusive to Bedrock. Click a category to expand the commands and their descriptions. You can find the full syntax, including all arguments, under “Command list” in the tool.

Players & Items16 commands/advancement /clear /effect /enchant /experience /gamemode …
/advancement
Grants or revokes player advancements.
/clear
Removes all or specific items from players' inventories.
/effect
Applies or removes status effects such as Speed or Regeneration for players or mobs.
/enchant
Enchants the item in a player's hand, up to its normal maximum level.
/experience (/xp)
Gives or removes experience points or levels for players, or checks their amount.
/gamemode
Changes players' game mode to Survival, Creative, Adventure, or Spectator.
/give
Gives players items in a specified quantity; in Java Edition, you can also specify names, enchantments and other data.
/item
Changes or replaces items in slots belonging to blocks and entities.
/loot
Generates loot from a loot table and gives it to players, drops it or places it in containers.
/posteffect
Applies, lists, or removes a post-processing screen effect for players.
/recipe
Unlocks or locks recipes in the recipe book.
/spawnpoint
Sets a player's personal spawn point.
/spectate
Makes a player in spectator mode view the world through an entity's eyes.
/spreadplayers
Spreads players or entities randomly across an area, optionally separating them by team.
/team
Creates teams and sets their color, prefix, friendly fire and name tags.
/teleport (/tp)
Teleports players or entities to coordinates or another entity, optionally setting their facing direction.
World & Blocks16 commands/clone /difficulty /fill /fillbiome /forceload /gamerule …
/clone
Copies an area of blocks to another location.
/difficulty
Shows or changes the world's difficulty.
/fill
Fills a cuboid between two corners with a block, optionally making it hollow or an outline, or replacing only a specific block.
/fillbiome
Changes the biome in an area of the world.
/forceload
Keeps chunks loaded even when no player is nearby.
/gamerule
Shows or changes a game rule, such as whether players keep their inventory after death.
/locate
Finds the nearest structure, biome or point of interest and returns its coordinates.
/particle
Spawns particles at a position, with a specified count, spread and speed.
/place
Places a feature, structure, template, or jigsaw structure at a position.
/seed
Shows the world seed.
/setblock
Places a single block at a position, optionally destroying the existing block or only placing it in air.
/setworldspawn
Sets the world spawn point where new players appear.
/tick
Controls game speed: freeze ticks, advance them step by step, or speed them up.
/time
Sets, advances, or queries the time of day.
/weather
Sets the weather to clear, rain or thunder, optionally for a specified duration.
/worldborder
Sets the world border's size, center, damage, and warnings.
Mobs & Entities8 commands/attribute /damage /kill /ride /rotate /summon …
/attribute
Reads or changes a mob's or player's attributes, such as maximum health, speed, or size.
/damage
Deals damage to a mob or player, with a specified damage type and source.
/kill
Kills players, mobs, or other entities; without a target, kills you.
/ride
Makes one entity ride another or dismount.
/rotate
Rotates an entity to face a direction, position or another entity.
/summon
Summons a mob or other entity at a position; in Java Edition, you can also specify its name, properties and attributes.
/swing
Makes an entity swing its main hand or off-hand.
/tag
Adds, removes or lists entity tags, for example for use with selectors.
Chat & Display11 commands/bossbar /dialog /me /msg /playsound /say …
/bossbar
Creates and edits custom boss bars, including their title, color, value and players.
/dialog
Shows players a dialog from a datapack or closes it.
/me
Posts an action in third person to chat, such as “* Steve waves”.
/msg (/tell, /w)
Sends a private message to a player.
/playsound
Plays a sound at a position for one or more players.
/say
Sends a chat message to all players.
/stopsound
Stops all or specific sounds for players.
/teammsg (/tm)
Sends a message to all members of your team.
/tellraw
Sends a formatted chat message with colors, click actions, and hover text.
/title
Shows players a large title, subtitle, or text above the hotbar.
/waypoint
Lists and changes locator bar waypoints, such as their color and style.
Server & Permissions21 commands/ban /ban-ip /banlist /defaultgamemode /deop /help …
/ban
Permanently bans a player from the server, optionally with a reason.
/ban-ip
Bans an IP address or a player's IP from the server.
/banlist
Lists banned players or IP addresses.
/defaultgamemode
Sets the game mode new players use when joining the server.
/deop
Removes a player's operator privileges.
/help
Shows available commands or the syntax of a command.
/kick
Kicks a player from the server, optionally with a reason.
/list
Shows which players are currently online.
/op
Grants a player operator permissions so they can use commands.
/pardon
Unbans a player.
/pardon-ip
Unbans an IP address.
/publish
Opens a single-player world to players on the local network (LAN).
/save-all
Saves the world to disk immediately.
/save-off
Turns off automatic world saving.
/save-on
Turns automatic world saving back on.
/setidletimeout
Sets how many minutes of inactivity pass before players are automatically kicked from the server.
/stop
Shuts down the server cleanly.
/transfer
Transfers players to another server.
/unpublish
Closes a world previously opened to LAN.
/version
Shows the server version.
/whitelist
Manages the whitelist: adds or removes players, or turns the list on or off.
Datapacks & Technical17 commands/compute /data /datapack /debug /execute /fetchprofile …
/compute
Calculates and returns a numerical value using a value source, for a block, an entity or neither.
/data
Reads, changes, merges, or deletes NBT data for blocks, entities, and storage.
/datapack
Enables, disables or lists the world's datapacks.
/debug
Starts or stops performance profiling, or traces a function step by step.
/execute
Runs another command under specified conditions, at a position or as another entity.
/fetchprofile
Loads a player profile and skin by name, UUID or entity, for example for heads or mannequins.
/function
Runs a function from a datapack or behavior pack.
/jfr
Starts or stops a Java Flight Recorder recording to analyze server performance.
/perf
Measures server performance for 10 seconds and saves a report.
/random
Rolls a random number within a range and displays or returns it.
/reload
Reloads datapacks or functions and scripts without restarting the server.
/return
Ends a function and returns a value or the result of a command.
/schedule
Schedules a function to run later or cancels a scheduled run.
/scoreboard
Creates and displays objectives and scores, for example in the sidebar.
/stopwatch
Creates stopwatches, checks their time, restarts them or removes them.
/test
Creates, starts and manages automated game tests (GameTest).
/trigger
Allows players without operator permissions to change a permitted score, for example in datapack menus.
Bedrock only36 commands/aimassist /allowlist /camera /camerashake /changesetting /clearspawnpoint …
/aimassist
Turns player aim assist on or off and sets its strength.
/allowlist
Manages the Bedrock server allowlist: adds or removes players, or turns the list on or off.
/camera
Sets a player's camera to another position or perspective, with transitions.
/camerashake
Shakes players' cameras with a specified intensity, duration and shake type.
/changesetting
Changes a setting on the running Bedrock Dedicated Server, such as the difficulty.
/clearspawnpoint
Clears a player's personal spawn point, so they respawn at the world spawn.
/controlscheme
Sets or removes a player's control scheme.
/daylock
Stops or resumes the day-night cycle.
/dialogue
Opens an NPC's dialogue for a player or changes that dialogue.
/event
Triggers a mob entity event from a behavior pack.
/fog
Adds or removes a fog setting for a player.
/gametest
Starts and manages automated game tests (requires the beta experiment to be enabled).
/hud
Hides or shows parts of the player's HUD, such as the hotbar or health bar.
/inputpermission
Enables or disables a player's inputs, such as movement or camera controls.
/mobevent
Turns mob events such as pillager patrols or wandering traders on or off.
/music
Plays, queues, or stops music tracks, or changes their volume.
/packstack
Shows the client or server's loaded resource and behavior packs in chat.
/permission
Reloads and applies the Bedrock Dedicated Server's permissions.
/playanimation
Makes entities play an animation once.
/project
Manages a project in the Bedrock Editor (Editor mode only).
/reloadconfig
Reloads the Bedrock Dedicated Server's configuration files, such as variables and permissions.
/reloadpacketlimitconfig
Reloads the Bedrock Dedicated Server's packet limit settings.
/replaceitem
Places an item in a specific slot of an inventory or block.
/save
Controls saving on the Bedrock Dedicated Server, such as for Backups while it is running.
/script
Provides debugging and profiling for scripts in behavior packs.
/scriptevent
Triggers a script event with a message to connect commands to scripts.
/sendshowstoreoffer
Opens a Marketplace page for a player (Bedrock Dedicated Server only).
/setmaxplayers
Changes the maximum number of players in the current session.
/structure
Saves an area as a structure or loads a saved structure into the world.
/testfor
Counts entities matching a selector.
/testforblock
Checks whether a specific block is at a position.
/testforblocks
Checks whether two regions contain the same blocks.
/tickingarea
Adds, removes, or lists areas that remain loaded.
/titleraw
Shows titles using rawtext-formatted text, such as translations or scores.
/toggledownfall
Turns rain or snow on or off.
/wsserver
Connects the game to a WebSocket server.

Discover more

More tools

Server Configuration Generator

Describe your server.properties in your own words using the ZapX AI Agent or set each option manually — with a live preview to copy or download.

Built by Florian Galz

Enchantment Calculator

Calculate the cheapest anvil order for your enchantments — including prior work penalty and the 39-level cap.

Built by Rugile Rutkauskaite

Give Command Generator

Choose an item, name, lore, and enchantments—a ready-to-use /give command with the correct syntax for each Java version.

Built by Rugile Rutkauskaite

Color Codes

All 16 color codes and 6 formatting codes, with chat, MOTD, and MiniMessage syntax and HEX values in one reference.

Built by Rugile Rutkauskaite

Potion Chart

24 potion recipes with ingredients and brewing times, individual icons for each potion—searchable and filterable by category.

Built by Rugile Rutkauskaite

Mob list

Search all Minecraft mobs for Java & Bedrock, with health points, damage, drops, spawn biomes and a ready-to-use /summon command.

Built by Florian Galz

Was this tool helpful?

Your feedback helps us prioritize and improve content.

FAQ

Frequently asked questions

Quick answers about Minecraft commands, selectors, game rules, and the differences between Java and Bedrock.

What does the Minecraft Command Generator produce?

A finished command in the syntax for your edition and version. A Zombie named “Boss” with 40 health that glows and does not despawn becomes /summon minecraft:zombie ~ ~ ~ {CustomName:"Boss",CustomNameVisible:1b,Glowing:1b,PersistenceRequired:1b,attributes:[{id:"minecraft:max_health",base:40d}],Health:40f} for Java 26.x, /summon minecraft:zombie ~ ~ ~ {CustomName:'{"text":"Boss"}',CustomNameVisible:1b,Glowing:1b,PersistenceRequired:1b,Attributes:[{Name:"generic.max_health",Base:40d}],Health:40f} for Java 1.20 – 1.20.6, and /summon zombie Boss ~ ~ ~ for Bedrock, because Bedrock does not support properties or attributes with /summon.

How do I enter commands in Minecraft?

Press T to open chat, or type the slash directly, then paste the command and press Enter. Omit the slash in the server console; in a command block, it does not matter. In chat, you need operator permissions or cheats enabled. On Bedrock, cheats must be enabled for the world. Java commands longer than 256 characters do not fit in chat; use a command block instead.

What Minecraft commands are there?

Java Edition 26.3 has 89 commands; Bedrock Edition has 82. The most useful for players are /gamemode, /give, /tp, /effect, /time, /weather, and /gamerule. For building projects, there are /fill, /setblock, and /clone; for mapmakers, /summon, /tellraw, /title, /execute, and /scoreboard. The tool’s command list shows every command with its description, required permission level, and all syntax variants.

What’s the difference between Java and Bedrock commands?

Many commands have the same name but different syntax. Bedrock selectors use r, c, m, and l instead of distance, limit, gamemode, and level: /kill @e[type=minecraft:zombie,distance=..10] becomes /kill @e[type=zombie,r=10]. Bedrock does not support NBT data with /summon; /tellraw uses rawtext with § color codes; and /xp adds L after the number for levels. Some commands are exclusive to one edition, such as /attribute and /data on Java or /camera and /tickingarea on Bedrock.

Why doesn’t my Minecraft command work?

Usually, the syntax does not match your version. Since Java 1.21.11, game rules have different names (keep_inventory instead of keepInventory); from 1.21.5, text components use SNBT; from 1.21.2, attributes no longer have the generic prefix; and in 26.x, /time uses time markers. Select your exact version range in the generator. The game will also reject the command if you lack operator permissions or cheats are disabled.

How do target selectors like @a, @p and @e work?

@p selects the nearest player, @a all players, @r a random player, @s yourself, @e all entities, and @n the nearest entity (Java 1.21 and later). Use square brackets to narrow the selection by type, name, tag, or distance, for example. The generator’s selector builder adds the brackets for you, using the correct syntax for Java or Bedrock.

How do I enable keepInventory?

Use /gamerule. In Java 26.x and 1.21.11, the command is /gamerule keep_inventory true; in older Java versions, it is /gamerule keepInventory true; and on Bedrock, it is /gamerule keepinventory true. All players will then keep their inventory and experience when they die. Select the rule from your version’s list in the generator, and it will use the correct name automatically.

How do I make it daytime or stop the rain?

/time set day makes it morning, while /weather clear stops rain or thunderstorms. Both commands work the same way in Java and Bedrock. Add a duration in seconds to the weather command, or set the time of day in ticks (a Minecraft day has 24000 ticks).

Can I use /summon to create mobs with more health or make them giant?

Yes, in Java. The generator lets you set maximum health, speed, attack damage, and, from 1.20.5 onward, size. You can also set a name, disable AI and sound, and make the mob invulnerable, glowing, and persistent. The generator writes attributes in your version’s format and sets current health to the new maximum. Bedrock does not support this data with /summon; you can only specify type, name, and position.

Still have questions?

Contact Support
Minecraft server listSurvival, SMP, Skyblock, Modpacks and more – with live player counts and vote rankings.
Ready for your own server?

Rent your own Minecraft server in 60 seconds

Operator permissions for all commands, DDoS protection, and modpacks installed with one click—your server is ready to run.

4.6/5 Google32,000+ Active serversSince 2010

No setup. No risk. Online in 60 seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all Minecraft tools