/setblock — Place Block

minecraft — Console Commands

Place or replace a single block at coordinates.

Syntax

/setblock <x> <y> <z> <block> [mode]

Example

/setblock ~ ~1 ~ minecraft:chest{facing:"north"}

💡 Notes

Modes: destroy (breaks existing + particles), keep (only if air), replace (default).

👍 Pros

  • Precise block placement
  • Command block mechanics
  • Automation

👎 Cons

  • Single block only
  • Need exact coordinates
🔍 Search Wiki
Type a command, item, or cheat to search across 60+ games.