tModLoader Use consumeable item without giving buff/health/mana?

Ahndrek Li'Cyri

Skeletron Prime
Hey there!
I'm making a few consumable items for my mod, but i cannot seem to make them work without making them give a buff or health or mana.
How can i make the item consumable without doing any of this?
 

Ahndrek Li'Cyri

Skeletron Prime
What exactly are you trying to have the consumable item do?
I have made a custom stat on the player that slowly drains over time, and the player must refill it by using a item. I was hoping it was possible that when this item is used, it would add a certain amount to the stat.
I have gotten the part where it adds it working, but only if I make the consumable item either give health or a buff, which i want to avoid if at all possible.
 

Ahndrek Li'Cyri

Skeletron Prime
I have figured it out!
You can force a item to be used anyways even if it doesn't give and direct effects by using public override bool UseItem(Player player) and making it return true.
 
Top Bottom