It works for all the other execute if commands so expected it to also work for execute if block. Currently it comes up with an error.
I tried with the command:
/execute if block ~ ~ ~ stone
Error:
Unknown command at position 28: ... ~ ~ stone<--[HERE]
Comments 3
The other "execute if" subcommands work fine on their own (without a "run <command>").
/execute if entity @s
parses and runs fine.
/execute if score @s test = foo test
parses and runs fine.
/execute if block ~ ~ ~ stone
parses fine but returns an error when running: "Unknown command at position 30: ...~ ~ stone<--[HERE]"
Exactly as they mentioned above.
My command is just a tiny bit more complex, but just for testing:
execute if blocks -183 -60 343 -181 -58 345 -183 -60 348 all run say hello
Even though it works and runs just fine, it still gives the error message:
Incorrect argument for command at position 61: ...0 348 all <--[HERE]
So, according to the error message, my 'run say hello' shouldn't run, but it does.
Edit: forgot to mention that I was using 1.21
What is the exact command used and the error you get?