Simple Options Menus For Mods
Does your mod need simple, configurable options? Do you not want to edit core Minecraft files to do this? Or did the mod you just download tell you to come here? If so, you're in the right place.
Regular users please go to the Installation section
Developers please go to the Developers section
Screenshots
Options | Example | Ingame | Menu | Global Options
Installation
Download URL: Download Here
1) Find your minecraft.jar (check note below)*
2) Open the minecraft.jar file in WinRAR or 7zip (do not extract it)
3) Extract the contents of the ModOptionsAPI ZIP file
4) Copy the files into your minecraft.jar
Note: Select the files AND folder "moapi" and drop them in, do not open the folder "moapi" and copy those files separately, it will make minecraft crash.
5) Delete META-INF folder IF it exists in the minecraft.jar
6) Run Minecraft
Requirements
Please download and install Risugami's ModLoader
Compatibility
GUIAPI Patch: GuiAPI Patch
Known issues: Requires GUIAPI patch to run with GUIAPI
* Windows: <your user folder>/AppData/Roaming/.minecraft/bin/
* Mac: Home -> Library -> Application Support -> Minecraft -> bin
* Linux: ~/.minecraft/bin/
Usage
Global Options
These options affect every world/ server you are on (depending on how the mod is designed) and can be overridden by local options.
Local Options (server/ world)
These options affect ONLY the world you are on, or the server. If they are set to GLOBAL they will use the value set in the global options. Otherwise, they override the global values.
If the option is not available in singleplayer, or multiplayer, the mod creator has choosen to disable it locally.
Finally, to put a value back to GLOBAL, right click it.
Mods Using This API
Developers
Developer Version: Download Here
Github: Here
ModOptionsAPI Walkthrough for Developers
This download includes full commented de-obfuscated source code, obfuscated class files, javadoc and an example java file. Please read the readme which has more information.
Support is available in-thread.
API Features
- Boolean/Toggle options
- List/MultiValue options
- Text options
- Key binding options
- Slider options (int/float based)
- Sub-option menus for more complex menus
- A more complex OO API for those who dislike the simpler addToggleOption/getOptionValue/setOptionValue API
- Full included JavaDoc, source and a fully working example mod in the download
- Simple API for modifying the GUI settings
- Well designed and consistent API
- World and server specific values
- Super simple API using a new ModOptions file format!
Version History and API Changes
1.1 Versions
Download MOAPI 8 here GuiAPI Patch (Developer Version) - 20/01/2012
- Updated for Minecraft 1.1
Download MOAPI 7 here GuiAPI Patch (Developer Version) - 01/01/2012
- Updated for Minecraft 1.0
Older ersions are now 100% unsupported as of Minecraft full release.
Planned Changes
- Add constructor to all options to allow for "ID" values for each option.
- Super secret idea.
- Restructure mod, improve API. 0.8 will not be backwards compatible.
Curse
MMO-Champion
WowStead
Arena Junkies
Minecraft Forums
DarthHater
Diablo Fans
Terraria Online











