Gorp5 Posted February 16, 2021 Posted February 16, 2021 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! Quote
Luis_ST Posted February 17, 2021 Posted February 17, 2021 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 Quote
Gorp5 Posted February 17, 2021 Author Posted February 17, 2021 Thanks for the reply! This is exactly what I've been looking for. Ill try this out. 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.