Material Creations

expert

WARNING

Materials are not for the faint of heart. Be prepared for potential crashes, content log errors, and long loading times.

On this page you can find material creations by community.

Custom material that glows and works with semi transparency.

Note: this also works by disabling culling so you don't run into those weird culling issues where you can't see entities and things behind the texture the material is applied to.

Note: Texture needs to have semi transparency in it to add the glow effect.

"customblend" is what you would call in your entity as a material.

Show
Copy
json
{
    "customblend:entity_alphablend": {
        "+defines": [
            "USE_EMISSIVE"
        ],
        "+states": [
            "Blending",
            "DisableCulling",
            "DisableDepthWrite",
            "DisableAlphaWrite"
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13

Credit: StealthyX.

Alpha Channel Textures with Render Dragon

Material that allows for alpha channel textures with render dragon:

Show
Copy
json
{
    "ambient_alpha:entity": {
        "+states": [
            "Blending",
            "DisableCulling"
        ],
        "vertexShader": "shaders/color_uv.vertex",
        "vrGeometryShader": "shaders/color_uv.geometry",
        "fragmentShader": "shaders/color_texture.fragment",
        "blendSrc": "SourceAlpha",
        "blendDst": "OneMinusSrcAlpha",
        "vertexFields": [
            {
                "field": "Position"
            },
            {
                "field": "Color"
            },
            {
                "field": "Normal"
            },
            {
                "field": "UV0"
            }
        ],
        "variants": [
            {
                "skinning": {
                    "+defines": [
                        "USE_SKINNING"
                    ],
                    "vertexFields": [
                        {
                            "field": "Position"
                        },
                        {
                            "field": "BoneId0"
                        },
                        {
                            "field": "Color"
                        },
                        {
                            "field": "Normal"
                        },
                        {
                            "field": "UV0"
                        }
                    ]
                }
            }
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

After some more testing was found out that this only works in 3rd person, but still useful since vanilla blending materials still were broken regardless of perspective.

Credit: Ambient.

overlay_color in render controllers

Material that doesn't permit overlay_color to be used in render controllers:

Show
Copy
json
{
    "materials": {
        "version": "1.0.0",
        "ambient_no_overlay": {
            "defines": [
                "ALPHA_TEST"
            ],
            "vertexShader": "shaders/entity.vertex",
            "vrGeometryShader": "shaders/entity.geometry",
            "fragmentShader": "shaders/entity.fragment",
            "vertexFields": [
                {
                    "field": "Position"
                },
                {
                    "field": "Normal"
                },
                {
                    "field": "UV0"
                }
            ],
            "variants": [
                {
                    "skinning": {
                        "+defines": [
                            "USE_SKINNING"
                        ],
                        "vertexFields": [
                            {
                                "field": "Position"
                            },
                            {
                                "field": "BoneId0"
                            },
                            {
                                "field": "Normal"
                            },
                            {
                                "field": "UV0"
                            }
                        ]
                    }
                },
                {
                    "skinning_color": {
                        "+defines": [
                            "USE_SKINNING"
                        ],
                        "+states": [
                            "Blending"
                        ],
                        "vertexFields": [
                            {
                                "field": "Position"
                            },
                            {
                                "field": "BoneId0"
                            },
                            {
                                "field": "Color"
                            },
                            {
                                "field": "Normal"
                            },
                            {
                                "field": "UV0"
                            }
                        ]
                    }
                }
            ],
            "msaaSupport": "Both",
            "+samplerStates": [
                {
                    "samplerIndex": 0,
                    "textureFilter": "Point"
                },
                {
                    "samplerIndex": 1,
                    "textureWrap": "Repeat"
                }
            ]
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

May be useful for applying to a specific bone and not the entire geometry.

Credit: Ambient.

entity_alphablend_nocolorentity_static Material

Using the entity_alphablend_nocolorentity_static material will reliably crash Minecraft.

Credit: Gecko.

Contributors