This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ([switch]$IsHidden) | |
| if (-not $IsHidden.IsPresent) { | |
| $scriptPath = $MyInvocation.MyCommand.Path | |
| $arguments = "-File `"$scriptPath`" -IsHidden" | |
| Start-Process powershell.exe -ArgumentList $arguments -WindowStyle Hidden | |
| exit | |
| } | |
| Add-Type -AssemblyName System.Windows.Forms | |
| Add-Type -AssemblyName System.Drawing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs-extra') | |
| var objects = require('./indexes/1.14-af.json').objects | |
| for (var filePath in objects) { | |
| if (!/\/(?:ambient|block|damage|dig|enchant|entity|fire|fireworks|item|liquid|minecart|mob|music|note|portal|random|records|step|tile|ui)\//.test(filePath)) continue | |
| var copyPath = filePath.replace('minecraft/', './') | |
| var hash = objects[filePath].hash | |
| var objectPath = './objects/' + hash.substring(0, 2) + '/' + hash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs-extra') | |
| var objects = require('./indexes/1.14.json').objects | |
| for (var filePath in objects) { | |
| if (!/\/(?:gui)\//.test(filePath)) continue | |
| var copyPath = filePath.replace('minecraft/', './') | |
| var hash = objects[filePath].hash | |
| var objectPath = './objects/' + hash.substring(0, 2) + '/' + hash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs-extra') | |
| var objects = require('./indexes/1.13-af.json').objects | |
| for (var filePath in objects) { | |
| if (!/\/(?:blocks|colormap|effect|entity|environment|font|gui|items|map|misc|models|painting|particle|texts)\//.test(filePath)) continue | |
| var copyPath = filePath.replace('minecraft/', './') | |
| var hash = objects[filePath].hash | |
| var objectPath = './objects/' + hash.substring(0, 2) + '/' + hash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs-extra') | |
| var objects = require('./indexes/1.14.json').objects | |
| for (var filePath in objects) { | |
| if (!/\/(?:ambient|block|damage|dig|enchant|entity|fire|fireworks|item|liquid|minecart|mob|music|note|portal|random|records|step|tile|ui)\//.test(filePath)) continue | |
| var copyPath = filePath.replace('minecraft/', './') | |
| var hash = objects[filePath].hash | |
| var objectPath = './objects/' + hash.substring(0, 2) + '/' + hash |