mojira.dev
MC-239346

execute store output inconsistency

I am executing the following command every tick from a datapack
execute as @a store result score @s TEST run clear @s minecraft:potion 0
the expected behaviour of the score is to go to 0 whenever i drop the potions from my inventory, with the exception that it also checks for the "cursor slot" so if you happen to move said item through your inventory with your cursor it also outputs a 1 in the meantime
all good until you switch your gamemode to creative. then moving said object with your mouse no longer detects it as if it were into your inventory, outputting a 0
this could be intended, and sorry if it is so. but the inconsistency seems like a bug to me

Linked issues

Comments 2

Duplicate of MC-147499. Clear cannot target the cursor held item, as that item doesn't actually exist on the server's end.

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

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

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
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Mostacho Juanoh

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved