Jump to content

[Solved] Custom death messages for pets


_Bedrockbreaker_

Recommended Posts

I have a cat, that I can shear for cat hair. (don't question my sanity). But I want a custom death message for the cat when it dies due to over-shearing. How could I override the original message? Also, as a bonus question: how can I disable the cat from sitting/standing. Any method from getAISit doesn't seem to work. resetTask partially works, but not on the first two clicks after summoning the tamed ocelot.

Edited by _Bedrockbreaker_
Added [Solved]

Professional Hot Garbage Programmer.

https://github.com/Bedrockbreaker/

Link to comment
Share on other sites

ok, got it. But I can't exactly override a method inside a different method. (subscribed to interact(EntityInteract), and trying to handle everything in there. And I can't exactly get a reference to the entity before the player even clicks on it :P)  *Currently in eclipse at this point forward* So, it seems just putting entityCat.processInteract(player, event.getHand()); { } doesn't give me any errors, but I am going to assume it does somehow because of the ; before the two {}... And I am also going to assume if that is the way to do it, that I need to put something in the braces?

Professional Hot Garbage Programmer.

https://github.com/Bedrockbreaker/

Link to comment
Share on other sites

No, I don't have a custom entity, and I don't think creating a new one and replacing all the old ones with mine is the the solution I generally want to do (more like compatibility, than "force to use my cat"). But yes, for any ocelot that I can click on with shears, (which should be every ocelot) I want to disable it from standing/sitting in that right click only. If the player can't harvest more hair, or is not holding shears, the player can normally interact with the ocelot. Is that clear enough? or is more information needed? I just created a github here if you still are confused -> https://github.com/Bedrockbreaker/rtap

Professional Hot Garbage Programmer.

https://github.com/Bedrockbreaker/

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.