kaiser_ Posted June 4, 2020 Posted June 4, 2020 I'am trying to override the getUseAction method in the Item class, but it doesn't work somehow. I tried to get my item to use the Drink animation when used. Can someone point the issue out for me, or provide me some info on how to do this in the right way? I would be really happy. I also have the item registered as well and it's perfectly visible in the game, however I didn't bother using a texture for it yet, is it an issue in any way? Here is the class: public class ItemDrink extends Item { public ItemDrink(Properties properties) { super(properties); } @Override public UseAction getUseAction(ItemStack stack) { return UseAction.DRINK; } } Also, can anyone provide me with a useful guide on how to properly work with this stuff? Quote
kaiser_ Posted June 4, 2020 Author Posted June 4, 2020 Thanks man, I'm really happy about your answer Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.