this is a thing idk, it copies necessary resourcepack png, json, ogg, and mcmeta files and optimises them if possible to save storage space (or you can choose not to optimise the text files soon™). this thing requires node
and pnpm
.
if you have npm installed (you should, it comes with node by default), you can run npm i -g pnpm
to install it.
git clone
andcd
into the dir (standard stuff)pnpm i
to install dependencies (still standard (npm) stuff)- put your resourcepack files inside a folder called
original
(not the zip file, put the loose files)
pnpm run optimise
to optimise/compress your resourcepack. the output is put insideout/optimised
pnpm run optimise:verbose
to run with verbose outputpnpx gulp --tasks
to list available taskspnpx gulp <taskname>
to run a task (where<taskname>
is the name of the task)- see the gulpfile (
gulpfile.js
) for more info on what happens
optimise
task to copy, and optimise if possible, the files for the resourcepack intoout/optimised
.optimise:verbose
to enable verbose output if available.copy
to copy the files that would be included inside the copying/optimising task intoout/copy
, without touching them. included for comparison reasons, and just why not lolcompare
to run both theoptimise
andcopy
task, so that you get an uncompressed version and a compress version to compare sizes and make sure nothing went wrong.png
,mcmeta
,json
,ogg
tasks. for each one, a copy and verbose version are available (for png, the three available ones arepng
,png:verbose
, andpng:copy
).copylicense
to copy all license files into the optimised directory (copylicense:copy
to copy it into the copying directory instead)clean
to clean and delete theout
folder. (clean:copy
andclean:optimise
available to delete only their respective output directories)