xenondevs / Nova

Nova is a server-side modding framework for Paper servers that aims to streamline adding custom content like items, blocks, guis, and more, without client-side modifications, using resource pack tricks.
Other
372 stars 40 forks source link

[Request - Generic] Add drinkable item behavior #492

Closed Katalijst closed 4 days ago

Katalijst commented 1 week ago

Describe your feature request.

Add a way to make drinkable item with a behavior that can have a onConusme overridable event. It can be based on a custom potion with custom color and a model with predicate based on the color of the potion

Additional context

No response

NichtStudioCode commented 4 days ago

I think this is redundant in 1.21.3, as component changes now allow the selection of the consume animation and sound effect. I have however added a handleConsume function to ItemBehavior, which will be available in 0.18