Utility Nexus Admin (0.0.0-beta.6)
Curse Maven Snippet
What's new
v0.0.0-beta.6 - Config, Datapacks & Pregen Rework
Added
- Global datapacks — datapacks (folders or
.zip) dropped into<gameDir>/datapacks/are now injected into every world, on both client and server. Vanilla only loads per-worldsaves/<world>/datapacks/; this makes a single folder apply everywhere. logging.levelconfig key (DEBUG/INFO/WARN/ERROR) that filters the mod's own log output.ERRORis always emitted.
Changed
- Configuration is now a real, commented TOML file at
config/utility_nexus/admin/config.toml, backed by NeoForge'sModConfigSpec(previously a Java.propertiesfile with a misleading.tomlname). /una config get|set|reloadstill work withsection.keynames (e.g.pregen.chunksPerTick).setnow writes to disk immediately.- Datapack commands no longer copy files or keep backups.
/una datapack list|load|unload|reload|validate|loadallnow act on the live pack repository —loadenables a pack,unloaddisables it. - Chunk pregeneration only runs while the server is empty. With
pregen.enabled = trueit auto-starts on server start, pauses when a player joins, and resumes when the last player leaves. /unais gated by the configurablecommands.opLevel.commands.enableDatapackCommandsandcommands.enableConfigCommandsnow genuinely register or skip their command subtrees.
Removed
- Config keys
datapack.configDirectory,datapack.backupDirectory,logging.fileEnabled,logging.discordWebhook,permissions.useLuckPerms,permissions.defaultOpLevel— unused placeholders or dropped features. There is no LuckPerms integration.
Technical Changes
UNAConfig— rewritten onModConfigSpecwith typed accessors plus asection.keymap for the config commands; custom nested config path viaregisterConfig(Type.COMMON, SPEC, "utility_nexus/admin/config.toml").UNALog— new level-filtered logging wrapper around SLF4J.DatapackManager— registers aRepositorySourceonAddPackFindersEvent(SERVER_DATA) and selects the discovered packs onServerStartingEvent; commands operate throughPackRepository#setSelected+MinecraftServer#reloadResources.ChunkPregenerator— reads config through typed accessors; a player-online guard in the server tick backs up the pause/resume events.
Server note: the config file moved toconfig/utility_nexus/admin/config.tomland several keys were renamed or removed. Delete any oldconfig/utility_nexus_admin.tomland re-check your settings after updating.
This mod has no additional files

