mojira.dev
MC-296112

execute unless block fails outside of build limit

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.

Comments 2

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 HistorySnapshot Version HistoryThe 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

In case it’s useful for anyone since this was WAI’d.

predicates are not affected by invalid positions, where execute is. execute if|unless block has three states, true|false|exception, location_check predicates have true|false.

knirch

(Unassigned)

Confirmed

(Unassigned)

1.21.5

Retrieved