Observed behavior
/execute if block ~ 320 ~ #minecraft:air run say air
/execute unless block ~ 320 ~ #minecraft:air run say not air
Both commands will fail rather than the test.
Expected behavior
/execute unless block ~ 320 ~ #minecraft:air run say not air
-> not air
As the block is not in the #minecraft:air
tag, it’s the expectation that the command runs through completion.
Why it’s a problem
It’s non-trivial (not impossible) to deal with failing execute
commands that run at arbitrary positions.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki