diff --git a/panel-start.sh b/panel-start.sh index 5432699..dd00c86 100755 --- a/panel-start.sh +++ b/panel-start.sh @@ -1,12 +1,9 @@ #!/bin/sh set -eu -# 面板入口脚本:适合“面板固定执行 start.sh,但只能上传文件/编辑文件”的环境。 -# 用法: -# 1. 下载本文件 -# 2. 上传到面板,并按需要重命名为面板要求的固定入口名(通常就是 start.sh) -# 3. 修改下面几个变量 -# 4. 点击运行 +############ +# 常量定义 # +############ REPO_URL="${REPO_URL:-https://gitea.service.jazzwhom.top/Passthem/pt-minecraft-modpack}" REPO_REF="${REPO_REF:-main}" @@ -17,6 +14,10 @@ TMP_DIR="${TMP_DIR:-$(pwd)/pt-minecraft-modpack.__tmp}" PT_JAVA_ARGS="${PT_JAVA_ARGS:--Xms1G -Xmx1G}" PACKWIZ_INSTALLER_URL="${PACKWIZ_INSTALLER_URL:-https://github.com/packwiz/packwiz-installer/releases/latest/download/packwiz-installer.jar}" +############ +# 辅助函数 # +############ + log() { printf '[panel-entry] %s\n' "$*" } diff --git a/server-02-skygrid/index.toml b/server-02-skygrid/index.toml new file mode 100644 index 0000000..f91755d --- /dev/null +++ b/server-02-skygrid/index.toml @@ -0,0 +1,46 @@ +hash-format = "sha256" + +[[files]] +file = "mods/appleskin.pw.toml" +hash = "1fc1e482945dff68e6aab34b22d61d054a6177869408ed4af3fef6117a33faab" +metafile = true + +[[files]] +file = "mods/c2me-fabric.pw.toml" +hash = "4ee1808a7fb319d469dece5752cedb05dacb9afbe48021fa664f54b8c83fdc45" +metafile = true + +[[files]] +file = "mods/carpet.pw.toml" +hash = "b6986c7bdec6840b8a344b4028b0a52be10460f2630223ca88db681b36cd5efa" +metafile = true + +[[files]] +file = "mods/easyauth.pw.toml" +hash = "a2cf3825aa8d9cd727953a7496ce4ee781883e958bf0c7b0ae9d60f2c5ab2942" +metafile = true + +[[files]] +file = "mods/fabric-api.pw.toml" +hash = "0345fbfa8542b5ec84535fe2aff0f5cc4e801ecc337f926d4e2310b53f458569" +metafile = true + +[[files]] +file = "mods/fabric-language-kotlin.pw.toml" +hash = "e49f549eecbe502a3da6d731d6e28783631b14b0bba7bba9780a1075e7926776" +metafile = true + +[[files]] +file = "mods/lithium.pw.toml" +hash = "84957275e9dc6f07f4244ce3303536e3d73b0e72eb1696ccd024168a52c29c98" +metafile = true + +[[files]] +file = "mods/no-chat-reports.pw.toml" +hash = "70d7b2bca719eca2b3a1447228b868abdc633c38121652d49f4e34380c44339d" +metafile = true + +[[files]] +file = "mods/simple-voice-chat.pw.toml" +hash = "44acdef628ff0435c751b93100dd1a3dfabd263039003d39b20cb6f35110060f" +metafile = true diff --git a/server-02-skygrid/mods/appleskin.pw.toml b/server-02-skygrid/mods/appleskin.pw.toml new file mode 100644 index 0000000..4ea0e6a --- /dev/null +++ b/server-02-skygrid/mods/appleskin.pw.toml @@ -0,0 +1,13 @@ +name = "AppleSkin" +filename = "appleskin-fabric-mc1.21.9-3.0.7.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/EsAfCjCV/versions/8sbiz1lS/appleskin-fabric-mc1.21.9-3.0.7.jar" +hash-format = "sha512" +hash = "79d0d0b4a09140cdb7cf74b1cd71554147c60648beb485ca647b149174e171660ec561ad329da58b78b5de439909b180e287b4b38bf068acfca20666100f4584" + +[update] +[update.modrinth] +mod-id = "EsAfCjCV" +version = "8sbiz1lS" diff --git a/server-02-skygrid/mods/c2me-fabric.pw.toml b/server-02-skygrid/mods/c2me-fabric.pw.toml new file mode 100644 index 0000000..8c20250 --- /dev/null +++ b/server-02-skygrid/mods/c2me-fabric.pw.toml @@ -0,0 +1,13 @@ +name = "Concurrent Chunk Management Engine (Fabric)" +filename = "c2me-fabric-mc1.21.10-0.3.6+alpha.0.9.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/VSNURh3q/versions/2EKX8Hiv/c2me-fabric-mc1.21.10-0.3.6%2Balpha.0.9.jar" +hash-format = "sha512" +hash = "71e193ecaa38e927a9f943eac6cac5b5dcb4ce6934aae994da9fe34cace5941fe25258056d8b9fdedbda87c5eb3787cad4c74e68ea39048cb6e86202a56dd7ec" + +[update] +[update.modrinth] +mod-id = "VSNURh3q" +version = "2EKX8Hiv" diff --git a/server-02-skygrid/mods/carpet.pw.toml b/server-02-skygrid/mods/carpet.pw.toml new file mode 100644 index 0000000..3f13671 --- /dev/null +++ b/server-02-skygrid/mods/carpet.pw.toml @@ -0,0 +1,13 @@ +name = "Carpet" +filename = "fabric-carpet-1.21.10-1.4.188+v251016.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/TQTTVgYE/versions/oiUqSOMA/fabric-carpet-1.21.10-1.4.188%2Bv251016.jar" +hash-format = "sha512" +hash = "dfab93784fcaa73b20854857063025d36a2f7c27397cc64b141fe2c85024993a87936016ac823c2c945f27314b9938aa57e06b55676a1c349c121b445ecfe213" + +[update] +[update.modrinth] +mod-id = "TQTTVgYE" +version = "oiUqSOMA" diff --git a/server-02-skygrid/mods/easyauth.pw.toml b/server-02-skygrid/mods/easyauth.pw.toml new file mode 100644 index 0000000..622e93b --- /dev/null +++ b/server-02-skygrid/mods/easyauth.pw.toml @@ -0,0 +1,13 @@ +name = "EasyAuth" +filename = "easyauth-mc1.21.9-3.4.2.jar" +side = "server" + +[download] +url = "https://cdn.modrinth.com/data/aZj58GfX/versions/JhU4S1jg/easyauth-mc1.21.9-3.4.2.jar" +hash-format = "sha512" +hash = "d51bc5781577e841f4ed7c5af211716d21175ba75a4f33ddc89d3dd48bfa6718d77399e00b1416278c4c7f83991e37a3a415dc0e1fdd3b1b447fbf5c81024742" + +[update] +[update.modrinth] +mod-id = "aZj58GfX" +version = "JhU4S1jg" diff --git a/server-02-skygrid/mods/fabric-api.pw.toml b/server-02-skygrid/mods/fabric-api.pw.toml new file mode 100644 index 0000000..5145bc8 --- /dev/null +++ b/server-02-skygrid/mods/fabric-api.pw.toml @@ -0,0 +1,13 @@ +name = "Fabric API" +filename = "fabric-api-0.138.4+1.21.10.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/tV4Gc0Zo/fabric-api-0.138.4%2B1.21.10.jar" +hash-format = "sha512" +hash = "5e64c53391dfd1c059777d671c52be17a4e27a29d9bd7340ea9e3f55ce7a770b38db0a15e0966e981ee8c1b9372fb89543a278521624689268acebb85bd5c6e9" + +[update] +[update.modrinth] +mod-id = "P7dR8mSH" +version = "tV4Gc0Zo" diff --git a/server-02-skygrid/mods/fabric-language-kotlin.pw.toml b/server-02-skygrid/mods/fabric-language-kotlin.pw.toml new file mode 100644 index 0000000..9dcc644 --- /dev/null +++ b/server-02-skygrid/mods/fabric-language-kotlin.pw.toml @@ -0,0 +1,13 @@ +name = "Fabric Language Kotlin" +filename = "fabric-language-kotlin-1.13.10+kotlin.2.3.20.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/Ha28R6CL/versions/21TRTKmh/fabric-language-kotlin-1.13.10%2Bkotlin.2.3.20.jar" +hash-format = "sha512" +hash = "e4eaf7594de08eb4f3ea8af2e939f3ee61d07597afb4d5f420c3fbadcb381c7bbad4b1afd5919b3087b73ed9636fb018b1c978858a112bd4f6acdcb42e9eedaa" + +[update] +[update.modrinth] +mod-id = "Ha28R6CL" +version = "21TRTKmh" diff --git a/server-02-skygrid/mods/lithium.pw.toml b/server-02-skygrid/mods/lithium.pw.toml new file mode 100644 index 0000000..082747f --- /dev/null +++ b/server-02-skygrid/mods/lithium.pw.toml @@ -0,0 +1,13 @@ +name = "Lithium" +filename = "lithium-fabric-0.20.1+mc1.21.10.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/gvQqBUqZ/versions/NsswKiwi/lithium-fabric-0.20.1%2Bmc1.21.10.jar" +hash-format = "sha512" +hash = "79b2892d123f3bb12649927dd8fccc25c955ff38a19f3aba7cd0180c4cf5506c2a76d49418b13050f90bba7bb59f3623af06e8a275e2ae8c63808084043902bb" + +[update] +[update.modrinth] +mod-id = "gvQqBUqZ" +version = "NsswKiwi" diff --git a/server-02-skygrid/mods/no-chat-reports.pw.toml b/server-02-skygrid/mods/no-chat-reports.pw.toml new file mode 100644 index 0000000..9b8d478 --- /dev/null +++ b/server-02-skygrid/mods/no-chat-reports.pw.toml @@ -0,0 +1,13 @@ +name = "No Chat Reports" +filename = "NoChatReports-FABRIC-1.21.10-v2.16.0.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/qQyHxfxd/versions/78RjC1gi/NoChatReports-FABRIC-1.21.10-v2.16.0.jar" +hash-format = "sha512" +hash = "39b2f284f73f8290012b8b9cc70085d59668547fc7b4ec43ab34e4bca6b39a6691fbe32bc3326e40353ba9c16a06320e52818315be77799a5aad526370cbc773" + +[update] +[update.modrinth] +mod-id = "qQyHxfxd" +version = "78RjC1gi" diff --git a/server-02-skygrid/mods/pt-skygrid-1.0.0.jar b/server-02-skygrid/mods/pt-skygrid-1.0.0.jar new file mode 100644 index 0000000..f360682 Binary files /dev/null and b/server-02-skygrid/mods/pt-skygrid-1.0.0.jar differ diff --git a/server-02-skygrid/mods/simple-voice-chat.pw.toml b/server-02-skygrid/mods/simple-voice-chat.pw.toml new file mode 100644 index 0000000..b7b90a9 --- /dev/null +++ b/server-02-skygrid/mods/simple-voice-chat.pw.toml @@ -0,0 +1,13 @@ +name = "Simple Voice Chat" +filename = "voicechat-fabric-1.21.10-2.6.12.jar" +side = "both" + +[download] +url = "https://cdn.modrinth.com/data/9eGKb6K1/versions/n7Kvch7B/voicechat-fabric-1.21.10-2.6.12.jar" +hash-format = "sha512" +hash = "5dc3946095adc241e78f186106c793bc046f45a1d7ad757712618ed6b30fca443dc78b42f646f352135a6f77f912dd54a3332798c8c8642f1963354c28cd09c4" + +[update] +[update.modrinth] +mod-id = "9eGKb6K1" +version = "n7Kvch7B" diff --git a/server-02-skygrid/pack.toml b/server-02-skygrid/pack.toml new file mode 100644 index 0000000..09d3011 --- /dev/null +++ b/server-02-skygrid/pack.toml @@ -0,0 +1,13 @@ +name = "PT's Server Modpack 1" +author = "passthem" +version = "1.0.0" +pack-format = "packwiz:1.1.0" + +[index] +file = "index.toml" +hash-format = "sha256" +hash = "3749068946096b3a3bf0101a24723ba1e21302882e35c970f8834f5aead039de" + +[versions] +fabric = "0.18.5" +minecraft = "1.21.10"