Language

Sodium Options API

Sodium Options API

ModrinthCurseForge

Config API for adding Sodium options with a better categories menu

20.2M downloads 502 followers updated 17mo ago
latest vfabric-1.21.5-1.0.11 Modrinth
Fabric Forge Neoforge 1.20 – 1.21.5 OptimizationUtility

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.

Versions

Release
fabric-1.21.5-1.0.11
fabric · 1.21.5 · 17mo ago
Port to 1.21.5
102.2k
Release
neoforge-1.21.5-1.0.11
neoforge · 1.21.5 · 17mo ago
Port to 1.21.5
4.8k
Release
neoforge-1.21.4-1.0.10
neoforge · 1.21.4 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
31.4k
Release
fabric-1.21.4-1.0.10
fabric · 1.21.4 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
251.8k
Release
forge-1.20.1-1.0.10
forge · 1.20, 1.20.1 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
3.6M
Release
fabric-1.21.1-1.0.10
fabric · 1.21.1 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
9.0M
Release
neoforge-1.21.1-1.0.10
neoforge · 1.21.1 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
1.8M
Release
fabric-1.20.1-1.0.10
fabric · 1.20, 1.20.1 · 20mo ago
Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
2.5M
Release
forge-1.20.1-1.0.9
forge · 1.20, 1.20.1 · 20mo ago
Add some extension methods for manually overriding category IDs
134.9k
Release
neoforge-1.21.4-1.0.9
neoforge · 1.21.4 · 20mo ago
Add some extension methods for manually overriding category IDs
1.3k
Release
fabric-1.21.4-1.0.9
fabric · 1.21.4 · 20mo ago
Add some extension methods for manually overriding category IDs
14.3k
Release
fabric-1.21.1-1.0.9
fabric · 1.21.1 · 20mo ago
Add some extension methods for manually overriding category IDs
40.3k

Comments 0

No comments yet. Be the first to share your thoughts.

FAQ

How do I install Sodium Options API?

Download the file for your Minecraft version and loader from this page, then drop the .jar into your mods (or plugins) folder and launch the game.

Is Sodium Options API free?

Sodium Options API is free to download on Modgrid — we link straight to the official source, no paywall or bundled installer.

Which Minecraft versions does Sodium Options API support?

Works with Fabric, Forge, Neoforge. Supports versions 1.20–1.21.5. See the download section on this page for the full list of supported versions and loaders.

Download Sodium Options API

CurseForge
R fabric-1.21.5-1.0.11 1.21.5 fabric 305 KB R neoforge-1.21.5-1.0.11 1.21.5 neoforge 308 KB R neoforge-1.21.4-1.0.10 1.21.4 neoforge 302 KB R fabric-1.21.4-1.0.10 1.21.4 fabric 897 KB R forge-1.20.1-1.0.10 1.20, 1.20.1 forge 434 KB R fabric-1.21.1-1.0.10 1.21.1 fabric 882 KB R neoforge-1.21.1-1.0.10 1.21.1 neoforge 302 KB R fabric-1.20.1-1.0.10 1.20, 1.20.1 fabric 642 KB R forge-1.20.1-1.0.9 1.20, 1.20.1 forge 434 KB R neoforge-1.21.4-1.0.9 1.21.4 neoforge 302 KB R fabric-1.21.4-1.0.9 1.21.4 fabric 897 KB R fabric-1.21.1-1.0.9 1.21.1 fabric 883 KB R fabric-1.20.1-1.0.9 1.20, 1.20.1 fabric 643 KB R neoforge-1.21.1-1.0.9 1.21.1 neoforge 302 KB R 1.0.8 1.21.1 neoforge 302 KB R 1.0.8 1.20, 1.20.1 fabric 299 KB R 1.0.8 1.21.1 fabric 299 KB R 1.0.8 1.20, 1.20.1 forge 434 KB R 1.0.6 1.20, 1.20.1 fabric 298 KB R 1.0.6 1.21.1 fabric 298 KB R 1.0.6 1.21.1 neoforge 301 KB R 1.0.6 1.20, 1.20.1 forge 433 KB R 1.0.5 1.20, 1.20.1 fabric 298 KB R 1.0.5 1.21.1 neoforge 301 KB R 1.0.5 1.21.1 fabric 298 KB R 1.0.5 1.20, 1.20.1 forge 433 KB R 1.0.4 1.21.1 neoforge 301 KB R 1.0.4 1.20, 1.20.1 fabric 298 KB R 1.0.4 1.20, 1.20.1 forge 433 KB R 1.0.4 1.21.1 fabric 298 KB R 1.0.3 1.21.1 neoforge 301 KB R 1.0.3 1.20, 1.20.1 fabric 298 KB R 1.0.3 1.21.1 fabric 298 KB R 1.0.3 1.20, 1.20.1 forge 433 KB R 1.0.2 1.21.1 fabric 298 KB R 1.0.2 1.20, 1.20.1 fabric 298 KB R 1.0.2 1.21.1 neoforge 301 KB R 1.0.2 1.20, 1.20.1 forge 433 KB R 1.0.0 1.21.1 neoforge 301 KB R 1.0.0 1.21.1 fabric 298 KB R 1.0.0 1.20, 1.20.1 fabric 298 KB R 1.0.0 1.20, 1.20.1 forge 433 KB

Files are served directly from the original source. Modgrid does not host or modify them.