Skip to tools
Cookie SMP
Discord ↗

COOKIE TOOLS · COMMANDS

Minecraft Setblock Command Generator

Generate a Java setblock command using verified block IDs and replace, keep or destroy mode. Validate absolute, relative or local coordinates before copying.

FreeNo sign-upBrowser-basedJava 1.21.11 data

Make it yours

Your result

Loading controls…

How to use

  1. Choose a block, enter three block coordinates and select replacement behavior. Use ^ on all three axes when using local space.
  2. Copy or download the result. Commands require cheats or operator permission; this website never executes them.

Examples

Stone at relative origin

/setblock ~ ~ ~ minecraft:stone replace

Air in keep mode

/setblock ~ ~ ~ minecraft:air keep

Supported versions & limitations

Verified Java dataset: 1.21.11

  • Block states and block-entity data are not accepted by this simple builder. Sign block data has its own validated tool.
  • Verified codec: Java 1.21.11 only. No Bedrock, Java 26.x or legacy item-NBT support is implied.

Frequently asked questions

Will this command run on Cookie SMP automatically?

No. The tool produces text only. You need permission in the world where you choose to use it.

How is the syntax checked?

Golden fixtures are parsed offline with the official Java 1.21.11 command dispatcher. Syntax validation does not prove that a live world has matching targets or conditions.

Sources

Facts reviewed 2026-10-12. Supported scope and preview limitations are described above.

Enjoy building? Try Cookie SMP.

Survival with friends. Bring your next idea to life.

How to Join ↗