It is currently impossible to specify what slot items get cleared from. I propose adding an optional slot parameter at the end of the clear command to allow mapmakers and datapack writers finer control over removing items from inventory, since we don't have write access to nbt tags for players via data modify/Inventory[-1].
Not passing in the optional slot parameter would make the command behave as it currently does; and passing in the slot number would target just the individual slot, and not remove any more than the max number from that slot (or clear the slot entirely, whichever is higher).
Please sign in to leave a comment.
4 Comments