If you are familiar with the
<slot> argument, for example:
goop testinventory <player> any v COBWEB 0
succeeds when the player has cobwebs in their inventory (oh yea, thats another thing of this update, testinventory no longer needs a scoreboard be specified to run)
Well, the concept of 'Slots of Success means that you can now use @t in a following command to target only the slots that
succeeded in the
previous command:
goop testinventory <player> any v COBWEB 0 comp oS: goop nbt setItem @s @t m MATERIAL GOLDEN_COBWEB +0
This command will transform all the cobwebs in the player's inventory into 'Golden Cobweb' MMOItems (keeping the same amount, +0)
*Note the comp word, that tells the command to not just quit after one is found (which is the usual case, an optimization. Instead, to run to completion through all inventory slots)
-----------
Furthermore, the TAB Completer now autocompletes commands on success : o