- Загрузчики
- Fabric
- Скачиваний на Modrinth
- 2,9 тыс.
- Подписчиков на Modrinth
- 1
- версий
- 48
- Обновлён
- 8 марта 20268 мар.
- Опубликован
- в 2026
Коротко о моде
Библиотека — нужна другим модам: её требуют 1
Работает на Fabric
Для Minecraft 1.21–1.21.11
Ставится только в игру; на сервер ставить не нужно
Последняя версия — 1.0.0-beta.7+1.21.11 от 8 марта 2026
Нужен Fabric API
Где нуженВерсии игры1.21–1.21.11
В игреобязателенНа серверене нужен
Ставится только в игру; на сервер ставить не нужно
Описание переведено автоматическиПоказать оригинал (EN)
Radon
Этот мод — очень простая в использовании библиотека для конфигов.
Вот как ей пользоваться:
- Добавь репозиторий Modrinth Maven в свой проект:
repositories {
maven {
url = "https://api.modrinth.com/maven"
}
} - Добавь Radon в зависимости своего мода:
dependencies {
modImplementation "maven.modrinth:radon-lib:FIND_THE_LATEST_VERSION_ON_MODRINTH"
}- Создай класс, расширяющий ConfigScreen:
package your.mod;
import me.kitty.radon.api.*;
public class MyConfig extends ConfigScreen {
@Override
public String getScreenTitle() {
return "your screen's title";
}
@Override
protected void radon() {
// you need tabs to create rows
Tab tab = tab("tab's name");
Tab otherTab = tab("second tab");
// you can also create sections
Section section = section(otherTab, "name");
// this is where we create our options
// if you want a boolean or an enum
// then you want to use ButtonRow
enum myEnum {
RADON,
CONFIG
}
ButtonRow buttonRow = buttonRow(
tab,
key("button_row"), // key of the row: Radon will save the content of the row to the disk with this key
"Label of the row",
List.of("Tooltip", "shows when you", "hover the row", "with your mouse"),
myEnum.RADON // either an option of your enum or true or false
);
// you sometimes want to run code, if the button's value is changed
// it's very simple to do that:
buttonRow.subscribe(newValue -> {
// newValue is an object
// but you can cast it into
(boolean) newValue
// or
(myEnum) newValue
// this will probably be made easier
});
// now, comes the slider row
// use this if you want a number
SliderRow sliderRow = sliderRow(
section, // here you can use a section instead of the tab
key("slider_key"),
"Label of the row",
List.of("Tooltip again"),
80, // initial value
50, // minimum value
100 // maximum value
);
// here subscribe gives you a long as newValue
// you can also run code, if Radon loaded the saved value of the option
sliderRow.onInit(() -> {
long value = sliderRow.getValue();
});
// and if you need a string value, use InputRow
InputRow inputRow = inputRow(
tab,
key("input"),
"Label of the row",
List.of("Tooltip"),
"Placeholder",
16 // limit how many characters it can be
);
// subscribe gives newValue as String here
}
}- Добавь свой класс в
fabric.mod.jsonкак точку входа:
{
"entrypoints": {
"radon": ["your.mod.MyConfig"]
}
}Вот так просто!
Частые вопросы
Как установить Radon?
Установите Fabric под свою версию Minecraft, скачайте Radon под ту же версию и загрузчик, положите файл в папку mods и запустите игру с профилем загрузчика.
Для каких версий Minecraft есть Radon?
У Radon есть сборки для Minecraft 1.21–1.21.11.
Нужен ли Radon на сервере?
Ставится только в игру; на сервер ставить не нужно
Лицензия и источник
GNU General Public License v3.0 onlyможно использовать и распространять; изменённые версии — под той же лицензией и с исходным кодом