Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-local-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ name: Test local action
default: "1.3.5+85d85a934f"
hmc-version:
description: HeadlessMC version
default: "2.9.0"
default: "2.10.0"

env:
java_version: ${{ github.event.inputs.java }}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 26.2/gradlew → 26_2/gradlew
100644 → 100755
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This project helps streamline that process by automating the client launch and b
### Supported Minecraft Versions and Modloaders
| Version | Forge | Fabric | NeoForge |
|-----------------|----------------|----------------|----------------|
| 26.1 - 26.1.2 | ✔️ | ✔️ | ✔️ |
| 26.1 - 26.2 | ✔️ | ✔️ | ✔️ |
| 1.21 - 1.21.11 | ✔️ | ✔️ | ✔️ |
| 1.20.2 - 1.20.6 | ✔️ | ✔️ | ✔️ |
| 1.20.1 | ✔️ | ✔️ | ⚠️ |
Expand Down Expand Up @@ -113,7 +113,7 @@ The following table summarizes the available inputs for customization:
| `fabric-api` | Fabric API version to download or none | | `0.97.0`, `none` |
| `fabric-gametest-api` | Fabric GameTest API version or none | | `1.3.5+85d85a934f`, `none` |
| `download-hmc` | Download HeadlessMC | | `true`, `false` |
| `hmc-version` | HeadlessMC version | | `2.9.0`, `1.5.0` |
| `hmc-version` | HeadlessMC version | | `2.10.0`, `1.5.0` |
| `cache-mc` | Cache `.minecraft` <br/>(`true` defaults to `blacksmith`) | | `github`, `blacksmith`, `true`, `false` |

---
Expand Down
13 changes: 8 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inputs:
default: "true"
hmc-version:
description: HeadlessMC version
default: "2.9.0"
default: "2.10.0"
cache-mc:
description: Cache .minecraft (blacksmith, github, true (defaults to blacksmith), false)
default: "github"
Expand All @@ -56,6 +56,7 @@ runs:
cat <<EOF >> HeadlessMC/config.properties
hmc.java.versions=$JAVA_HOME/bin/java
hmc.gamedir=$PWD/run
hmc.mcdir=$HOME/.minecraft
hmc.offline=true
hmc.rethrow.launch.exceptions=true
hmc.exit.on.failed.command=true
Expand All @@ -68,9 +69,11 @@ runs:
New-Item -ItemType Directory -Force -Path HeadlessMC, run/mods | Out-Null
$currentDir = (Get-Location).Path -replace '\\', '\\\\'
$javaPath = "$env:JAVA_HOME\bin\java.exe" -replace '\\', '\\\\'
$mcDir = "$HOME\.minecraft" -replace '\\', '\\\\'
$config = @(
"hmc.java.versions=$javaPath",
"hmc.gamedir=$currentDir\\run",
"hmc.mcdir=$mcDir",
"hmc.offline=true",
"hmc.rethrow.launch.exceptions=true",
"hmc.exit.on.failed.command=true"
Expand All @@ -95,15 +98,15 @@ runs:
name: Cache Minecraft
uses: useblacksmith/cache@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
with:
path: /home/runner/.minecraft
key: ${{ inputs.mc }}-${{ inputs.modloader }}-hmc
path: ~/.minecraft
key: ${{ runner.os }}-${{ inputs.mc }}-${{ inputs.modloader }}-hmc

- if: inputs.cache-mc == 'github'
name: Cache Minecraft
uses: actions/cache@v4
with:
path: /home/runner/.minecraft
key: ${{ inputs.mc }}-${{ inputs.modloader }}-hmc
path: ~/.minecraft
key: ${{ runner.os }}-${{ inputs.mc }}-${{ inputs.modloader }}-hmc

- name: Download ${{ inputs.modloader }}-${{ inputs.mc }}
run: |
Expand Down
Loading