
Vanilla Options API
Allow mods to use vanilla's systems to add custom options
- Загрузки
- 224
- Подписчики
- 1
- Обновлён
- 28 мая 2026 г.
- Лицензия
- CC0-1.0
Опубликован 7 марта 2026 г.
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.
Ченджлог
1.2.0Релиз26.2-rc-1, 26.2-rc-2, 26.2 · 28 мая 2026 г.
- Update to Minecraft 26.2
- Full changelog: https://github.com/embinmc/vanillaoptionsapi/compare/1.1.0...1.2.0
1.1.0Релиз26.1.1, 26.1.2-rc-1, 26.1.2 · 22 марта 2026 г.
Allow mods to define how they want their options to appear in the
Mod OptionsscreenAdded
Show Minecraft Settingsoption, which controls whether or not Minecraft's vanilla options should appear in theMod Optionsscreen. Default to OFF.Full changelog: https://github.com/embinmc/vanillaoptionsapi/compare/1.0.0...1.1.0
1.0.0Бета26.1-rc-1, 26.1-rc-2, 26.1-rc-3 · 7 марта 2026 г.
Initial release
Комментарии
Загружаем…