Migrate AstraSoups to NeoForge as AstraCauldron
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
param([string]$MinecraftDirectory = "$env:APPDATA/.minecraft")
|
||||
param([string]$MinecraftDirectory = "$env:APPDATA/.minecraft", [string]$ResourcePack)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repo = Split-Path $PSScriptRoot -Parent
|
||||
if (!$ResourcePack) {
|
||||
$run = (Get-Content -LiteralPath "$repo/build/active-verification.txt" -Raw).Trim()
|
||||
$ResourcePack = Join-Path $run 'astraplus/output/AstraPlus.zip'
|
||||
}
|
||||
$version = Get-Content -Raw -LiteralPath "$MinecraftDirectory/versions/26.2/26.2.json" | ConvertFrom-Json
|
||||
$classpath = @("$MinecraftDirectory/versions/26.2/26.2.jar") + @(
|
||||
$version.libraries | Where-Object { $_.downloads.artifact.path } | ForEach-Object {
|
||||
@@ -11,7 +15,7 @@ New-Item -ItemType Directory -Force -Path "$repo/build" | Out-Null
|
||||
$arguments = @(
|
||||
'--class-path', ('"' + (($classpath -join ';').Replace('\', '/')) + '"'),
|
||||
('"' + "$PSScriptRoot/CheckSoupModels.java".Replace('\', '/') + '"'),
|
||||
('"' + "$repo/src/main/resources/astra-itemsadder/astradev_soups/resourcepack/assets/astradev_soups".Replace('\', '/') + '"')
|
||||
('"' + $ResourcePack.Replace('\', '/') + '"')
|
||||
)
|
||||
$argumentFile = "$repo/build/check-models.args"
|
||||
Set-Content -Encoding utf8 -LiteralPath $argumentFile -Value $arguments
|
||||
|
||||
Reference in New Issue
Block a user