Block Materials
experimental
Application
Block materials essentially control how a block is rendered in the world, much like entity materials. They can be applied with the block component, material_instances
, with the optional parameter, render_method
. Using this would look something like the below example, a non-full block:
Copy
json
{
"minecraft:material_instances": {
"*": {
"texture": "blast_vent",
"render_method": "alpha_test"
}
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Note: This feature is currently experimental, and, as such, is currently only available for custom blocks.
List of Materials
Argument | Slot |
---|---|
opaque | Used for a regular block texture without an alpha layer. Does not allow for transparency or translucency. This material enables AO (ambient occlusion) for the block, creating shadows around and underneath it. |
alpha_test | Used for a block like the vanilla (unstained) glass. Does not allow for translucency, only fully opaque or fully transparent textures. By default, this material disables AO for the block, removing those ugly shadows if you're making a non-full or decorative block. |
blend | Used for a block like stained glass. Allows for transparency and translucency (slightly transparent textures). By default, this material disables AO for the block. |
double_sided | Used for completely disabling backface culling. |
Note: Some of these features may be disabled or overridden with their respective parameters. For example:
Copy
json
{
"minecraft:material_instances": {
"*": {
"texture": "blast_vent",
"ambient_occlusion": true,
"face_dimming": true,
"render_method": "alpha_test"
}
}
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies. See our Privacy Policy for more information.