32 lines
937 B
Markdown
32 lines
937 B
Markdown
![]() |
# ResPackOpts Toggle Files (Bolean Based logic)
|
||
|
|
||
|
This is a simple `IF` satment simply returning true/false to if the texture/file should be loaded into the pack.
|
||
|
(Turns the texture "on" or "off").
|
||
|
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>
|
||
|
`SomeRecipe.json` would be `SomeRecipe.json.rpo`
|
||
|
<br>
|
||
|
|
||
|
### Layout:
|
||
|
```json
|
||
|
{
|
||
|
"condition": "<your pack id>:<your entry>"
|
||
|
}
|
||
|
```
|
||
|
### Example:
|
||
|
```json
|
||
|
{
|
||
|
"condition": "ExamplePack:SomeTexture"
|
||
|
}
|
||
|
```
|
||
|
---
|
||
|
|
||
|
### See [Toggle Files With Fallback](./ToggleFilesWithFallback.md) to see how to swap textures out with each other (alternate Options)
|