for this block I use blockbench it generates json models. I use it to create as minecraft door block a parent model. Here is the model of th window :
window_bottom.json
{
"credit": "Made with Blockbench",
"textures": {
"0": "gates:block/glass",
"2": "gates:block/metal",
"particle": "#bottom"
},
"elements": [
{
"from": [1, 3, 8],
"to": [2, 16, 14],
"faces": {
"north": {"uv": [0, 0, 1, 13], "texture": "#0"},
"east": {"uv": [0, 8, 16, 16], "texture": "#0"},
"south": {"uv": [0, 0, 1, 13], "texture": "#0"},
"west": {"uv": [0, 8, 16, 16], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "rotation": 270, "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#0"}
}
},
{
"from": [1, 3, 2],
"to": [2, 16, 8],
"faces": {
"north": {"uv": [0, 0, 1, 13], "texture": "#0"},
"east": {"uv": [0, 8, 16, 16], "texture": "#0"},
"south": {"uv": [0, 0, 1, 13], "texture": "#0"},
"west": {"uv": [0, 8, 16, 16], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "rotation": 270, "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#0"}
}
},
{
"from": [0, 0, 2],
"to": [3, 3, 14],
"faces": {
"north": {"uv": [0, 0, 3, 4], "texture": "#bottom"},
"east": {"uv": [0, 0, 12, 4], "texture": "#bottom"},
"south": {"uv": [0, 0, 3, 4], "texture": "#bottom"},
"west": {"uv": [0, 0, 12, 4], "texture": "#bottom"},
"up": {"uv": [0, 0, 12, 3], "rotation": 270, "texture": "#bottom"},
"down": {"uv": [0, 0, 12, 3], "rotation": 90, "texture": "#bottom"}
}
},
{
"from": [0, 0, 0],
"to": [3, 16, 2],
"faces": {
"north": {"uv": [0, 0, 3, 16], "texture": "#bottom"},
"east": {"uv": [0, 0, 2, 16], "texture": "#bottom"},
"south": {"uv": [0, 0, 3, 16], "texture": "#bottom"},
"west": {"uv": [0, 0, 2, 16], "texture": "#bottom"},
"up": {"uv": [0, 0, 2, 3], "rotation": 270, "texture": "#bottom"},
"down": {"uv": [0, 0, 2, 3], "rotation": 90, "texture": "#bottom"}
}
},
{
"from": [0, 0, 14],
"to": [3, 16, 16],
"faces": {
"north": {"uv": [0, 0, 3, 16], "texture": "#bottom"},
"east": {"uv": [0, 0, 2, 16], "texture": "#bottom"},
"south": {"uv": [0, 0, 3, 16], "texture": "#bottom"},
"west": {"uv": [0, 0, 2, 16], "texture": "#bottom"},
"up": {"uv": [0, 0, 2, 3], "rotation": 270, "texture": "#bottom"},
"down": {"uv": [0, 0, 2, 3], "rotation": 90, "texture": "#bottom"}
}
},
{
"from": [2, 15, 6],
"to": [3, 16, 7],
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#2"},
"east": {"uv": [0, 0, 1, 1], "texture": "#2"},
"south": {"uv": [0, 0, 1, 1], "texture": "#2"},
"west": {"uv": [0, 0, 1, 1], "texture": "#2"},
"up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#2"},
"down": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#2"}
}
},
{
"from": [2, 15, 9],
"to": [3, 16, 10],
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#2"},
"east": {"uv": [0, 0, 1, 1], "texture": "#2"},
"south": {"uv": [0, 0, 1, 1], "texture": "#2"},
"west": {"uv": [0, 0, 1, 1], "texture": "#2"},
"up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#2"},
"down": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#2"}
}
}
]
}
window_top.json
{
"credit": "Made with Blockbench",
"textures": {
"0": "gates:block/glass",
"1": "gates:block/metal",
"particle": "#top"
},
"elements": [
{
"from": [1, 0, 8],
"to": [2, 13, 14],
"faces": {
"north": {"uv": [0, 0, 1, 13], "texture": "#0"},
"east": {"uv": [0, 0, 16, 8], "texture": "#0"},
"south": {"uv": [0, 0, 1, 13], "texture": "#0"},
"west": {"uv": [0, 0, 16, 8], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "rotation": 270, "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#0"}
}
},
{
"from": [1, 0, 2],
"to": [2, 13, 8],
"faces": {
"north": {"uv": [0, 0, 1, 13], "texture": "#0"},
"east": {"uv": [0, 0, 16, 8], "texture": "#0"},
"south": {"uv": [0, 0, 1, 13], "texture": "#0"},
"west": {"uv": [0, 0, 16, 8], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "rotation": 270, "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#0"}
}
},
{
"from": [0, 13, 2],
"to": [3, 16, 14],
"faces": {
"north": {"uv": [0, 0, 3, 3], "texture": "#top"},
"east": {"uv": [0, 0, 12, 3], "texture": "#top"},
"south": {"uv": [0, 0, 3, 3], "texture": "#top"},
"west": {"uv": [0, 0, 12, 3], "texture": "#top"},
"up": {"uv": [0, 0, 12, 3], "rotation": 270, "texture": "#top"},
"down": {"uv": [0, 0, 12, 3], "rotation": 90, "texture": "#top"}
}
},
{
"from": [0, 0, 0],
"to": [3, 16, 2],
"faces": {
"north": {"uv": [0, 0, 3, 16], "texture": "#top"},
"east": {"uv": [0, 0, 2, 16], "texture": "#top"},
"south": {"uv": [0, 0, 3, 16], "texture": "#top"},
"west": {"uv": [0, 0, 2, 16], "texture": "#top"},
"up": {"uv": [0, 0, 2, 3], "rotation": 270, "texture": "#top"},
"down": {"uv": [0, 0, 2, 3], "rotation": 90, "texture": "#top"}
}
},
{
"from": [0, 0, 14],
"to": [3, 16, 16],
"faces": {
"north": {"uv": [0, 0, 3, 16], "texture": "#top"},
"east": {"uv": [0, 0, 2, 16], "texture": "#top"},
"south": {"uv": [0, 0, 3, 16], "texture": "#top"},
"west": {"uv": [0, 0, 2, 16], "texture": "#top"},
"up": {"uv": [0, 0, 2, 3], "rotation": 270, "texture": "#top"},
"down": {"uv": [0, 0, 2, 3], "rotation": 90, "texture": "#top"}
}
},
{
"from": [2, 0, 6],
"to": [3, 1, 7],
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#1"},
"east": {"uv": [0, 0, 1, 1], "texture": "#1"},
"south": {"uv": [0, 0, 1, 1], "texture": "#1"},
"west": {"uv": [0, 0, 1, 1], "texture": "#1"},
"up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#1"},
"down": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#1"}
}
},
{
"from": [2, 0, 9],
"to": [3, 1, 10],
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#1"},
"east": {"uv": [0, 0, 1, 1], "texture": "#1"},
"south": {"uv": [0, 0, 1, 1], "texture": "#1"},
"west": {"uv": [0, 0, 1, 1], "texture": "#1"},
"up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#1"},
"down": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#1"}
}
}
]
}
stone_window_bottom
{
"parent": "gates:block/window_bottom",
"textures": {
"bottom": "gates:block/stone",
"top": "gates:block/stone"
}
}
stone_window_top
{
"parent": "gates:block/window_top",
"textures": {
"bottom": "gates:block/stone",
"top": "gates:block/stone"
}
}
This is all for the model for the code it is only the properties that I defined and I choose the Material ROCK but I try to change it and it didn't work