Inconsistency of /clear in creative mode
The problem concerns the behavior of the /clear on items in cursor in creative mode.
Behaviors wanted:
- the item in cursor can not be clear when it comes from the creative inventory.
- the item in cursor can be clear when it comes from a container or is picked up.
Unwanted behavior assumed:
- the item in cursor can not be clear when it comes from the survival inventory.
An example where this inconsistency appears:
When a creative player takes an item from his survival inventory, do an action and clear the item.
Currently, the item is not clear because it is held by cursor.
Linked Issues
is duplicated by1
Created Issue:
Inconsistency of /clear in creative mode
The problem concerns the behavior of the /clear on items in cursor in creative mode.
Behaviors wanted:
- the item in cursor can not be clear when it comes from the creative inventory.
- the item in cursor can be clear when it comes from a container or is picked up.Unwanted behavior assumed:
- the item in cursor can not be clear when it comes from the survival inventory.
An example where this inconsistency appears:
When a creative player takes an item from his survival inventory, do an action and clear the item.
Currently, the item is not clear because it is held by cursor.
is duplicated by
This might relate to MC-147499
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.
yeah, I am working on a ui utilizing the inventory system of minecraft, and I thought that I had gotten it all wrong.
This was not the case however, as once I had turned to survival mode, the issue didn't exist.
essentially: if you are in creative mode, clearing will not remove the item from the cursor, even if its the item that you want to clear
if you are in survival mode, it will remove the item from the cursor as it should
I have no idea why this inconsistency exists, but I would like to see that the creative mode side has parity to the survival mode side as clearing items from cursors is a unique mechanic of the /clear command that helps a lot with inventory system
can reproduce in 1.16.3
affects 21w03a
can confirm in 21w05a
Can confirm in 1.19.4, Note that it creates a ghost item
Can confirm in 23w16a. Seems not happening systematically for me.