
89
0
Bento Config
Bento Config is an annotation-driven configuration system built using Bento GUI. It aims to be simple yet powerful, with no magic pre-processors or arbitrary limitations.
Features:
- Automatic Mod Menu registration
- Translation key-driven descriptions and comments
- Automatically sources images from the assets folder
- Annotation-driven constraints
- JSON5 config file format
- Supports many types out of the box
Bento Config is documented in-code with JavaDocs and on my wiki.
public class MyConfig extends BentoConfig<MyConfig> {
public boolean spawn_creepers = true;
@Regex("[a-z]{1,10}")
public String creeper_name = "creeper";
@Header("spawn_settings")
@Range(min = 1, max = 10)
public int spawn_amount = 3;
@Percentage
public float spawn_chance = 0.5f;
@Header("loot_settings")
public Item creeper_loot = Items.GUNPOWDER;
}
public class MyModInitializer implements ModInitializer {
...
public static final MyConfig CONFIG = new MyConfig.register("my_mod_id");
...
}
Партнёрский материал
Как поиграть с друзьями с модом Bento Config?
Мод Bento Config куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Bento Config будет готов за пару минут - BungeeHost сделает всё за вас.
Часто задаваемые вопросы
Совместимость
Зависимости
Ссылки
Создатели
Детали
Лицензия:
Опубликован:6 месяцев назад
Обновлён:6 месяцев назад
