Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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/

  • Author

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/

  • Author

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/

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.