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
- Host: GitHub
- URL: https://github.com/betacraftuk/asset-index-maker
- Owner: betacraftuk
- License: mit
- Created: 2024-09-22T10:10:18.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-11T15:21:50.000Z (5 months ago)
- Last Synced: 2025-01-11T16:30:47.340Z (5 months ago)
- Topics: assets, generator, index, minecraft
- Language: Java
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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