How to make a food item with Durability?

Started by Megfish21 on Sun, 08/16/2020 - 10:59

Topic category: Help with modding (Java Edition)

Last seen on 22:17, 20. Jan 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a food item with Durability?
Sun, 08/16/2020 - 10:59

Is it possible to make a food item that has durability? like everytime you eat it it gets damaged?

Last seen on 16:46, 22. Dec 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello comrade, It is…
Sun, 08/16/2020 - 13:46

Hello comrade,

It is possible indeed. The simplest way to do that is to create a texture for each stage of your food and create a new item for ezach texture/stage. Then you need to create a procedure that spawns the next food item and finally link that procedure to "'When food eaten". You just need to create the same procedure for each stage. If you need to I can send you a link to download a template.

Last seen on 22:17, 20. Jan 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thank u
Wed, 01/20/2021 - 22:18

thank u