1.21.4 Dear experts, can I ask a simple command question?

execute unless entity @s[tag=skip_block] if blocks $(x) $(y) $(z) $(x2) $(y2) $(z2) masked minecraft:bedrock run say test | tag @s add skip_block

But it seems that this command doesn't work like that. How can I detect if there is a bedrock in a range? $(x) $(y) $(z) has been realized

Continue to help post