Minecraft Setblock and Fill Command Generator

A /fill is a /setblock with a second corner and a mode. The mode is what people get wrong: replace overwrites everything, keep only fills air, hollow and outline leave the interior alone. Choose the block, its state and NBT here, then pick the mode deliberately.

Java 26.2

Block Commands

Position

Stone

Single block placement

/setblock ~ ~ ~ minecraft:stone