Getting started
How to add OneConfig to your mod
This is NOT a guide on how to start with modding or set up a modding template. There is documentation for every version of Minecraft that we support on how to set up a mod on their loader.
For Forge 1.8.9 and 1.12.2: https://moddev.nea.moe/ide-setup/
For Forge (modern): https://docs.minecraftforge.net/en/latest/gettingstarted/
For Fabric: https://fabricmc.net/wiki/tutorial:start#creating_your_first_mod
For NeoForge: https://docs.neoforged.net/docs/gettingstarted/
From there, instead of using the default templates of those loaders, you would use the OneConfigExampleMod.
Latest versions
OneConfig Example Mod
If you're just starting out or need more advanced features like multiple versions, we highly recommend looking at our example mod. When cloning the example mod, please choose from one of the following branches:
multi-version
All OneConfig-supported versions (1.8.9-Latest, Fabric/Forge)
You can always clone this branch and remove all but a single version, in case you want to tackle multiversion later.
legacy-forge
1.8.9 Forge
legacy-fabric
1.8.9 Fabric
modern-fabric
Latest Fabric
modern-forge
Latest Forge
kotlin-[branch]
N/A
Each branch has a Kotlin version.
Including OneConfig yourself
If you don't want to use our mod template, or wish to include OneConfig in one of your new or existing mods, add this to your build.gradle(.kts)
.
Available modules
OneConfig's functionality is split into several modules for ease of use and to improve the developer experience. When making a mod using OneConfig, you will need to individually select modules you will be utilizing within your mod in order to gain access to their functionality, and the platform / Minecraft version-specific implementation of OneConfig.
commands
The tree based command system used in OneConfig.
config
The tree based configuration system used in OneConfig.
config-impl
The default implementation of the configuration system used in OneConfig.
events
The event system used in OneConfig.
hud
The HUD system used in OneConfig.
internal
OneConfig's UI implementation.
ui
The UI system used in OneConfig.
utils
Various utilities used in OneConfig.
Setting up your build files
Last updated