An open API service indexing awesome lists of open source software.

https://github.com/betacraftuk/asset-index-maker

Tool for generating Minecraft asset indexes
https://github.com/betacraftuk/asset-index-maker

assets generator index minecraft

Last synced: about 2 months ago
JSON representation

Tool for generating Minecraft asset indexes

Awesome Lists containing this project

README

        

# Usage
```sh
java -jar asset-index-maker.jar [arguments ...]
```
## Arguments
`--resources`
- if provided, `map_to_resources` will be set to `true`

`--virtual`
- if provided, `virtual` will be set to `true`

`--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 of `assets_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