929 B
929 B
ResPackOpts Toggle Files (Boolean-based logic)
This is a simple IF
statement 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 Pack ID
and Entry Name
from your /assets/respackopts/conf.json
that you created earlier
if you have not, see Main Config on how to do so.
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).
Examples:
texture.png
would be texture.png.rpo
recipe.json
would be recipe.json.rpo
Layout:
{
"condition": "<pack id>:<entry name>"
}
Example:
{
"condition": "examplePack:someTexture"
}