Update README.md
This commit is contained in:
parent
48c18179ec
commit
e5a2515a24
|
@ -50,10 +50,9 @@ It also allows the following operations: `and`, `equal`, `nor`/`not`, `or`, `xor
|
||||||
An example can be seen [here](https://gitlab.com/JFronny/respackopts/-/tree/master/run/resourcepacks/lumi/assets/minecraft/lang)
|
An example can be seen [here](https://gitlab.com/JFronny/respackopts/-/tree/master/run/resourcepacks/lumi/assets/minecraft/lang)
|
||||||
### Fallback resources
|
### Fallback resources
|
||||||
Respackopts allows creating fallbacks for resources if they are unavailable/disabled.\
|
Respackopts allows creating fallbacks for resources if they are unavailable/disabled.\
|
||||||
To do this, create a file named `{targetFile}.fbt`.\
|
To do this, create a "fallbacks" entry in a files .rpo containing every possible fallback file as a string in an array.\
|
||||||
This file should contain a simple json array where each element is a reference to a possible fallback file.\
|
|
||||||
Use this in conjunction with the conditional resources feature in order to create multiple options for a single texture.\
|
Use this in conjunction with the conditional resources feature in order to create multiple options for a single texture.\
|
||||||
An example can be seen [here](https://gitlab.com/JFronny/respackopts/-/tree/master/run/resourcepacks/lumi/assets/minecraft/lang)
|
A simple example can be seen [here](https://gitlab.com/jfmods/respackopts/-/blob/master/run/resourcepacks/lumi/assets/minecraft/lang/de_de.json.rpo)
|
||||||
## Mod developers
|
## Mod developers
|
||||||
All data is available in static HashMaps in `io.gitlab.jfronny.respackopts.Respackopts`.\
|
All data is available in static HashMaps in `io.gitlab.jfronny.respackopts.Respackopts`.\
|
||||||
To save information, call `Respackopts.save()`, `Respackopts.load()` to load.
|
To save information, call `Respackopts.save()`, `Respackopts.load()` to load.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user