Minecraft command generator

Pick a command, fill in the boxes and copy a line that works.

Move a player to coordinates, or to another player. ~ means relative to where they stand.

/tp @s 0 100 0

Commands without the guesswork

Pick a command, fill in the boxes and copy the line. The generator writes the namespace (minecraft:) and the argument order for you, so a typo in a block id or a swapped coordinate does not cost you a test run.

To run them you need operator rights. On a Saryno server open the Console tab, or press T in the game if you are an operator. If you need item commands with names, lore and enchantments in one go, use the give command generator.

Questions

Do I type the slash?

In the game chat, yes. In the server console or a command block, leave the slash off (command blocks accept it too, the console does not).

What do @p, @a, @s and @r mean?

@p is the nearest player, @a is every player, @s is whoever runs the command and @r is a random player. @e targets every entity, so use it with care.

Why does a command say "Unknown or incomplete command"?

A value is missing or in the wrong place, the version is older than the command, or you are not an operator. The red text points at where it stopped understanding.

What does ~ mean in coordinates?

~ is the position of whoever runs the command. ~5 is five blocks along that axis, ~-5 five blocks the other way. ^ is relative to where the player looks.

Are these commands for Java or Bedrock?

They are Java Edition commands for current versions. Bedrock uses similar names but some arguments differ, so check on a Bedrock world before relying on one.

Related guides

More free tools

Minecraft seed mapBiomes, villages and strongholds for any seed, or your own worldMinecraft village finderFind every village in a seed, any Java versionMinecraft stronghold finderLocate every stronghold and the End portalMinecraft slime chunk finderShow slime chunks for a seed, with a chunk gridWoodland mansion finderFind woodland mansions for any seedAncient city finderFind ancient cities in the deep darkOcean monument finderFind ocean monuments for any seedNether fortress finderFind nether fortresses and bastionsEnd city finderFind end cities and ships for any seedTrial chambers finderFind trial chambers in Minecraft 1.21 and newerMinecraft server RAM calculatorHow much memory does your server need?server.properties generatorBuild a server.properties file with the right settingsMOTD generatorDesign the message shown in the server list, with coloursCrash log analyzerPaste your log and get the likely cause and the fixJVM flags generatorStart-up flags and a start script for your RAMNether portal calculatorOverworld and Nether coordinates, and where portals linkCircle and sphere generatorPixel circles for building, with block countsPlugin compatibility checkerWill your plugins work on your Minecraft version?Minecraft server status checkerIs a server online? Players, version and MOTDChunk and region calculatorBlock coordinates to chunk, region and file nameMinecraft color codesEvery color and format code, with a live previewOffline UUID and whitelist generatorUUIDs for offline-mode servers, whitelist.json and ops.jsonMinecraft ticks and time converterTicks, seconds, minutes and the in-game clockJava version checkerWhich Java does your Minecraft version need?Minecraft XP level calculatorLevels to XP points and the command to give themMinecraft server name generatorName ideas by style, with the address each would makeMinecraft give command generatorItems with names and enchantments, for every versionChunky pre-generation time estimatorHow long will pre-generating my world take?Minecraft server cost calculatorMonthly and yearly price for the memory you needMinecraft world border calculatorBorder size, commands, chunks and walking time

Ready to run it?

3 GB is free forever, with no card and no ads. Add memory when you need it.