Keep item after crafting, but lower durability

Started by CUCAS CRAFT on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keep item after crafting, but lower durability

I'm making a cooking mod, where, for example, when you put cheese and a knife in a crafting table, you get a slice of cheese. The problem is, I want to keep the knife and lower the durability, so it breaks after x uses.

How?

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its kinda ez but hard. oneā€¦
Mon, 04/20/2020 - 02:55

its kinda ez but hard. one way is too make a copy of the knife , u make that it dont stay in grid. after, u take ur first knife and u make that it don't stay in the crafting grid. but u make a procedure in "when crafted or smelted" procedure: https://imgur.com/a/1Zn0U2s . u can add as more knife as u want and reapeat the procedure for every knife exept the last one. a tip, add in the special information the durability. and make that only the first knife is in a creative tab