/ Setblock

The command /setblock is used to generate a block at specific coordinates.

In this command, there will be two arguments: the coordinates (~ ~ ~) and the type of block.

Command logic: /setblock [Block coordinates] [Block Type]


Basic setblock

An easy use is to generate a stone block in front of the player with X=~-2.

/setblock ~-2 ~ ~ stone
GIF