Acerca del mod Sodium Options API

Este mod añade eventos multiplataforma para agregar integración con el menú de opciones de Sodium/Embeddium. Por ejemplo, puedes añadir una página de opciones a Embeddium en Forge, Fabric Sodium 0.5 en 1.20.1 y Fabric/NeoForge Sodium 0.6 en 1.21.1 con un solo evento:
OptionGUIConstruction.EVENT.register((pages) -> pages.add(new TestOptionPage()));
Si eres un usuario final y aún no tienes este mod instalado como librería para otro addon de Sodium, puedes instalarlo junto a Reese's Options para obtener un menú de categorías mejorado, con soporte de menús desplegables para que sea más fácil navegar. Esto tendrá efecto incluso en mods que no usan esta API e inyectan directamente en las opciones de Sodium.

Este mod es parcialmente un fork de la API de categorías y los eventos de opciones de Embeddium, con cambios importantes para soportar Sodium upstream. Aunque hace cambios en el menú de Reese's Sodium Options, lo hace mediante mixin por razones de compatibilidad, así que necesitarás instalar ambos.
Usando la API
Primero, necesitarás añadir este mod a tu entorno de desarrollo, usando la versión de Maven para Curseforge o Modrinth.
modImplementation("maven.modrinth:sodium-options-api:version")
Luego, este mod proporciona tres eventos en toni.sodiumoptionsapi.api:
- OptionGUIConstruction.EVENT, llamado una vez en el constructor de la GUI, permite añadir páginas enteras. Probablemente sea el que quieres.
- OptionPageConstruction.EVENT, llamado para cada OptionPage. Úsalo si quieres añadir un grupo de toggles a la pestaña de rendimiento o algo así.
- OptionGroupConstruction.EVENT, llamado para cada grupo de opciones. Úsalo si quieres insertar una sola opción en un grupo existente, o modificar las vanilla.
Cómo instalar Sodium Options API
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.20–1.20.1 on Forge automatically, together with its dependencies: Embeddium.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Forge
The loader must match the game version of the mod file, for example Minecraft 1.20.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file sodiumoptionsapi-forge-1.0.10-1.20.1.jar (434 KB) for your game version.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Embeddium.
Launch the loader profile
Open “Mods” in the main menu: Sodium Options API should be in the list.
Sodium Options API works on the player’s side only: there is no need to install it on a server.
Minecraft 1.20.1 runs on Java 17: with a different Java version the game may close right after launch.
Versiones
Con dependencias
| Minecraft | Cargador | Archivo | Acciones |
|---|---|---|---|
| 1.20.1 | Forge | 1.20.1434 KB 456 |
Qué necesita para funcionar
- Embeddiumobligatorio
Contenido que lo necesita
FAQ
Which Minecraft versions does Sodium Options API work on?
There are files for 1.20.1, 1.20. The newest is 1.20.1.
Is Sodium Options API for Forge or Fabric?
Only for Forge: 1.20–1.20.1. There are no files for Fabric or NeoForge: a mod for another loader will not start.
What does Sodium Options API need to work?
Required: Embeddium. Without it the mod will not start: dependencies go into the same mods folder.
Do I need to install Sodium Options API on a server?
No. Sodium Options API works on the player’s side only: there is no need to install it on a server.
Which Java does Sodium Options API need?
Minecraft 1.20.1 runs on Java 17. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download Sodium Options API safely?
On this page: the file sodiumoptionsapi-forge-1.0.10-1.20.1.jar (434 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 7529fbf938787ed13a251cbf40936f8c29ec4b6c.
Reseñas
Sé el primero en valorar Sodium Options API



