How do I use command blocks to test for multiple blocks(a specified block)? I've been looking and no website will tell me. I have tried using many test for block but just lined up, but it takes long amounts of time and is very tedious.
You can chain
execute detect, for example like this:
/execute if block ~ ~-1 ~ gold_block if block ~ ~2 ~ diamond_block run say hi
This makes every player who stands on a gold block and under a diamond block say "hi".