Add light compat for older Forge versions
This commit is contained in:
parent
297f5373ca
commit
1d5f6ced7f
@ -65,6 +65,8 @@ forge-1.16.3-34.1.42
|
||||
|
||||
In this case, set `minecraft_forge_version` to `34.1.42`. The role will automatically download and install Forge through the Universal installer of the related release.
|
||||
|
||||
Older versions of Forge may require changing `minecraft_forge_versionstring` to `{{ minecraft_name }}-{{ minecraft_forge_version }}-{{ minecraft_name }}` and `minecraft_forge_jar_name` to `forge-{{ minecraft_forge_versionstring }}-universal.jar`.
|
||||
|
||||
### Mods
|
||||
|
||||
Naturally, Forge is nothing without mods. To install a modpack, specify the following variable as a URL to a zip file with the modpack:
|
||||
|
@ -16,7 +16,9 @@ minecraft_packages_extra: []
|
||||
minecraft_paper_install: no
|
||||
minecraft_paper_downloadurl: "https://papermc.io/api/v1/paper/{{ minecraft_version }}/latest/download"
|
||||
minecraft_forge_install: no
|
||||
minecraft_forge_downloadurl: "https://files.minecraftforge.net/maven/net/minecraftforge/forge/{{ minecraft_version }}-{{ minecraft_forge_version }}/forge-{{ minecraft_version }}-{{ minecraft_forge_version }}-installer.jar"
|
||||
minecraft_forge_versionstring: "{{ minecraft_version }}-{{ minecraft_forge_version }}"
|
||||
minecraft_forge_downloadurl: "https://files.minecraftforge.net/maven/net/minecraftforge/forge/{{ minecraft_forge_versionstring }}/forge-{{ minecraft_forge_versionstring }}-installer.jar"
|
||||
minecraft_forge_jar_name: "forge-{{ minecraft_forge_versionstring }}.jar"
|
||||
# Define this if you already have a modpack zipped up and ready to go
|
||||
#minecraft_forge_packurl: https://path.to.your/modpack.zip
|
||||
# Define THIS if you want to download a bunch of mods by JAR URL:
|
||||
|
@ -51,7 +51,7 @@
|
||||
notify: restart minecraft {{ minecraft_name }}
|
||||
when: download_forge is changed
|
||||
- name: link to forge jar
|
||||
file: path={{ minecraft_home }}/{{ minecraft_name }}/server.jar src=forge-{{ minecraft_version }}-{{ minecraft_forge_version }}.jar state=link
|
||||
file: path={{ minecraft_home }}/{{ minecraft_name }}/server.jar src={{ minecraft_forge_jar_name }} state=link
|
||||
- name: install modpack
|
||||
block:
|
||||
- name: download modpack
|
||||
|
Loading…
Reference in New Issue
Block a user