Skip to content

Sodium Options API Mod für Minecraft 1.20.1

Konfigurations-API zum Hinzufügen von Sodium-Optionen mit einem besseren Kategoriemenü

Downloads
457 Downloads
Aufrufe
1.343 Aufrufe
Aktualisiert
Aktualisiert 03.09.2026
  • 1.20 — 1.20.1
  • Forge
  • Client

Über die Sodium Options API-Mod

banner

Diese Mod fügt plattformübergreifende Events hinzu, um die Integration des Sodium/Embeddium-Optionsmenüs zu ermöglichen. Zum Beispiel kannst du mit einem einzigen Event eine Optionsseite zu Embeddium auf Forge, Fabric Sodium 0.5 auf 1.20.1 und Fabric/NeoForge Sodium 0.6 auf 1.21.1 hinzufügen:

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

Wenn du ein Endnutzer bist und diese Mod nicht bereits als Bibliothek für ein anderes Sodium-Addon installiert hast, kannst du sie zusammen mit Reese's Options installieren, um ein verbessertes Kategoriemenü mit Drop-down-Unterstützung zu erhalten, damit die Navigation einfacher ist. Dies wird auch bei Mods wirksam, die diese API nicht verwenden und direkt in die Sodium-Optionen eingreifen.

demo

Diese Mod ist teilweise ein Fork der Embeddium-Kategorien-API und der Options-Events, mit umfangreichen Änderungen zur Unterstützung von Upstream-Sodium. Obwohl sie Änderungen am Menü von Reese's Sodium Options vornimmt, geschieht dies aus Kompatibilitätsgründen über Mixin, daher musst du beide installieren.

Verwendung der API

Zuerst musst du diese Mod zu deiner Entwicklungsumgebung hinzufügen, indem du das Maven-Release für Curseforge oder Modrinth verwendest.

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

Dann stellt diese Mod drei Events in toni.sodiumoptionsapi.api bereit:

  • OptionGUIConstruction.EVENT, wird einmal im GUI-Konstruktor aufgerufen und ermöglicht das Hinzufügen ganzer Seiten. Dies ist wahrscheinlich das, was du willst.
  • OptionPageConstruction.EVENT, wird für jede OptionPage aufgerufen. Verwende dies, wenn du eine Gruppe von Schaltern zum Performance-Tab oder ähnlichem hinzufügen möchtest.
  • OptionGroupConstruction.EVENT, wird für jede Gruppe von Optionen aufgerufen. Verwende dies, wenn du eine einzelne Option in eine bestehende Gruppe einfügen oder die Vanilla-Optionen ändern möchtest.

Installation von Sodium Options API

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. 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.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Versionen

Mit Abhängigkeiten

MinecraftLoaderDateiAktionen
1.20.1Forge1.20.1434 KB 456

Was zum Ausführen nötig ist

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.

Bewertungen

Bewerten Sie Sodium Options API als Erster

Kommentare 0

Melden Sie sich an, um zu kommentierenAnmelden

Ähnliche Mods

Alle Mods

Mehr dazu

Autor: TxniLizenz: LGPL-3.0-onlyQuellcode

Sind Sie der Autor? Schreiben Sie uns — wir entfernen es innerhalb von 48 Stunden.