Can I detect what item breaks in my inventory?

Started by Supernova1321 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I detect what item breaks in my inventory?

I need help with my mod. I am trying to make it to where if I break a Custom Hoe, I get an advancement, like the one that already exists in Minecraft, where you must use up all the uses of a Diamond Hoe.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you create a new…
Tue, 07/28/2020 - 00:08

If you create a new procedure and select the trigger to be "Item is destroyed," then it will provide the dependencies for an itemstack, or the item that broke. After that, all you have to do is compare that itemstack to whatever item you want to test for, and you're done!

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you! this helps a lot…
Sat, 09/05/2020 - 02:51

Thank you! this helps a lot with my mod.