How do I target items in the player inventory with specific NBT data?

Started by tavolga on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Sep 2023
Points:
90

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How do I target items in the player inventory with specific NBT data?

Currently, if I do this:

 r/MCreator - Targeting items with NBT?

the "Has Event/target entity in inventory" block only returns true if the item does not have any NBT data. How do I go about targeting items with NBT data? Should I create a function that searches the player inventory instead?

Active 1 year ago
Joined Sep 2023
Points:
110

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Try this
Fri, 09/22/2023 - 08:40

Try this