What are you searching for?

Sodium Options API

Sodium Options API

Config API for adding Sodium options with a better categories menu

download 10.7M Downloads · favorite 403 Followers · Updated 9 months ago
Fabric Forge Neoforge Optimization Utility 1.20 1.20.1 1.21.1 1.21.4 1.21.5

Versions

inventory_2
SodiumOptionsAPI Fabric 1.0.11 for 1.21.5

fabric-1.21.5-1.0.11 · 9 months ago · 304.75 KB

Release download
Fabric 1.21.5
inventory_2
SodiumOptionsAPI Neoforge 1.0.11 for 1.21.5

neoforge-1.21.5-1.0.11 · 9 months ago · 307.71 KB

Release download
Neoforge 1.21.5
inventory_2
SodiumOptionsAPI Neoforge 1.0.10 for 1.21.4

neoforge-1.21.4-1.0.10 · 1 year ago · 301.94 KB

Release download
Neoforge 1.21.4
inventory_2
SodiumOptionsAPI Fabric 1.0.10 for 1.21.4

fabric-1.21.4-1.0.10 · 1 year ago · 896.85 KB

Release download
Fabric 1.21.4
inventory_2
SodiumOptionsAPI Forge 1.0.10 for 1.20.1

forge-1.20.1-1.0.10 · 1 year ago · 433.57 KB

Release download
Forge 1.20 1.20.1

About

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.
open_in_new View on Modrinth
Compatibility
Client: Required Server: Unsupported
gavel LGPL-3.0-only

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 118.2M
favorite 32,788
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 84.0M
favorite 13,759
lock Cookie consent

SkinMC uses cookies to provide functionality and features.