This is a mod made for Minecraft 1.20.x & 1.21.x, which provides compatibility with Fcitx5.
When using IME in Minecraft, pressing a key that is also a game hotkey (e.g. Tab, Enter) causes the key event to be handled by both the input method and the game.
And then you'll be interrupted. That's crazy. So I wrote this mod, in order to deal with this disrupting problem.
We provides a highly configurable IMBlocker, with a visual element selector.
Besides, we added IME support for native Wayland environment.
Fabric Loader is required to run this mod.
Cloth Config is required. To access the config screen, you need to install Mod Menu as well.
To build the mod from its source code, run the following commands:
git clone https://github.com/NLR-DevTeam/Fcitx5-Enhancer --depth 1 --recursive
cd Fcitx5-Enhancer
./gradlew build --no-daemon
Then you'll find the artifacts inside fabricWrapper/build/libs
.
This mod relies on native libraries to implement its functionalities.
And the built-in libraries were compiled for Linux x86_64 (glibc 2.31, from Debian 11).
If you are using a different architecture (e.g. aarch64) or an incompatible system, you must compile them yourself.
Requirements:
- A valid JDK installation (with JNI headers)
- CMake 3.10+
Run this in your terminal:
cd Fcitx5-Enhancer/src/native/base
mkdir build && cd build
cmake ..
make
Eventually you'll see a shared library file named libfcitx5_detector.so
inside the build
folder.
Then, place it into folder .minecraft/.fcitx5-enhancer
.
Requirements:
- All prerequisites from the base library
- Wayland Protocols (
libwayland-dev wayland-protocols
for Debian) - PkgConfig Tool (
pkg-config
for Debian)
Run this in your terminal:
cd Fcitx5-Enhancer/src/native/wayland
mkdir build && cd build
cmake ..
make
Finally you'll see a shared library file named libwayland_support.so
inside the build
folder.
Simply place it into folder .minecraft/.fcitx5-enhancer
.
This project is licensed under MIT License.