Add chain-coupled minecart trains, closed loops and slime buffers
This commit is contained in:
@@ -26,12 +26,13 @@ if($Experimental){'initial-enabled-packs=vanilla,minecart_improvements' | Add-Co
|
||||
'{"build":{"onStartup":false},"astraPacks":{"enabled":false},"editor":{"enabled":false}}' | Set-Content "$output/config/astraplus.json"
|
||||
$plus=Get-ChildItem -LiteralPath "$ServerRoot/mods" -Filter 'AstraPlus-*.jar' | Where-Object Name -NotMatch 'sources|api|verification'
|
||||
if(@($plus).Count -ne 1){throw 'Expected exactly one installed AstraPlus JAR'}
|
||||
Copy-Item -LiteralPath $plus.FullName,"$project/build/libs/AstraContent-0.1.0.jar","$project/build/libs/AstraContent-0.1.0-verification.jar" -Destination "$output/mods"
|
||||
Copy-Item -LiteralPath $plus.FullName,"$project/build/libs/AstraContent-0.2.0.jar","$project/build/libs/AstraContent-0.2.0-verification.jar" -Destination "$output/mods"
|
||||
Push-Location $output
|
||||
try {
|
||||
foreach($pass in @('gameplay','restart')) {
|
||||
& 'C:/Users/ScarPC/.gradle/jdks/eclipse_adoptium-25-amd64-windows.2/bin/java.exe' '-Xmx2G' '-Dastracontent.verify=true' "-Dastracontent.expectedExperimental=$($Experimental.IsPresent.ToString().ToLowerInvariant())" '@server-args.txt' nogui *> "$pass.log"
|
||||
if($LASTEXITCODE -ne 0){throw "Server failed: $output/$pass.log"}
|
||||
if(Select-String -Quiet -LiteralPath "$pass.log" -Pattern 'Exception stopping the server|Encountered an unexpected exception|Failed to save chunk|Mixin apply failed'){throw "Server lifecycle failed: $output/$pass.log"}
|
||||
$result=Get-Content -Raw verification-result.txt
|
||||
if(!$result.StartsWith("PASS $pass")){throw "Verification failed: $result ($output/$pass.log)"}
|
||||
Copy-Item verification-result.txt "$pass-result.txt"
|
||||
|
||||
Reference in New Issue
Block a user