All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Sodium Options API

Sodium Options API

by Txni • Downloads: 154 • Followers: 0
Description
Gallery
Changelog
Versions

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.

How to Install Sodium Options API (Mod)

Sodium Options API by Txni is verified for Fabric, Forge, Neoforge across Minecraft versions 1.20, 1.20.1, 1.21.1, 1.21.4, 1.21.5 (latest release: fabric-1.21.5-1.0.11, file size: 305 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.21.1, 1.21.4, 1.21.5) and platform (Fabric, Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
  3. Move the downloaded Sodium Options API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.5
Fabric
2mo ago 85
1.21.5
Neoforge
2mo ago 42
1.21.4
Neoforge
2mo ago 28
1.21.4
Fabric
2mo ago 21
1.20.x
Forge
2mo ago 17
1.21.1
Fabric
2mo ago 14
1.21.1
Neoforge
2mo ago 12
1.20.x
Fabric
2mo ago 11
1.20.x
Forge
2mo ago 9
1.21.4
Neoforge
2mo ago 8
1.21.4
Fabric
2mo ago 8
1.21.1
Fabric
2mo ago 7
1.20.x
Fabric
2mo ago 7
1.21.1
Neoforge
2mo ago 6
1.21.1
Neoforge
2mo ago 6
1.20.x
Fabric
2mo ago 5
1.21.1
Fabric
2mo ago 5
1.20.x
Forge
2mo ago 5
1.20.x
Fabric
2mo ago 4
1.21.1
Fabric
2mo ago 4
1.21.1
Neoforge
2mo ago 4
1.20.x
Forge
2mo ago 4
1.20.x
Fabric
2mo ago 4
1.21.1
Neoforge
2mo ago 4
1.21.1
Fabric
2mo ago 3
1.20.x
Forge
2mo ago 3
1.21.1
Neoforge
2mo ago 3
1.20.x
Fabric
2mo ago 3
1.20.x
Forge
2mo ago 3
1.21.1
Fabric
2mo ago 3
1.21.1
Neoforge
2mo ago 3
1.20.x
Fabric
2mo ago 3
1.21.1
Fabric
2mo ago 3
1.20.x
Forge
2mo ago 2
1.21.1
Fabric
2mo ago 2
1.20.x
Fabric
2mo ago 2
1.21.1
Neoforge
2mo ago 2
1.20.x
Forge
2mo ago 2
1.21.1
Neoforge
2mo ago 2
1.21.1
Fabric
2mo ago 2
1.20.x
Fabric
2mo ago 2
1.20.x
Forge
2mo ago 2
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Fixed compat with latest Reese's Options
Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Add some extension methods for manually overriding category IDs
Sodium Options API Icon
Download Sodium Options API
Select game version
Select platform