Then I need to create a block and object? And then in the subject method onClick transfer the block? Of course the method onClick will be checked by pressing a shift.
Hi, I have a bottle. It is placed in the world (the block), I want to be able to use method onItemUseFinish for drinking water from my bottle. How better to do it? Create the subject and when you click with shiftom put a separate unit, or a way to drink can be made in the block?
Sorry I am French, I'll try one more time to describe the problem.
My object is hit only once, after which its strength is not reduced.
To apply damage object I use: stack.setItemDamage(+1).
Damagayu your subject using the onItemUseFinish stack.setItemDamage(+1) in the method, there is the problem of the damage is applied only once. And how to make what method onItemUseFinish return the dishes only when my strength potions will end? Maybe use a different method and to give it to the player to inventory the dishes?