O Sodium Options API modu

Ovaj mod dodaje događaje za više platformi za integraciju Sodium/Embeddium menija sa opcijama. Na primer, možete dodati stranicu sa opcijama za Embeddium na Forge, Fabric Sodium 0.5 na 1.20.1 i Fabric/NeoForge Sodium 0.6 na 1.21.1 pomoću jednog događaja:
OptionGUIConstruction.EVENT.register((pages) -> pages.add(new TestOptionPage()));
Ako ste krajnji korisnik i ovaj mod već nije instaliran kao biblioteka za neki drugi Sodium dodatak, možete ga instalirati uz Reese's Options da biste dobili poboljšani meni kategorija, sa podrškom za padajuće liste kako bi navigacija bila lakša. Ovo će stupiti na snagu čak i za modove koji ne koriste ovaj API i ubacuju se direktno u Sodium opcije.

Ovaj mod je delimično fork Embeddium categories API-ja i događaja za opcije, sa velikim izmenama radi podrške za upstream Sodium. Iako menja Reese's Sodium Options meni, to čini preko mixina iz razloga kompatibilnosti, tako da ćete morati da instalirate oba.
Korišćenje API-ja
Prvo ćete morati da dodate ovaj mod u svoje razvojno okruženje, koristeći Maven izdanje za Curseforge ili Modrinth.
modImplementation("maven.modrinth:sodium-options-api:version")
Zatim, ovaj mod pruža tri događaja u toni.sodiumoptionsapi.api:
- OptionGUIConstruction.EVENT, poziva se jednom u konstruktoru GUI-ja, omogućava dodavanje celih stranica. Ovo je verovatno ono što želite.
- OptionPageConstruction.EVENT, poziva se za svaki OptionPage. Koristite ovo ako želite da dodate grupu prekidača na karticu za performanse ili tako nešto.
- OptionGroupConstruction.EVENT, poziva se za svaku grupu opcija. Koristite ovo ako želite da ubacite jednu opciju u postojeću grupu ili da izmenite one podrazumevane.
Kako instalirati 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.
Verzije
Sa zavisnostima
| Minecraft | Loader | Fajl | Akcije |
|---|---|---|---|
| 1.20.1 | Forge | 1.20.1434 KB 164 |
Šta je potrebno za pokretanje
- Embeddiumobavezno
Sadržaj koji ga zahteva
Česta pitanja
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.
Recenzije
Budi prvi koji će oceniti Sodium Options API


