Migrate AstraSoups to NeoForge as AstraCauldron

This commit is contained in:
2026-09-08 19:44:45 +03:00
parent 8391dfe739
commit a82c2aa0f9
52 changed files with 2095 additions and 2010 deletions
+6 -2
View File
@@ -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