diff --git a/README.md b/README.md index d13753b..c563919 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/defaults/main.yml b/defaults/main.yml index 05c8439..8f834cf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: diff --git a/tasks/main.yml b/tasks/main.yml index e48d3c1..c3bc842 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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