How do you destroy a block using Commands? [duplicate]

How do you destroy a block using Commands? [duplicate] - Shabby damaged wall in ruined building

How do I make a command block destroy some glowstone?



Best Answer

You can use the /setblock command to replace the block with Air.

Example:

/setblock <x> <y> <z> minecraft:air destroy

Where <x>, <y> and <z> are the coordinates of the block you want to replace. destroy is an optional parameter that determines how the block is broken, in this case meaning that the block that was there would be destroyed as if it was destroyed by a player.

More information on the setblock command can be found here: Minecraft Wiki




Pictures about "How do you destroy a block using Commands? [duplicate]"

How do you destroy a block using Commands? [duplicate] - Crop mother and daughter sitting on bed while using laptop
How do you destroy a block using Commands? [duplicate] - Crop joiner working with wooden block using sharp tool
How do you destroy a block using Commands? [duplicate] - Cheerful black manager looking at smartphone while walking down street



Is there a command to destroy blocks?

1 Answer
  • Its actually /fill [X1] [Y1] [Z1] [X2] [Y2] [Z2] air replace [Block To Remove]. ...
  • replace is not a command for block minecraft:air (or whatever) ...
  • This worked: /fill [X1] [Y1] [Z1] [X2] [Y2] [Z2] air 0 replace [Block To Remove] digminecraft.com/game_commands/fill_replace_water.php.


  • How do you delete a specific block in Minecraft?

    For harder blocks like iron ore or obsidian, a pickaxe made from a higher-tier material is required. The player can also use shovels and axes to speed up the breaking of dirt and wood-type blocks (respectively), although, with the exception of snow, they are not required to get the resource drop.



    HOW TO USE COMMANDS TO MASS FILL/DESTROY/REPLACE BLOCKS in Minecraft Bedrock (MCPE/Xbox/PS4/PC)




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Dids, Tatiana Syrikova, Ono Kosuki, Ono Kosuki