mojira.dev
MCPE-154915

Hasitem 'quantity', 'item', and 'data' filters are broken

Steps to Reproduce

  1. Grab 64 lime wool (could be anything, but for example's sake it's lime wool)

  2. Run these commands:

/execute @a[hasitem={item=diamond,data=14,quantity=..63}] ~ ~ ~ say hi (Command 1)
/execute @a[hasitem={item=diamond,data=14,quantity=63..}] ~ ~ ~ say hi (Command 2)

Expected Result

Doesn't run for both commands

Observed Result

Runs on Command 1 but not on Command 2

Comments 1

Thank you for your report!

However, this issue has been closed as Working as Intended.

"..63" indicates "63 or less", which includes zero. This means the command will return true if the entity has no diamonds at all.

If you need help or have a suggestion you might like to follow a link below.

Quick Links:
 📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Cra-ZGuy

(Unassigned)

Confirmed

Windows

Windows 11 21H2

1.18.31

Retrieved