MiniFabricAPI
Adds a couple of the Fabric API modules for Neoforge
MiniFabricAPI
This mod adds a couple of the modules from the Fabric API to Neoforge. Specifically:
- Fabric Command API V2 - Fabric Keymapping API V1 - Fabric Networking API V1 - Be careful when interacting with this pared with Neoforge, it can be unstable in some situations. - Fabric Rendering API V1 - Fabric API Base - Fabric Object Builder V1 - Fabric Registry Sync API V2 - Fabric Lifecycle Events
This mod hopes to ease developing multiplatform mods and allow developers to use Fabric API's code in the common module.
For Developers (Installation, Setup, Etc)
Firstly, add Modrinth to your repositories.
```groovy repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } ```
The second step will depend on what kind of project you are making. For the version, check our versions page.
Architectury:
```groovy dependencies { compileOnly "maven.modrinth:minifabricapi:${project.minifabricapi_version}" } ```
Note that we use compileOnly since this API is only available for Neoforge. To make sure the sources are provided at runtime, download the mod JAR and drop it into your `neoforge/run/mods` folder. Get the Fabric API and drop it into your `fabric/run/mods` folder.
Basic Neoforge Project:
```groovy dependencies { implementation "maven.modrinth.minifabricapi:${project.minifabricapi_version} } ```
Always remember to add this mod as a dependency in your `neoforge.mods.toml` so the game crashes with a clear view of what the user has to do rather than a `NoClassDefFoundError`.
```toml [[dependencies.${mod_id}]] modId="minifabricapi" type="required" versionRange="${minifabricapi_version}" ordering="NONE" side="CLIENT" ```
How does the version system work? This mod matches the Fabric API version which it is built on, with an additional integer at the end to represent the patches of this mod specifically.
How can I contribute? If you are just the ordinary player who enjoys modding, hit that download button! The more downloads we get, the more aware other developers will become of this mod. If you are a developer, pull requests on our How can I contribute? are available. Go ahead and add a module or two, it would be extremely helpful!
Report ANY and ALL issues on my GitHub. I CANNOT STRESS THIS ENOUGH. REPORTING ISSUES IS HOW THEY GET FIXED. IF YOU WANT AN ISSUE FIXED, REPORT IT.