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

9

Allow commands to test player inventory slots against data pack tags

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    That's simply not how NBT works; it has to match exactly how it's saved, and it's not saved with the tag.

  • 2
    Registered User commented
    Comment actions Permalink

    Dhranios Thanks for the feedback. I understand that's not how things work right now--that's why I made this suggestion--but I can see now how this might be too much of a change to how NBT data is fundamentally used to really be feasible. The basic idea behind my suggestion was more to give us a way to check inventory slots against data pack tags, similar to how custom recipes can be defined with a tag to allow a group of items to be interchanged in one ingredient slot without requiring a recipe to be defined for each item, so anything that could accomplish that would fulfill the intent of this suggestion. I'm going to update my suggestion to more clearly reflect that idea.

  • 1
    Registered User commented
    Comment actions Permalink

    I would love for this to be included, as I'd like a way to check if a player has any tool in their inventory, and then run a command. It seems to me like it should be in the game already.