Compatibility
Minecraft: Java Edition
26.2
1.21.11
Platforms
Supported environments
Client-side
Tags
Creators
Details
Licensed MIT
Published 6 hours ago
Updated last month
NukebobConfig
A simple API mod to help create a screen for your config. (it's slightly goofy)

How to implement:
Gradle
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
dependencies {
implementation "maven.modrinth:nWazb6Zr:TYmeQiXA"
}
You can find a specific version on the project versions page - developer info
Java
- Create a class extending NukebobConfigScreen
- Override the setConfig method, adding your own config options with a list of LittleNukebobs.
For each config option, you need to set a
- Text component for the hover text
- Method reference for the config toggle
- Method to update the visual enabled status based on the config option
See TestConfigScreen for an example implementation
public class ExampleConfigScreen extends NukebobConfigScreen {
private ExampleConfigScreen(Screen screen) {
...
}
@Override
public ArrayList<LittleNukebob> setConfig() {
return new ArrayList<>(){{
add(new LittleNukebob(Component.literal("Show lives in nametag"), littleNukebob -> {
MainConfig.loadConfig().showLivesInNametag=!MainConfig.loadConfig().showLivesInNametag;
}, littleNukebob -> {
littleNukebob.enabled = MainConfig.loadConfig().showLivesInNametag;
}));
}};
}
}


