Modscraper Modscraper Minecraft
Vanilla Options API logo

Vanilla Options API

Mod

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

Type

Mod

Modrinth Downloads

187

Modrinth ID

9Cxq4qJg

Last Updated

Jul 29, 2026

Description

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.

Compatibility

Mod Loaders

Fabric

Game Versions

26.1-snapshot-10 26.1-snapshot-11 26.1-pre-1 26.1-pre-2 26.1-pre-3 26.1-rc-1 26.1-rc-2 26.1-rc-3 26.1 26.1.1-rc-1 +11 more

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

External Resources