
ModsJava
Vanilla Options API
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Library that easily allows mod developers to create custom options using vanilla's systems, and add options to vanilla's option screens.
Code example:
public class MyMod implements ClientModInitializer {
private static final OptionInstance<Boolean> OPTION = ...;
public static OptionInstance<Boolean> option() {
return OPTION;
}
@Override
public void onInitializeClient() {
Identifier optionId = Identifier.fromNamespaceAndPath("modid", "custom_option");
VanillaOptionsAPI.register(optionId, OptionsMenuLocation.ACCESSIBILITY, MyMod::option);
}
}
The following would add a boolean option that saves to options.txt as modid.custom_option, appearing in the accessibilty options menu.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 26.2-pre-2, 26.2-pre-3, 26.2-pre-4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as vanillaoptionsapi-1.2.0.jar — drop this file into the mods folder
- Download size: 40 KB
- Download link checked 9 Sept 2026 — working
These come from our own check of the pack file, not from the source page.