Check if player has obtained item before

Started by Tiny Desk Engineer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check if player has obtained item before

I want to do something that requires checking if a player has previously had a specific item in their inventory before. As in, if I put an Iron Ingot in my inventory and take it out, how can I find out that I've had the item in my inventory before? Can I query a player's statistics for that, or do I need to implement it myself?

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use variables or NBT tagsā€¦
Sat, 01/14/2023 - 06:05

Use variables or NBT tags. Whatever works best for you. If you need anymore advice, please ask