java -jar asset-index-maker.jar [arguments ...]
--resources
- if provided,
map_to_resources
will be set totrue
--virtual
- if provided,
virtual
will be set totrue
--directory=[assets directory]
- if provided, will use the directory as a source of assets to generate an index for
- if not provided, will default to the current working directory
--output=[asset index json path]
- if provided, will output the asset index json to that path
- if not provided, will default to
index.json
relative to current working directory
--testAvailability
- if provided, will test assets for being downloadable from the official Mojang server
--exportMissing[=[missing assets directory]]
- if provided, will export assets missing from the Mojang server to a separate directory
- if not set, the directory will default to
assets_missing
relative to current working directory - requires
--testAvailability
--exportAll
- if provided, will export all assets to a separate directory
- combined with
--asObjects
exports all assets as objects - exports assets into the directory specified by
--exportMissing
or the default
--asObjects
- if provided, will export missing assets in "objects structure", e.g.
assets_missing/02/022e48005197b37f0caa53e8051c8a266eeae15e
instead ofassets_missing/newsound/random/door_close.ogg
- requires
--testAvailability
and--exportMissing
--snippet=[path]
- changes path at which the generated asset index snippet is saved at
- if not provided, defaults to
snippet.json
relative to current working directory
--customUrl=[url prefix]
- if provided, will add
url
property to each asset which is not downloadable from the Mojang server - example download url:
[url prefix]/02/022e48005197b37f0caa53e8051c8a266eeae15e
- requires
--testAvailability
- almost all launchers don't support this property
--downloadUrl=[url prefix]
- url directory where the asset index json is expected to be located, e.g.
https://files.betacraft.uk/launcher/v2/assets/indexes/a1.2.0.json
- used for generating asset index snippet objects
- has to end with
/
- if not provided, defaults to empty string, and the resulting
url
value will be the json file name from--output
, e.g.a1.2.0.json
--debug
- if provided, will print additional debugging information