Respackopts/docs/old/fallbacks.md
2021-08-30 14:38:03 +02:00

24 lines
684 B
Markdown

# Fallback resources
You can select an option by providing a fallback in addition to conditions.
If the conditions are not met, fallbacks will be used. If the first callback can't be used,
A later one will be tried. If none can be used, the resource will be ignored.
## Example
```json
{
"conditions": [
{
"not": [
"example:useAlternate"
]
}
],
"fallbacks": [
"assets/minecraft/lang/en_us_alternate.json"
]
}
```
## Multiple alternatives
A fallback resource may provide their own conditions or fallbacks which will also be considered
and can be used to allow users to select one of multiple resources