Proper faces

This commit is contained in:
Dimmerworld 2017-12-29 16:50:35 +11:00
parent e93451b595
commit bdc34d673c
3 changed files with 127 additions and 66 deletions

View file

@ -1,22 +1,48 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:alarm"
},
"variants": {
"inventory": {
"transform": "forge:default-block",
"model": "techreborn:alarm",
"textures": {}
},
"normal": {
"transform": "forge:default-block",
"model": "techreborn:alarm",
"textures": {
"alarm": "techreborn:blocks/machines/lighting/alarm_off"
}
}
}
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:alarm"
},
"variants": {
"inventory": {
"transform": "forge:default-block",
"model": "techreborn:alarm",
"textures": {}
},
"facing": {
"down": {
"x": 180
},
"up": {
"transform": "forge:default-block"
},
"north": {
"x": 90
},
"south": {
"x": 270
},
"west": {
"x": 90,
"y": 270
},
"east": {
"x": 90,
"y": 90
}
},
"active": {
"true": {
"textures": {
"alarm": "techreborn:blocks/machines/lighting/alarm_off"
}
},
"false": {
"textures": {
"alarm": "techreborn:blocks/machines/lighting/alarm_off"
}
}
}
}
}

View file

@ -9,46 +9,13 @@
"from": [3, 0, 3],
"to": [13, 3, 13],
"faces": {
"north": {
"uv": [
0.37890625,
0.5171875,
15.240625,
3.3093749999999997
],
"texture": "#0"
},
"east": {
"uv": [
0.37890625,
0.5171875,
15.240625,
3.3093749999999997
],
"texture": "#0"
},
"south": {
"uv": [
0.37890625,
0.5171875,
15.240625,
3.3093749999999997
],
"texture": "#0"
},
"west": {
"uv": [
0.37890625,
0.5171875,
15.240625,
3.3093749999999997
],
"texture": "#0"
},
"up": {"uv": [0, 0, 16, 16], "texture": "#0"},
"down": {"uv": [5, 2, 6, 3], "texture": "#0"}
},
"type": "cube"
}
"down": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"up": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"north": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"south": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"west": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"east": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] }
}
}
]
}
}