feat: no exted mod for wow mine
This commit is contained in:
@@ -9,7 +9,7 @@ let
|
||||
serviceConfig = {
|
||||
User = "mc-wow-tunnel";
|
||||
Group = "mc-wow-tunnel";
|
||||
ExecStart = "${pkgs.openssh}/bin/ssh -NT -i ${config.sops.secrets."minecraft/wow-tunnel-key".path} -o IPQoS=none -o Ciphers=aes256-ctr -o MACs=hmac-sha2-256-etm@openssh.com -o KexAlgorithms=curve25519-sha256 -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/ssh/ssh_known_hosts -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ConnectTimeout=10 -R 127.0.0.1:25577:127.0.0.1:25567 mc-wow-relay@${relay.address}";
|
||||
ExecStart = "${pkgs.openssh}/bin/ssh -NT -p ${toString (relay.port or 22)} -i ${config.sops.secrets."minecraft/wow-tunnel-key".path} -o IPQoS=none -o Ciphers=aes256-ctr -o MACs=hmac-sha2-256-etm@openssh.com -o KexAlgorithms=curve25519-sha256 -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/ssh/ssh_known_hosts -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ConnectTimeout=10 -R 127.0.0.1:25577:127.0.0.1:25567 mc-wow-relay@${relay.address}";
|
||||
Restart = "always";
|
||||
RestartSec = 10;
|
||||
NoNewPrivileges = true;
|
||||
@@ -31,7 +31,7 @@ in {
|
||||
mode = "0400";
|
||||
};
|
||||
programs.ssh.knownHosts.minecraft-wow-relay = {
|
||||
hostNames = [ "128.140.75.58" ];
|
||||
hostNames = [ "[128.140.75.58]:22223" ];
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAFpr4DPSaJt0xeuGIfcZBJD3LsJHTdIRIs2Tt9HF+CT";
|
||||
};
|
||||
programs.ssh.knownHosts.minecraft-wow-relay-bfs = {
|
||||
@@ -41,6 +41,7 @@ in {
|
||||
systemd.services.minecraft-wow-tunnel = mkTunnel {
|
||||
name = "hectic-lab";
|
||||
address = "128.140.75.58";
|
||||
port = 22223;
|
||||
};
|
||||
systemd.services.minecraft-wow-tunnel-bfs = mkTunnel {
|
||||
name = "bfs.band";
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"values": ["worldofsosal:spawn_tick"]
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
spawnpoint @s 3742 89 8891
|
||||
tp @s 3742 89 8891
|
||||
tag @s add worldofsosal_initialized
|
||||
+1
@@ -0,0 +1 @@
|
||||
execute as @a[tag=!worldofsosal_initialized] in crafting_azeroth:azeroth run function worldofsosal:first_spawn
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"pack_format": 48,
|
||||
"description": "WorldOfSosal: initial spawn in Azeroth"
|
||||
}
|
||||
}
|
||||
@@ -13,10 +13,10 @@
|
||||
serverName = "wowMineMap";
|
||||
remoteHost = "u664722.your-storagebox.de";
|
||||
remoteUser = "u664722";
|
||||
remotePath = "minecraft/pack/WorldOfSosal-v3.mrpack";
|
||||
remotePath = "minecraft/pack/WorldOfSosal-v4-native-height.mrpack";
|
||||
archiveName = "WorldOfSosal.mrpack";
|
||||
cacheDir = "/var/lib/minecraft-modpacks/worldOfSosal";
|
||||
archiveSha256 = "f97cf251b14f40590e97e7b39e8a8ec43dacfce6da1b02357d15e0eee10d3ade";
|
||||
archiveSha256 = "4a197bc039d6684fa1e652e1242b15d87bd8758de895ea8c4f8455ce6a712df1";
|
||||
expectedDependencies = {
|
||||
minecraft = "1.21.1";
|
||||
neoforge = "21.1.250";
|
||||
@@ -29,5 +29,11 @@
|
||||
systemd.services.minecraft-modpack-import-worldOfSosal = {
|
||||
after = [ "minecraft-world-import-wowMineMap.service" ];
|
||||
requires = [ "minecraft-world-import-wowMineMap.service" ];
|
||||
# Test the map's native dimension height without runtime height overrides.
|
||||
postStart = ''
|
||||
rm -f -- \
|
||||
"${config.services.minecraft-servers.dataDir}/wowMineMap/mods/dynamicheight-0.2.0+neoforge-1.21-1.21.1.jar" \
|
||||
"${config.services.minecraft-servers.dataDir}/wowMineMap/mods/sable_dynamicheight_compat-1.0.0.jar"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
serverName = "wowMineMap";
|
||||
remoteHost = "u664722.your-storagebox.de";
|
||||
remoteUser = "u664722";
|
||||
remotePath = "minecraft/map/wow mine map.rar";
|
||||
remotePath = "minecraft/map/versions/world-of-sosal-original-bc80084d.rar";
|
||||
archiveName = "wow mine map.rar";
|
||||
cacheDir = "/var/lib/minecraft-maps";
|
||||
archiveSha256 = "bc80084de10a06b0fc2cb1651c61936b9e2fd2288f3f0fe44c964d83a393aa30";
|
||||
@@ -22,6 +22,26 @@
|
||||
hostPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
|
||||
};
|
||||
|
||||
systemd.services.minecraft-world-reset-wowMineMap = {
|
||||
description = "Reset WorldOfSosal to the pinned source map";
|
||||
path = [ pkgs.coreutils pkgs.systemd ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "45min";
|
||||
};
|
||||
script = let
|
||||
source = config.services.minecraft-world-imports.wowMineMap;
|
||||
in ''
|
||||
set -eu
|
||||
printf '%s %s\n' \
|
||||
'${source.archiveSha256}' \
|
||||
'${source.cacheDir}/${source.archiveName}' | sha256sum -c -
|
||||
systemctl stop minecraft-server-wowMineMap.service minecraft-world-import-wowMineMap.service
|
||||
rm -rf -- '${config.services.minecraft-servers.dataDir}/wowMineMap/${source.worldName}'
|
||||
systemctl start minecraft-server-wowMineMap.service
|
||||
'';
|
||||
};
|
||||
|
||||
sops.secrets."minecraft/rcon-password" = {
|
||||
sopsFile = ../../../../sus/neuro-minecraft.yaml;
|
||||
owner = "minecraft";
|
||||
|
||||
Reference in New Issue
Block a user