minecraft replace all blocks of type code example
Example 1: command for replace the blocks
/fill <from> <to> <block> replace <newTileName>
Example 2: minecraft commands to remove blocks
/fill <from> <to> air replace <block_to_be_removed>
/fill <from> <to> <block> replace <newTileName>
/fill <from> <to> air replace <block_to_be_removed>