Minecraft conditional subcommand blocks introduction

blocks
Used to compare blocks in two rectangular areas of the same size
Format: if/unless blocks <first diagonal position of the rectangular block> <second diagonal position of the rectangular block> <coordinates of the northwest lower corner block of the control area (i.e. the minimum x y z coordinates in the rectangular area)> <comparison mode>
Explanation:
The blocks parameter is equivalent to the testforblocks command before 1.13, which can be used to compare whether blocks in a large range are the same (NBT tags can be attached). The comparison mode can be all (compare all blocks) or masked (ignore air blocks). Since this parameter is more flexible, no examples will be written here.