use forge instead of paper

This commit is contained in:
Nikolai Rodionov 2024-06-03 20:59:12 +02:00
parent 85a8088610
commit 1c445c892e
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -27,7 +27,7 @@ traefik:
# -- Main values # -- Main values
# -------------------------------------------------- # --------------------------------------------------
image: image:
tag: java17-graalvm #tag: java17-graalvm
pullPolicy: Always pullPolicy: Always
resources: resources:
@ -37,11 +37,11 @@ resources:
limits: limits:
memory: 3Gi memory: 3Gi
lifecycle: #lifecycle:
postStart: # postStart:
- bash # - bash
- -c # - -c
- for i in {1..100}; do mc-health && break || sleep 20; done && mc-send-to-console setpassword 11223345 # - for i in {1..100}; do mc-health && break || sleep 20; done && rcon-cli setpassword 11223345
readinessProbe: readinessProbe:
command: command:
@ -57,10 +57,11 @@ minecraftServer:
eula: "TRUE" eula: "TRUE"
onlineMode: false onlineMode: false
difficulty: hard difficulty: hard
hardcore: true hardcore: false
version: 1.20.1 version: 1.20.1
maxWorldSize: 90000 maxWorldSize: 90000
type: "PAPER" type: "FORGE"
forgeInstallerUrl: https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.2-48.1.0/forge-1.20.2-48.1.0-installer.jar
paperDownloadUrl: https://api.papermc.io/v2/projects/paper/versions/1.20.1/builds/170/downloads/paper-1.20.1-170.jar paperDownloadUrl: https://api.papermc.io/v2/projects/paper/versions/1.20.1/builds/170/downloads/paper-1.20.1-170.jar
gameMode: survival gameMode: survival
pvp: true pvp: true
@ -109,69 +110,47 @@ mcbackup:
# -- Install Plugins # -- Install Plugins
# --------------------------------------------- # ---------------------------------------------
initContainers: initContainers:
- name: 0-install-prometheus-exporter - name: 0-install-create-plugin
image: alpine/curl image: alpine/curl
command: command:
- curl - curl
- -L - -L
- "https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v2.5.0/minecraft-prometheus-exporter-2.5.0.jar" - "https://www.curseforge.com/api/v1/mods/328085/files/4835191/download"
- -o - -o
- /data/plugins/prometheus-exporter.jar - /data/mods/create.jar
volumeMounts: volumeMounts:
- name: plugins - name: plugins
mountPath: /data/plugins mountPath: /data/mods
readOnly: false readOnly: false
- name: 0-install-password-plugin - name: 0-install-vic-plugin
image: alpine/curl image: alpine/curl
command: command:
- curl - curl
- -L - -L
- "https://github.com/timbru31/PasswordProtect/releases/download/PasswordProtect-3.1.0/PasswordProtect.jar" - https://www.curseforge.com/api/v1/mods/961053/files/5367445/download
- -o - -o
- /data/plugins/PasswordProtect.jar - /data/mods/vic.jar
volumeMounts: volumeMounts:
- name: plugins - name: plugins
mountPath: /data/plugins mountPath: /data/mods
readOnly: false readOnly: false
- name: 0-install-gravity-control-plugin - name: 0-install-gecko-plugin
image: alpine/curl image: alpine/curl
command: command:
- curl - curl
- -L - -L
- https://github.com/e-im/GravityControl/releases/download/v1.3.0/GravityControl-1.3.0.jar - https://www.curseforge.com/api/v1/mods/388172/files/5386950/download
- -o - -o
- /data/plugins/GravityControl-1.3.0.jar - /data/mods/geckolib.jar
volumeMounts: volumeMounts:
- name: plugins - name: plugins
mountPath: /data/plugins mountPath: /data/mods
readOnly: false readOnly: false
- name: 0-install-fast-minecart-plugin
image: alpine/curl
command:
- curl
- -L
- https://github.com/certainly1182/FastMinecarts/releases/download/v1.0.1/FastMinecarts.jar
- -o
- /data/plugins/FastMinecarts.jar
volumeMounts:
- name: plugins
mountPath: /data/plugins
- name: 1-add-plugins-to-minecraft
image: alpine/curl
command:
- sh
- -c
- cp -r /in /out/plugins
volumeMounts:
- name: plugins
mountPath: /in
readOnly: false
- name: datadir
mountPath: /out
extraVolumes: extraVolumes:
- volumeMounts: - volumeMounts:
- name: plugins - name: plugins
mountPath: /data/plugins mountPath: /data/mods
readOnly: false readOnly: false
volumes: volumes:
- name: plugins - name: plugins