I posted a suggestion for this on reddit [1] as well as an alternative [2] might be better in general.
I see four different ways Mojang could address this: • Add a [minCount] argument to the /clear command • Change [maxCount] to [count] to clear exact amounts • Add a range spec in the form [min]..[max] instead of [maxCount] • Add an inventory test to the player filters (@p, etc.)
The first three are mutually exclusive, while the fourth could be added with or without any of the first three.
I like ranges in general because they are more expressive: • Want to clear up to 64 items? Use: `..64`. • Want to clear all items as long as they have at least 64? Use: `64..`. • Want to clear up to 64 items but only if they have at least 32? Use: `32..64` • Want to clear all items? Use: `..`, or leave blank. • Want to clear 64 items, but only if they have at least 64 items? Use: `64..64` or just `64`.
Range specs could theoretically be used for x/y/z coords as well instead of how 3D volumes are now specified for player/entity filters or the /clone and /fill commands in the current snapshots.
An inventory test would allow for map makers to test for special items to allow entry to new levels.
I posted a suggestion for this on reddit [1] as well as an alternative [2] might be better in general.
I see four different ways Mojang could address this:
• Add a [minCount] argument to the /clear command
• Change [maxCount] to [count] to clear exact amounts
• Add a range spec in the form [min]..[max] instead of [maxCount]
• Add an inventory test to the player filters (@p, etc.)
The first three are mutually exclusive, while the fourth could be added with or without any of the first three.
I like ranges in general because they are more expressive:
• Want to clear up to 64 items? Use: `..64`.
• Want to clear all items as long as they have at least 64? Use: `64..`.
• Want to clear up to 64 items but only if they have at least 32? Use: `32..64`
• Want to clear all items? Use: `..`, or leave blank.
• Want to clear 64 items, but only if they have at least 64 items? Use: `64..64` or just `64`.
Range specs could theoretically be used for x/y/z coords as well instead of how 3D volumes are now specified for player/entity filters or the /clone and /fill commands in the current snapshots.
An inventory test would allow for map makers to test for special items to allow entry to new levels.
Sorry for usurping a bug comment for suggestions!
[1] http://reddit.com/r/minecraftsuggestions/comments/1uxz00/add_mincount_to_clear/
[2] http://reddit.com/r/minecraftsuggestions/comments/1tzptp/add_inventory_test_to_player_filter_in_commands/