ModsFinder

NativeLoader

by Mliybs

NativeLoader lets Fabric mods load code written in languages that compile to native code, such as C++ or C#, which can then modify the game.

FabricClient and serverMIT LicenseOpen source1.20.4 – 1.20.6

What it does

NativeLoader is a compatibility-layer Fabric mod that runs native libraries alongside Minecraft. It is built to modify game content in languages other than Java and Kotlin, and it reaches native code through JNI and JNA. The mod itself only handles calling native code and supplies wrapper classes for changing the game, so any content that needs another language has to be compiled to a dll, so or dylib file by its author.

Native code is placed in a nativepacks folder inside the game directory, using a resource package with the assets/<namespace>/natives path. The folder does not have to exist beforehand, since the game creates it on first launch. Once the library is in place, the game loads the dll, so or dylib files from those namespaces when it starts, and the code inside can then see and change the game. The mod is in its development phase with basic functionality complete, and the project accepts outside contributions.

Key features

  1. Native code via JNI and JNA

    Native libraries are called through JNI and JNA, which give native code room to work with the game.

  2. Languages beyond Java

    Native code written in languages such as C++ or C# can be used to change game content, where Java and Kotlin mods are not involved.

  3. Namespaced native packs

    Libraries are loaded from resource packs by namespace, so each content package keeps its own native files.

  4. Low overhead

    The bridge between Java and native code aims to keep the performance cost small.

Compatibility

Latest build for each game version and loader.

No stable releases
Every published file is a beta or alpha build.
1.20.60.7.4
1.20.50.7.4
1.20.40.7.4
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Native mod content

A content author compiles a dll, so or dylib that changes the game and publishes it inside a resource package for players to add.

Integrating native libraries

A developer wants existing native code to take part in game logic and uses the wrapper classes to reach it from the game.

Who it’s for: Mod developers who write native code in C++, C#, or similar languages, and content authors who want to publish native libraries for Minecraft 1.20.4 – 1.20.6.

Questions

Does NativeLoader require Fabric API?

The mod is published for Fabric only, so it runs on the Fabric loader. Files exist for 1.20.4, 1.20.5 and 1.20.6, with 0.7.4 for 1.20.6 as the latest build.

Does NativeLoader have to be installed on the server?

Yes. The server and every player need the mod installed.

Can Mixin be used to add native features?

The author does not expect Mixin to gain support in the future, and reflection in Java is limited to calling JNI functions directly.

Where is the source code kept?

Public links exist for the source code and the issue tracker. The project is open source under the MIT License.

In the catalog

NativeLoader is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 11,154 mods support Minecraft 1.20.6.

Similar mods

What the author says

NativeLoader is a compatibility-layer Fabric mod designed to modify game content in languages that can be compiled to native code except Java or Kotlin. It interacts with native code via JNI and JNA, giving native code enough flexibility and minimizing performance overhead. NativeLoader itself is only responsible for…
Mliybs, on the Modrinth page

Official listing

Owner
Mliybs
Published
2024-11-26
Updated on Modrinth
2025-01-25
Facts verified
2026-10-15

Tags