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)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Joined Sep 2023
Points:

User statistics:

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

Try this