Posted February 16, 20214 yr Hi! I'm a long time lurker, and I decided to actually make a post about a problem that I'm stuck on. I'm not sure how to manage pet (i.e. cats, dogs, birds, etc.) interaction. In particular I'd like to be able to right click on pets and apply items to them, like robes, and boots. I've scoured through all the events I can subscribe to, and none of them seem to suit this particular problem. I've also slogged through some code on GitHub, but couldn't find a solution. Should I be managing the interaction in each item class? Is there a event that I overlooked? Is there a centralized/organized way of tackling this problem? If so, I cant seem to think of any way that is easily expandable. If you have any thoughts on this I'd love to hear them!
February 17, 20214 yr 8 hours ago, Gorp5 said: Is there a event that I overlooked? I think you can use PlayerInteractEvent # EntityInteractSpecific. then check if the player is interacting with the entity you want
February 17, 20214 yr Author Thanks for the reply! This is exactly what I've been looking for. Ill try this out.
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.