Is there a way to completely disable the narrator in Minecraft 1.12.2?

Unfortunately, it seems impossible.*

Keybinds (and many other options) are stored in C:\users\[username]\AppData\Roaming\.minecraft\options.txt and there is no keybind there for toggling the narrator. This means that the Control+B key combo is hardcoded within the game. I tried various methods of altering the line "Narrator: 0" to try to disable it, but nothing seemed to affect the toggle on Control+B. I also tried making the file read-only, and while it prevented settings from being saved, it did not stop the toggle from taking place in the game. I decompiled the .jar, but unfortunately the source code was completely obfuscated, so there is no way to find a specific place in the source code to cite showing the hard code.

*Nothing is impossible. You can delete the libraries as you have seen on Reddit (I cannot speak to what side effects this might have). But, there is one more way. Using AutoHotKey, you can make a script that "catches" the Control+B key combo, and replaces it with the } character. Here is the script that worked for me:

^b:: Send {}}

I notice your question asks about Alt+B, but for me the key combo was Control+B. I am assuming you made a typo, but in case you have an alternate keyboard layout the script to catch Alt+B and replace with a curly brace is

!b:: Send {}}

With this script running, the keycombo types the "}" character, but no longer toggles the narrator. If you need it to type the opening curly brace, change "{}}" to "{{}"


Did you succeed in it? I found a way, using a mod that allows you to change the key to enable/disable the narrator. Here is the link: https://www.curseforge.com/minecraft/mc-mods/rebind-narrator