feat: upgrade to java25 with updated mods and discord config

This commit is contained in:
Jet 2026-03-14 19:44:46 -07:00
parent b1c4ca1b73
commit 3d77463def
No known key found for this signature in database
3 changed files with 22 additions and 13 deletions

View file

@ -26,9 +26,12 @@ in
"botToken": "$TOKEN",
"channelId": "1482486447591391285",
"consoleLogChannelId": "1482487413153464330",
"updateNotificationChannelId": "",
"serverStatusVoiceChannelId": "",
"playerCountVoiceChannelId": "",
"useWebhook": true,
"updateChannelTopic": true,
"channelTopicUpdateInterval": 300000,
"channelUpdateInterval": 300000,
"allowedMentions": ["users", "roles"],
"broadcastPlayerCommandExecution": false,
"announceServerStartStop": true,

View file

@ -9,9 +9,7 @@ let
"krypton"
"ferrite-core"
"c2me-fabric"
"noisium"
"vmp-fabric"
"ksyxis"
"vmp-fabric:alpha"
"scalablelux"
"lmd"
"structure-layout-optimizer"
@ -89,7 +87,7 @@ in
virtualisation.oci-containers.backend = "docker";
virtualisation.oci-containers.containers.minecraft = {
image = "itzg/minecraft-server:java21";
image = "itzg/minecraft-server:java25";
ports = [
"25565:25565" # Minecraft
"24454:24454/udp" # Simple Voice Chat
@ -98,6 +96,7 @@ in
"${mcDataDir}:/data"
];
environment = {
TZ = "America/Los_Angeles";
EULA = "TRUE";
TYPE = "FABRIC";
VERSION = "1.21.11";
@ -107,13 +106,17 @@ in
PVP = "FALSE";
VIEW_DISTANCE = "10";
SIMULATION_DISTANCE = "10";
SPAWN_PROTECTION = "0";
ENABLE_WHITELIST = "TRUE";
ENFORCE_WHITELIST = "TRUE";
WHITELIST = "jetpham";
OPS = "jetpham";
MOTD = "meet cool people \\u00A7e\\u0026\\u0026\\u00A7r build cool things";
OVERRIDE_ICON = "TRUE";
REMOVE_OLD_MODS = "TRUE";
MODRINTH_DOWNLOAD_DEPENDENCIES = "required";
MODRINTH_PROJECTS = modrinthMods;
SYNC_CHUNK_WRITES = "false";
JVM_XX_OPTS = jvmFlags;
};
environmentFiles = [ "/run/minecraft-seed.env" ];
@ -146,8 +149,11 @@ in
printf 'SEED=%s\n' "$SEED" > /run/minecraft-seed.env
chmod 600 /run/minecraft-seed.env
# TODO: Remove after first deploy — one-time world reset for 1.21.11
rm -rf ${mcDataDir}/world
# One-time world reset for 1.21.11 — remove this block after confirming the new world works
if [ ! -f ${mcDataDir}/.world-reset-1.21.11 ]; then
rm -rf ${mcDataDir}/world
touch ${mcDataDir}/.world-reset-1.21.11
fi
# Server icon
cp ${../server-icon.png} ${mcDataDir}/server-icon.png