Can I detect what item breaks in my inventory?

Started by Supernova1321 on

Topic category: Help with modding (Java Edition)

Last seen on 18:56, 17. Nov 2020
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.

Last seen on 16:47, 29. Oct 2023
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!

Last seen on 18:56, 17. Nov 2020
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.