mojira.dev
MC-308106

/execute if items returns false when hand is empty

Expected Behavior:

The command /execute if items entity @s weapon.mainhand air should say “Test passed“ in the chat, when the mainhand is empty

Ingame Behavior:

The mentioned command prints out “Test failed“

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

For players running in this issue:

/execute unless entity @s weapon.mainhand * does what the other command should do

Thank you for your report!
We're tracking this issue as MC-269140, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Edward

(Unassigned)

Unconfirmed

26.1.2

Retrieved