-
Notifications
You must be signed in to change notification settings - Fork 0
Mapping Files
Excederus edited this page Aug 24, 2026
·
5 revisions
Mapping files tell Shader Patcher at which vanilla block, item or entity the patch values in the patch file should be inserted.
To achieve this the MappingKey across these files has to match, otherwise Shader Patcher does not know where to put the patch values.
For mapping files only one value per MappingKey is allowed.
ExampleMod wants to add support for these blocks:
example_grassexample_tall_grassexample_flower_1example_flower_2example_glassexample_glass_paneexample_leavesexample_blue_candle
ExampleMod can create the file block.examplemod.yaml in ~/assets/examplemod/shaderpatcher/mappings/ with this content:
waving:
grass:
short: grass
tall: tall_grass
flower:
small: dandelion
leaves: oak_leaves
translucent:
glass:
regular: glass
emissive:
candle:
blue: blue_candleExampleMod could also use the default mappings that come with Shader Patcher.
To explain this example a bit further:
- A patch value with the
MappingKeywaving>grass>shortwould be inserted into the same property file ID thatminecraft:grassis in - A patch value with the
MappingKeyemissive>candle>bluewould be inserted into the same property file ID thatminecraft:blue_candleis in