Vanilla Options API
ModAllow mods to use vanilla's systems to add custom options
Description
Library that easily allows mod developers to create custom options using vanilla's systems, and add options to vanilla's option screens.
Code example:
public class MyMod implements ClientModInitializer {
private static final OptionInstance<Boolean> OPTION = ...;
public static OptionInstance<Boolean> option() {
return OPTION;
}
@Override
public void onInitializeClient() {
Identifier optionId = Identifier.fromNamespaceAndPath("modid", "custom_option");
VanillaOptionsAPI.register(optionId, OptionsMenuLocation.ACCESSIBILITY, MyMod::option);
}
}
The following would add a boolean option that saves to options.txt as modid.custom_option, appearing in the accessibilty options menu.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
(Better) Shared Advancements
Share advancements between teams or the whole server, online or offline, with more configurability! Server-side!
CobbleWand
Adds a wand to the game to allow Pokémon's or their statues to be placed
TechnobladeCraft
Adds lots of features having to do with Technoblade
Creativity Drive
Your Creative Tanks Into Drive
Better Structures +
Revamp your Minecraft world! Better Structures + adds diverse, handcrafted buildings that enhance exploration and bring...
Eldritch Expansions
This mod expands upon Iron's Spells n Spellbooks Eldritch Spells and adds 15 new spells (so far).