your current location:首页 > news>Minecraft conditional subcommand blocks introduction

Minecraft conditional subcommand blocks introduction

2024-11-30 20:45:07|Myriagame |source:minecraft skins

Minecraft conditional subcommand blocks many players want to know, Minecraft has a very high degree of freedom, various versions are also continuously updated, many players like this game. Let's take a look at the Minecraftexecute conditional subcommand blocks introduction.

Minecraft conditional subcommand blocks introduction
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.