/setblock
In this tutorial, I will be showing you how to use the /setblock command along with showing some example commands.
/setblock <pos> <block> [destroy|keep|replace]
The /setblock command is used to place a block anywhere in a world. To use it we first need to put in the coordinates where we want the block to be, this can be an air block or where a block already exists.
Then we put in our block using block ids. If you don't know your blocks id, type some of it out and press tab or view a complete list here. We can now run the command and it will work perfectly fine.
/setblock <pos> <block> [destroy|keep|replace]
The /setblock command is used to place a block anywhere in a world. To use it we first need to put in the coordinates where we want the block to be, this can be an air block or where a block already exists.
Then we put in our block using block ids. If you don't know your blocks id, type some of it out and press tab or view a complete list here. We can now run the command and it will work perfectly fine.
But we can also add more. We can choose what happens to the block there before it (If there is one). The options are:
Destroy - This breaks it like a survival player would (Block drops, exp etc)
Keep - Only sets the block if it is air
Replace - Removes the block like it would in creative (No drops etc)
You can also add data tags straight after the block id (You can also use McStacker)
Destroy - This breaks it like a survival player would (Block drops, exp etc)
Keep - Only sets the block if it is air
Replace - Removes the block like it would in creative (No drops etc)
You can also add data tags straight after the block id (You can also use McStacker)
/setblock 255 65 84 minecraft:stained_glass 13 destroy
I hope you now understand how it works! ~Blue