We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

3

/itemcount command

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    Useful! & You can do it with a lot of line commands with /execute store score <EntitySelector> <score> run data get entity <EntitySelector> Inventory

  • 0
    Registered User commented
    Comment actions Permalink

    This is already possible using /clear. When you set the maximum item count to 0, it returns the number of the specified items in a player's inventory.

    /clear @a snowball 0