Skip to content

Commit

Permalink
fix(mineways): Corrected paths in textures script
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjgardner committed Mar 17, 2024
1 parent 267fd74 commit f8ac03a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions mineways/textures.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Copy all textures from bedrock\pack\RP and mineways\textures to dist\mineways\blocks

Copy-Item -Path ..\bedrock\pack\RP -Destination ..\dist\mineways\blocks -Recurse -Force
Copy-Item -Path ..\textures -Destination ..\dist\mineways\blocks -Recurse -Force
Copy-Item -Path .\bedrock\pack\RP\textures\blocks -Filter *.png -Destination .\dist\mineways\blocks -Recurse -Force
Copy-Item -Path .\mineways\textures -Destination .\dist\mineways\blocks -Recurse -Force

& "bin\TileMaker\ChannelMixer.exe" -v -m -i bedrock\pack\RP dist\mineways\blocks
& "bin\TileMaker\TileMaker.exe" -v -m -i bin\TileMaker\terrainBase.png -d dist\mineways\blocks -o dist\mineways\terrainExt_JGRTX256.png -t 256
$ChannelMixerPath = ".\mineways\bin\mineways\TileMaker\ChannelMixer.exe"
$TileMakerPath = ".\mineways\bin\mineways\TileMaker\TileMaker.exe"

$cmInput = ".\dist\mineways\blocks"
$cmOutput = ".\dist\mineways\channelMixer"

if (-not (Test-Path $cmOutput)) {
New-Item -Path $cmOutput -ItemType Directory
}

Start-Process -FilePath $ChannelMixerPath -ArgumentList "-v -i `"$($cmInput)`" -o `"$($cmOutput)`" -m" -Wait -NoNewWindow
Start-Process -FilePath $TileMakerPath -ArgumentList "-v -m -i .\mineways\bin\mineways\TileMaker\terrainBase.png -d $($cmOutput) -o .\dist\mineways\terrainExt_JGRTX256.png -t 256" -Wait -NoNewWindow

0 comments on commit f8ac03a

Please sign in to comment.