Back to mods
Vanilla Options API project artwork

Modrinth · Minecraft mod

Vanilla Options API

Allow mods to use vanilla's systems to add custom options

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Vanilla Options API release matches 26.2?

Updated 3 months ago
Best match for your filters 1.2.0
Game version 26.2-pre-2, 26.2-pre-3, 26.2-pre-4
Loader Fabric

Vanilla Options API 1.2.0 targets 26.2-pre-2, 26.2-pre-3, 26.2-pre-4 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Vanilla Options API required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Vanilla Options API 1.2.0 need?

1.2.0 on 26.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Vanilla Options API 1.2.0
required
Matching file found Matched file: 0.160.0+26.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Vanilla Options API without breaking your instance.

Built for Vanilla Options API 1.2.0 on 26.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.2.0. It targets 26.2-pre-2, 26.2-pre-3, 26.2-pre-4 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.2.0. It opens that exact file at the source.

About this project

What does Vanilla Options API add?

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.

Project description from Modrinth.

Pick your setup

Vanilla Options API by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

21 available setups

Showing the newest 12 of 21 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Vanilla Options API versions and loaders

1 of 3 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.