/fill
In this tutorial, I will be showing you how to use the /fill command along with showing some example commands.
/fill <x1> <y1> <z1> <z2> <y2> <z2> <block> [oldBlockHandling]
The /fill command is used to place a collection of blocks anywhere in a world. To use it we first need to put in the coordinates of one corner of the box we will fill. Then our next three arguments are the opposite corner. This command is like a hybrid between /setblock and /clone.
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 should work perfectly fine.
/fill <x1> <y1> <z1> <z2> <y2> <z2> <block> [oldBlockHandling]
The /fill command is used to place a collection of blocks anywhere in a world. To use it we first need to put in the coordinates of one corner of the box we will fill. Then our next three arguments are the opposite corner. This command is like a hybrid between /setblock and /clone.
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 should work perfectly fine.
There is a limit of 32,768 blocks that can be filled otherwise you can go wild!
But we can also add more with some optional arguments. We can choose what happens to the blocks there before it (If there is any). The options are:
Destroy - This breaks all blocks like a survival player would (Leaves block drops, exp etc)
Keep - Only sets the block if it is air
Replace - Removes the blocks like it would in creative (No drops etc)
If the option is replace you can, if you want to, add a block id afterwards and it will only replace the block you specified.
You can also add data tags straight after the block (You can also use McStacker)
But we can also add more with some optional arguments. We can choose what happens to the blocks there before it (If there is any). The options are:
Destroy - This breaks all blocks like a survival player would (Leaves block drops, exp etc)
Keep - Only sets the block if it is air
Replace - Removes the blocks like it would in creative (No drops etc)
If the option is replace you can, if you want to, add a block id afterwards and it will only replace the block you specified.
You can also add data tags straight after the block (You can also use McStacker)
I hope you learned something ~Blue