Custom Glazed Terracotta

easy

PLEASE READ

This page will be part of a rewrite to accomodate for the removal of the Holiday Creator Feature experimental toggle. Expect this page to be rewritten or removed when this happens.

FORMAT & MIN ENGINE VERSION 1.20.70

This tutorial assumes a basic understanding of blocks. Check out the blocks guide before starting.

Introduction

Glazed Terracotta has its own rotation mechanism, enabling players to craft aesthetically pleasing patterns for walls, floors, and ceilings. This guide will instruct you on creating your own blocks resembling glazed terracotta.

Custom Glazed Terracotta

This will create a vanilla-like custom glazed terracotta.

BP/blocks/custom_glazed_terracotta.jsonCopy
json
{
    "format_version": "1.20.70",
    "minecraft:block": {
        "description": {
            "identifier": "wiki:glazed_terracotta_template",
            "menu_category": {
                "category": "construction",
                "group": "itemGroup.name.glazedTerracotta"
            },
            "traits": {
                "minecraft:placement_direction": {
                    "enabled_states": [
                        "minecraft:cardinal_direction"
                    ]
                }
            }
        },
        "permutations": [
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'north'",
                "components": {
                    "minecraft:transformation": { "rotation": [0, 0, 0] },
                    "minecraft:geometry": {
                        "identifier": "geometry.glazed_terracotta",
                        "bone_visibility": {
                            "bottom_1": false,
                            "bottom_2": false,
                            "bottom_3": false,
                            "bottom_4": true
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'west'",
                "components": {
                    "minecraft:transformation": { "rotation": [0, 90, 0] },
                    "minecraft:geometry": {
                        "identifier": "geometry.glazed_terracotta",
                        "bone_visibility": {
                            "bottom_1": false,
                            "bottom_2": false,
                            "bottom_3": true,
                            "bottom_4": false
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'south'",
                "components": {
                    "minecraft:transformation": { "rotation": [0, 180, 0] },
                    "minecraft:geometry": {
                        "identifier": "geometry.glazed_terracotta",
                        "bone_visibility": {
                            "bottom_1": false,
                            "bottom_2": true,
                            "bottom_3": false,
                            "bottom_4": false
                        }
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'east'",
                "components": {
                    "minecraft:transformation": { "rotation": [0, -90, 0] },
                    "minecraft:geometry": {
                        "identifier": "geometry.glazed_terracotta",
                        "bone_visibility": {
                            "bottom_1": true,
                            "bottom_2": false,
                            "bottom_3": false,
                            "bottom_4": false
                        }
                    }
                }
            }
        ],
        "components": {
            "minecraft:geometry": {
                "identifier": "geometry.glazed_terracotta"
            },
            "minecraft:material_instances": {
                "*": {
                    "texture": "purple_glazed_terracotta",
                    "render_method": "opaque"
                }
            }
        }
    }
}
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
86
87
88
89
90
91
92

Geometry

Vanilla glazed terracotta rotates certain faces of the block with some specific values, which is what gives the block it's magic. Use the following geometry to replicate that behavior.

Geometry JSON
RP/models/blocks/glazed_terracotta.geo.jsonCopy
json
{
	"format_version": "1.12.0",
	"minecraft:geometry": [
		{
			"description": {
				"identifier": "geometry.glazed_terracotta",
				"texture_width": 16,
				"texture_height": 16,
				"visible_bounds_width": 4,
				"visible_bounds_height": 3.5,
				"visible_bounds_offset": [0, 1.25, 0]
			},
			"bones": [
				{
					"name": "glazed_terracotta",
					"pivot": [0, 0, 0]
				},
				{
					"name": "top",
					"parent": "glazed_terracotta",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 16, 16],
							"uv": {
								"up": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				},
				{
					"name": "north",
					"parent": "glazed_terracotta",
					"pivot": [0, 8, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 16, 0],
							"pivot": [0, 8, 0],
							"rotation": [180, 0, 90],
							"uv": {
								"north": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				},
				{
					"name": "south",
					"parent": "glazed_terracotta",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [0, -8, 8],
							"size": [16, 16, 0],
							"pivot": [0, 0, 0],
							"rotation": [180, 0, 270],
							"uv": {
								"south": {"uv": [0, 0], "uv_size": [16, 16]}
							}
						}
					]
				},
				{
					"name": "east",
					"parent": "glazed_terracotta",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, -16, -8],
							"size": [0, 16, 16],
							"pivot": [0, 0, 0],
							"rotation": [0, 0, -180],
							"uv": {
								"east": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				},
				{
					"name": "west",
					"parent": "glazed_terracotta",
					"pivot": [-16, 0, 0],
					"cubes": [
						{
							"origin": [-24, 0, -8],
							"size": [0, 16, 16],
							"pivot": [-16, 0, 0],
							"rotation": [0, 180, 0],
							"uv": {
								"west": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				},
				{
					"name": "bottom",
					"parent": "glazed_terracotta",
					"pivot": [0, 0, 0]
				},
				{
					"name": "bottom_1",
					"parent": "bottom",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 0, 16],
							"uv": {
								"down": {"uv": [0, 0], "uv_size": [16, 16]}
							}
						}
					]
				},
				{
					"name": "bottom_2",
					"parent": "bottom",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 0, 16],
							"uv": {
								"down": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				},
				{
					"name": "bottom_3",
					"parent": "bottom",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 0, 16],
							"uv": {
								"down": {"uv": [0, 0], "uv_size": [16, 16]}
							}
						}
					]
				},
				{
					"name": "bottom_4",
					"parent": "bottom",
					"pivot": [0, 0, 0],
					"cubes": [
						{
							"origin": [-8, 0, -8],
							"size": [16, 0, 16],
							"uv": {
								"down": {"uv": [16, 16], "uv_size": [-16, -16]}
							}
						}
					]
				}
			]
		}
	]
}
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160

Contributors

Kaioga5