I am completly new to this, and I'm trying to make a simple hotdog on a stick that you can hold out infront of a campfire to cook and recieve some buffs from. I have everything else in place already, I just don't know how I would make the item be held out, like how you would hold out a stick over a campfire when roasting marshmellows. I tried this:
@Override public ItemUseAnimation getUseAnimation(ItemStack itemStack) { return ItemUseAnimation.SPEAR; }
But looking at the internal Item class, it seems that the animation won't be rendered unless the item has the KINETIC_WEAPON DataComponent, and I don't particularly want to make my hotdog stick a weapon... so.. I'm cluess.
I also tried some mixin stuff for a custom animation but that too did not work.