2021-09-15 15:17:32 +02:00
# Select one of multiple files
2021-08-30 14:38:03 +02:00
This Allows you to pick between multiple files (3 or more files) using similar logic to [Toggle Files ](./ToggleFiles.md )
But this requires multiple `.rpo` files to achieve the desired goal.
You will need the `PackID` and `EntryName` from your `/assets/respackopts/conf.json` that you created earlier
if you have not, see [Main Config ](./MainConfig.md ) on how to do so.
< br >
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same folder(directory).
< br >
### Examples:
`texture.png` would be `texture.png.rpo` < br >
2021-09-15 20:59:10 +02:00
`some_recipe.json` would be `some_recipe.json.rpo`
2021-08-30 14:38:03 +02:00
< br >
### `.rpo` explaination :
You need a `.rpo` file per texture (except for the last one in your list) if you have 3 files to select beteen then you will need 2 `.rpo` files, If you have 4 files to select between then you will need 3 `.rpo` files and so on etc.....
### Layout:
This is your first `.rpo` with your first file
```json
{
"condition": "< your pack id > :< your entry > ",
2021-09-15 20:59:10 +02:00
"fallback": "path/to/second.json/.png"
2021-08-30 14:38:03 +02:00
}
```
***
This is your second `.rpo` with your second file
```json
{
"condition": "< your pack id > :< your entry > ",
"fallback": "path/to/thirdfile.json/.png"
}
```
### Example:
```json
{
2021-09-15 20:59:10 +02:00
"condition": "examplePack:option_one",
"fallback": "path/to/secondfile.json"
2021-08-30 14:38:03 +02:00
}
```
```json
{
2021-09-15 20:59:10 +02:00
"condition": "examplePack:option_two",
2021-08-30 14:38:03 +02:00
"fallback": "path/to/thirdfile.json"
}
```