Перейти к содержимому
Mineforgian

Sodium Options API

Config API for adding Sodium options with a better categories menu

17.0M загрузок482 подписчиковLGPL-3.0-onlyfabricforgeneoforge

Обновлён 10 апреля 2025 г. · опубликован 15 сентября 2024 г.

  • Better Options Menu

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.

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
fabric-1.21.5-1.0.11Релиз1.21.5fabric10 апреля 2025 г..jar (305 КБ)
neoforge-1.21.5-1.0.11Релиз1.21.5neoforge10 апреля 2025 г..jar (308 КБ)
neoforge-1.21.4-1.0.10Релиз1.21.4neoforge18 января 2025 г..jar (302 КБ)
fabric-1.21.4-1.0.10Релиз1.21.4fabric18 января 2025 г..jar (897 КБ)
forge-1.20.1-1.0.10Релиз1.20, 1.20.1forge18 января 2025 г..jar (434 КБ)
fabric-1.21.1-1.0.10Релиз1.21.1fabric18 января 2025 г..jar (882 КБ)
neoforge-1.21.1-1.0.10Релиз1.21.1neoforge18 января 2025 г..jar (302 КБ)
fabric-1.20.1-1.0.10Релиз1.20, 1.20.1fabric18 января 2025 г..jar (642 КБ)
forge-1.20.1-1.0.9Релиз1.20, 1.20.1forge1 января 2025 г..jar (434 КБ)
neoforge-1.21.4-1.0.9Релиз1.21.4neoforge1 января 2025 г..jar (302 КБ)
fabric-1.21.4-1.0.9Релиз1.21.4fabric1 января 2025 г..jar (897 КБ)
fabric-1.21.1-1.0.9Релиз1.21.1fabric1 января 2025 г..jar (883 КБ)
fabric-1.20.1-1.0.9Релиз1.20, 1.20.1fabric1 января 2025 г..jar (643 КБ)
neoforge-1.21.1-1.0.9Релиз1.21.1neoforge1 января 2025 г..jar (302 КБ)
1.0.8Релиз1.21.1neoforge23 ноября 2024 г..jar (302 КБ)

Показаны последние 15 из 42 версий. Все версии — на Modrinth.

Ченджлог

fabric-1.21.5-1.0.11Релиз1.21.5 · 10 апреля 2025 г.

Port to 1.21.5

neoforge-1.21.5-1.0.11Релиз1.21.5 · 10 апреля 2025 г.

Port to 1.21.5

neoforge-1.21.4-1.0.10Релиз1.21.4 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

fabric-1.21.4-1.0.10Релиз1.21.4 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

forge-1.20.1-1.0.10Релиз1.20, 1.20.1 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

fabric-1.21.1-1.0.10Релиз1.21.1 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

neoforge-1.21.1-1.0.10Релиз1.21.1 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

fabric-1.20.1-1.0.10Релиз1.20, 1.20.1 · 18 января 2025 г.

Fixed compat with latest Reese's Options Added blacklist for Flashback, Axiom, and Dynamic FPS showing up incorrectly in the Options menu

Полная история изменений — на Modrinth.

Комментарии

Загружаем…