How to put a little meter on an item?

Started by Weranura on

Topic category: Help with MCreator software

Last seen on 21:30, 7. Oct 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to put a little meter on an item?

I'm making a teapot and I want to have a little meter on the slot where the teapot item is that shows how full the teapot is. Do I need to make a bunch of new items for each teapot in combination with each level of the meter? Or is there a simpler/faster way to do it?

Last seen on 07:52, 22. Jul 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could try using an item…
Mon, 09/06/2021 - 09:25

You could try using an item use count. And make a procedure that checks the use count, and when only 1 durability is left, then it removes a full teapot from your inventory, and replaces it with an empty teapot. You can't do anything with this one. And then, when you fill it up again, it'll remove the empty teapot from your inventory and replace it with a full teapot. And maybe to make it drinkable, when it's right-clicked, it'll lower it's durability by 1 and give you a saturation effect for 1 second (A potion effect that is the opposite of hunger).