How to ignore item damage/NBT data in procedure?

Started by Cole Snapper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to ignore item damage/NBT data in procedure?
Wed, 05/21/2025 - 18:20 (edited)

I want to make a procedure that checks for an item in the player's inventory but, the "has event/target entity in inventory" code block specifically matches data components, meaning, if an item is damaged or has its NBT data altered in any way, it suddenly doesn't count as the same item.

 

I'm using 2024.4 by the way.

Edited by Cole Snapper on Wed, 05/21/2025 - 18:20