All commands
Advanced

/setblock

Drop a single block at an exact spot — even ones you can't craft.

Try in Simulator

At a glance

Syntax

Syntax
/setblock <x> <y> <z> <block>
commandtargetcoordsvaluerequiredoptional

See it

What it does

Blocks fill the selected region

Anatomy

Every part, explained

  1. 1
    /setblockCommandRequired

    Places one block at a position.

  2. 2
    <x> <y> <z>PositionRequired

    Where to place it. ~ means 'here'.

  3. 3
    <block>BlockRequired

    The block id, e.g. stone, chest, command_block.

Your turn

Try it yourself

Playground
5 tokens · press Enter to run

Copy & paste

Examples

/setblock ~ ~ ~ stone

A stone block at your feet.

/setblock ~ ~1 ~ chest

A chest right above you.

/setblock 0 64 0 diamond_block

Mark the world origin.

Avoid these

Common mistakes

/setblock stone
/setblock ~ ~ ~ stone

Coordinates are required — all three of them.

/setblock ~ ~ ~ stones
/setblock ~ ~ ~ stone

Block ids are singular — 'stone'.

Keep going

Related commands