peanut-framework / Types/Minecraft/material_instances / MaterialInstances
Type Alias: MaterialInstances
ts
type MaterialInstances =
| { [key in MaterialKey]?: { ambient_occlusion?: boolean | number; face_dimming?: boolean; render_method?: RenderMethods; texture: string } }
| {};
The Material Instances component contains a map of material instance names/face names to material instance definitions (JSON Objects). The material instance * is required and will be used for any materials that don't have a match.
Param
Texture name for the material.
Param
If this material has ambient occlusion applied when lighting, shadows will be created around and underneath the block. Decimal value controls exponent applied to a value after lighting.
Param
This material should be dimmed by the direction it's facing.
Param
The render method to use. Must be one of the options listed in the table below. See this page to understand the relationship between render method and render distance.