-
Notifications
You must be signed in to change notification settings - Fork 0
How it works
Patches: ~/assets/yourmodid/shaderpatcher/patches/
Mappings: ~/assets/yourmodid/shaderpatcher/mappings/
Transforms: ~/assets/yourmodid/shaderpatcher/transforms/
Patches: ~/config/shaderpatcher/patches/
Mappings: ~/config/shaderpatcher/mappings/
Transforms: ~/config/shaderpatcher/transforms/
Patch files hold the values of your modded blocks, items or entites - listed under MappingKeys.
Mapping files hold the vanilla target that the modded values with a matching MappingKey should be inserted to.
Transform files hold transformation instructions that will be applied to BOTH patch values and mapping values with a matching MappingKey
All files follow the same filename convention - no matter if it's a patch, mapping or transform. If a file does not follow this convention it will be rejected during loading stage.
TYPE.MODID.yaml
-
TYPEcan beblock,itemorentity- this will determine which shaderpack properties file should be targeted -
MODIDhas to be the specific mod this file is for (MODIDcan also be_default, however this is only available for modpack developers) -
yamlis the file extension (ymlis also supported)
Additionally the MODID in the filename is also automatically prepended onto any value inside a patch file - this makes it easier to write patch files since you don't have to write examplemod:exampleblock and instead can just write exampleblock (this does not happen for mapping and transform files)
The MappingKey is what Shader Patcher uses to identify values and targets across the files.
The MappingKey consists of 3 parts:
-
CATEGORY(required) -
CONCEPT(required) -
VARIANT(optional)
The actual MappingKey can be whatever you want, as long as it matches across the Patch, Mapping and Transform files of the matching TYPE.
ExampleMod adds the block example_grass as a short grass variant to the game - to properly use Shader Patcher to add this block to any shader you need at least a Patch file and a Mapping file.
waving:
grass:
short:
- example_grasswaving:
grass:
short:
- grassIn both files the MappingKey has to be the same so Shader Patcher knows that these are linked.
-
wavingis theCATEGORY -
grassis theCONCEPT -
shortis theVARIANT
The actual names of the MappingKey could also be funny, ground, green - they just have to match across the files.