mc.roleplayhub.com

269 players online

[Client Mod] Fixing the /am and school planner bug

2500

Level 12
Community Team
Developer
2500
2500
Notable
greetings hi hello srp community

has any of the following ever happened to you?
  • ever tried calling someone with your phone in offhand, only to accidentally right click- ending the call and killing your phone?
  • tried holding an item in your offhand to showcase it with /am , only for it to disappear after an unlucky extra right click?
  • ever been paranoid about having your faction's radio in your offhand because it goes nuts every time you right click?
  • had out any kind of offhand-able cosmetic item, like a bag; and having it turn into a school planner when you right click?
the answer is most likely yes. .

in minecraft 1.21.1 there is a bug that makes it so that animal armour (any horse armour and the new wolf armour) behaves SLIGHTLY different in the offhand. right clicking with any of these in your offhand causes them to switch to your main hand. it ONLY affects these animal armours, and was patched in a snapshot for 1.21.2. feel free to read more into the mojang bug report here https://bugs-legacy.mojang.com/browse/MC-273300

the fix therefore could be done client side, so i did.

https://modrinth.com/mod/fixoffhandswitch (does not work on version 1.21.3 w/ feather, maybe some others too)

for those who are the reason shampoo has instructions; this one's for you
  1. go to the link above, find fix-offhand-switch-1.3.jar on the page and click there (or just click here directly)
  2. place this mod into your client or loader as you please, it's compatible with any fabric modpack, feather and lunar.
    1. if you still need help with this, here's a guide for all three. default fabric, feather, lunar
    2. if you use a modpack, you might need to update the loader. here's how you do that on modrinth and curseforge
  3. wow you did it, you will never experience this bug again
any and all support questions can be directed to me in this thread.

a server plugin fix should be possible, i looked into one and tested it on a local test server. it's just not as pretty as doing it client side

lastly, some fun little demonstrations (open spoiler)

UPDATE 29/5/25; fixed some compatibility issues, if you have problems with fabric loader just redownload the mod, make sure it's version 1.3
 
Last edited:

2500

Level 12
Community Team
Developer
2500
2500
Notable
Thread starter
a server plugin fix should be possible, i looked into one and tested it on a local test server. it's just not as pretty as this.
to quickly elaborate on this, here is what a plugin based solution could look like. obviously i don't know how compatible this would be, i assume it is not.

 
Last edited:

Joe.exe

Level 63
Joe_Kurumi
Joe_Kurumi
Omega+
Thanks to you, I no longer dare to put anything in my left hand since this bug appeared....
Since you mentioned that this bug is fixed in 1.21.2, can we migrate the entire server to 1.21.2 or above? I don't understand technology, just asking.
 

Users who are viewing this thread

Top