Chinese input in Minecraft is a mess. Switch to your IME to type a message and it stays on while you play — suddenly WASD opens a candidate box. Or the candidate box shows up in the corner of the screen instead of next to your text. This mod fixes both.
What it does
- IME follows focus. Open chat or any text field and Chinese input turns on by itself. Close it and the mod switches back to English, so moving around never brings up a candidate window.
- The candidate box sits at the caret. It tracks the text cursor in the field instead of sitting in the top-left corner or getting pushed off-screen.
- Command lines are handled too. Command keywords stay in English, but the free-text part switches to Chinese on its own — so
/msg Steve 你好works without you touching the input method mid-sentence. - No manual toggling. You don't have to hit Shift to switch languages every time you open chat.
How to use it
Just install it and join a world. Open chat, switch to your Chinese IME, and type normally. Nothing to configure for basic use.
If you want to check what's going on, type /autoime diag in chat. It writes a .txt file to the game folder with the IME state, caret position, and the last input messages it received. Useful if something isn't behaving and you want to report it.
Configuration
There's an autoime.cfg in the config folder. A few things you can change:
commandAutoEnglish— whether command lines force EnglishsmartCommandIME— whether the free-text part of a command accepts ChinesecursorTracking— whether the candidate box follows the caretcandidateOffsetY— nudge the candidate box up or down if it sits too high or low for you
Requirements
Java 8 and Windows. It uses the Win32 IME API, so it's desktop-only — no macOS or Linux support.
Pick the jar that matches your Minecraft / Forge version; each file is built for a specific one. Multiplayer and single-player both work, since everything runs client-side.
A note on compatibility
This is built for the older LWJGL2 era of the game. Input handling changed in later versions, so don't expect the same jar to work everywhere — use the matching file.

