Sodium Options API 모드 정보

이 모드는 Sodium/Embeddium 옵션 메뉴 통합을 추가하기 위한 크로스 플랫폼 이벤트를 추가합니다. 예를 들어, 하나의 이벤트로 Forge의 Embeddium, 1.20.1의 Fabric Sodium 0.5, 1.21.1의 Fabric/NeoForge Sodium 0.6에 옵션 페이지를 추가할 수 있습니다:
OptionGUIConstruction.EVENT.register((pages) -> pages.add(new TestOptionPage()));
최종 사용자이고 이 모드를 다른 Sodium 애드온의 라이브러리로 이미 설치하지 않았다면, Reese's Options와 함께 설치하여 드롭다운 지원이 있는 개선된 카테고리 메뉴를 사용할 수 있어 탐색이 더 쉬워집니다. 이는 이 API를 사용하지 않고 Sodium 옵션에 직접 주입하는 모드에도 적용됩니다.

이 모드는 부분적으로 Embeddium 카테고리 API와 옵션 이벤트의 포크이며, 업스트림 Sodium을 지원하기 위해 많은 변경이 이루어졌습니다. Reese's Sodium Options 메뉴를 변경하지만 호환성 문제로 mixin을 통해 변경하므로, 둘 다 설치해야 합니다.
API 사용하기
먼저, Curseforge 또는 Modrinth용 Maven 릴리스를 사용하여 이 모드를 개발 환경에 추가해야 합니다.
modImplementation("maven.modrinth:sodium-options-api:version")
그런 다음, 이 모드는 toni.sodiumoptionsapi.api에 세 가지 이벤트를 제공합니다:
- OptionGUIConstruction.EVENT는 GUI 생성자에서 한 번 호출되며, 전체 페이지를 추가할 수 있습니다. 아마도 이것이 원하는 이벤트일 것입니다.
- OptionPageConstruction.EVENT는 각 OptionPage마다 호출됩니다. 성능 탭에 토글 그룹을 추가하고 싶을 때 사용하세요.
- OptionGroupConstruction.EVENT는 각 옵션 그룹마다 호출됩니다. 기존 그룹에 단일 옵션을 삽입하거나 바닐라 옵션을 수정하고 싶을 때 사용하세요.
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.
버전
의존성 포함
| Minecraft | 로더 | 파일 | 작업 |
|---|---|---|---|
| 1.20.1 | Forge | 1.20.1434 KB 167 |
실행에 필요한 것
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.
리뷰
Sodium Options API의 첫 평가를 남겨 보세요


