Item usage damage question

Issue description
I basically created an item (not a tool) that adds 1 health point (half a heart) to the player's health when right-clicked in the air, and which also gives +1 life to an entity when also right-clicked on it.
The problem is that I want this item to take usage damage when I do it (specifically 10 times until waste it out).
How do i procedure it?


PS: I am totally a noob in Mc Creator, i literally started using it yesterday.

PS2: I am a brazilian, what explain my horrible english, so sorry for any notable gramatical mistake

Issue comments

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.