Back to mods
Sodium Options API project artwork

Modrinth · Minecraft mod

Sodium Options API

Config API for adding Sodium options with a better categories menu

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

Quick answer

Which Sodium Options API release should I use?

Updated 1 year ago
Latest stable file fabric-1.21.5-1.0.11
Game version 1.21.5
Loader Fabric

Sodium Options API fabric-1.21.5-1.0.11 targets 1.21.5 with Fabric. It must be installed on the client. Do not install it on the dedicated server. 2 required mods need a matching file.

Where it goes

Is Sodium 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 Sodium Options API fabric-1.21.5-1.0.11 need?

fabric-1.21.5-1.0.11. Change the file and its required mods may change too.

2 required mods need a matching file

Install Fabric API, Sodium first, but 2 required mods have no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Sodium Options API fabric-1.21.5-1.0.11
required
No matching file
Sodium Needed by Sodium Options API fabric-1.21.5-1.0.11
required
No matching file

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

Before you install it

Add Sodium Options API without breaking your instance.

Built for Sodium Options API fabric-1.21.5-1.0.11. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use fabric-1.21.5-1.0.11. It targets 1.21.5 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Sodium first, but 2 required mods have no matching file for this setup. Do not mix loader builds to force a match.

  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 fabric-1.21.5-1.0.11. It opens that exact file at the source.

About this project

What does Sodium Options API add?

banner

This mod adds cross-platform events for adding Sodium/Embeddium options menu integration. For example, you can add an option page to Embeddium on Forge, Fabric Sodium 0.5 on 1.20.1, and Fabric/NeoForge Sodium 0.6 on 1.21.1 with one event:

OptionGUIConstruction.EVENT.register((pages) -> pages.add(new TestOptionPage()));

If you're an end user, and you don't have this mod installed already as a library for another Sodium addon, you can install it alongside Reese's Options to get improved category menu, with drop-down support so that it's easier to navigate. This will take effect even for mods that don't use this API and inject into Sodium options directly.

demo

This mod is partially a fork of the Embeddium categories API and options events, with heavy changes to support upstream Sodium. While it makes changes to the Reese's Sodium Options menu, it does so via mixin for compatibility reasons, so you will need to install both.

Using the API

First, you will need to add this mod to your dev environment, using the Maven release for Curseforge or Modrinth.

modImplementation("maven.modrinth:sodium-options-api:version")

Then, this mod provides three events in toni.sodiumoptionsapi.api:

  • OptionGUIConstruction.EVENT, called once in the GUI constructor, allows adding entire pages. This is probably the one you want.
  • OptionPageConstruction.EVENT, called for each OptionPage. Use this if you want to add a group of toggles to the performance tab or something.
  • OptionGroupConstruction.EVENT, called for each group of options. Use this if you want to insert a single option into an existing group, or modify the vanilla ones.

Project description from Modrinth.

Pick your setup

Sodium Options API by Minecraft version and loader

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

10 available setups

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

Recent files

Sodium Options API versions and loaders

42 of 42 releases match

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