PhysicalConnectivity/src/main/resources/assets/phycon/blockstates/cable.json

245 lines
8.8 KiB
JSON

{
"multipart": [
{
"when": { "down": "on" },
"apply": { "model": "phycon:block/cable_side" }
},
{
"when": { "up": "on" },
"apply": { "model": "phycon:block/cable_side", "x": 180 }
},
{
"when": { "north": "on" },
"apply": { "model": "phycon:block/cable_side", "x": 270 }
},
{
"when": { "south": "on" },
"apply": { "model": "phycon:block/cable_side", "x": 90 }
},
{
"when": { "west": "on" },
"apply": { "model": "phycon:block/cable_side", "x": 90, "y": 90 }
},
{
"when": { "east": "on" },
"apply": { "model": "phycon:block/cable_side", "x": 90, "y": 270 }
},
{
"when": { "down": "off|disabled" },
"apply": { "model": "phycon:block/cable_center" }
},
{
"when": { "up": "off|disabled" },
"apply": { "model": "phycon:block/cable_center", "x": 180 }
},
{
"when": { "north": "off|disabled" },
"apply": { "model": "phycon:block/cable_center", "x": 270 }
},
{
"when": { "south": "off|disabled" },
"apply": { "model": "phycon:block/cable_center", "x": 90 }
},
{
"when": { "west": "off|disabled" },
"apply": { "model": "phycon:block/cable_center", "x": 90, "y": 90 }
},
{
"when": { "east": "off|disabled" },
"apply": { "model": "phycon:block/cable_center", "x": 90, "y": 270 }
},
{
"when": {
"OR": [
{ "down": "off|disabled", "north": "off|disabled", "up": "off|disabled" },
{ "down": "off|disabled", "north": "off|disabled", "south": "off|disabled" },
{ "down": "off|disabled", "north": "off|disabled", "east": "on" },
{ "down": "off|disabled", "north": "off|disabled", "west": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner" }
},
{
"when": { "down": "off|disabled", "north": "off|disabled", "up": "on", "south": "on", "east": "off|disabled", "west": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont" }
},
{
"when": {
"OR": [
{ "down": "off|disabled", "south": "off|disabled", "up": "off|disabled" },
{ "down": "off|disabled", "south": "off|disabled", "north": "off|disabled" },
{ "down": "off|disabled", "south": "off|disabled", "east": "on" },
{ "down": "off|disabled", "south": "off|disabled", "west": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "y": 180 }
},
{
"when": { "down": "off|disabled", "south": "off|disabled", "up": "on", "north": "on", "east": "off|disabled", "west": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "y": 180 }
},
{
"when": {
"OR": [
{ "up": "off|disabled", "north": "off|disabled", "down": "off|disabled" },
{ "up": "off|disabled", "north": "off|disabled", "south": "off|disabled" },
{ "up": "off|disabled", "north": "off|disabled", "east": "on" },
{ "up": "off|disabled", "north": "off|disabled", "west": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "x": 180, "y": 180 }
},
{
"when": { "up": "off|disabled", "north": "off|disabled", "down": "on", "south": "on", "east": "off|disabled", "west": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "x": 180, "y": 180 }
},
{
"when": {
"OR": [
{ "up": "off|disabled", "south": "off|disabled", "down": "off|disabled" },
{ "up": "off|disabled", "south": "off|disabled", "north": "off|disabled" },
{ "up": "off|disabled", "south": "off|disabled", "east": "on" },
{ "up": "off|disabled", "south": "off|disabled", "west": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "x": 180 }
},
{
"when": { "up": "off|disabled", "south": "off|disabled", "down": "on", "north": "on", "east": "off|disabled", "west": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "x": 180}
},
{
"when": {
"OR": [
{ "down": "off|disabled", "west": "off|disabled", "up": "off|disabled" },
{ "down": "off|disabled", "west": "off|disabled", "east": "off|disabled" },
{ "down": "off|disabled", "west": "off|disabled", "north": "on" },
{ "down": "off|disabled", "west": "off|disabled", "south": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "y": 270 }
},
{
"when": { "down": "off|disabled", "west": "off|disabled", "up": "on", "east": "on", "north": "off|disabled", "south": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "y": 270 }
},
{
"when": {
"OR": [
{ "down": "off|disabled", "east": "off|disabled", "up": "off|disabled" },
{ "down": "off|disabled", "east": "off|disabled", "west": "off|disabled" },
{ "down": "off|disabled", "east": "off|disabled", "north": "on" },
{ "down": "off|disabled", "east": "off|disabled", "south": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "y": 90 }
},
{
"when": { "down": "off|disabled", "east": "off|disabled", "up": "on", "west": "on", "north": "off|disabled", "south": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "y": 90 }
},
{
"when": {
"OR": [
{ "up": "off|disabled", "west": "off|disabled", "down": "off|disabled" },
{ "up": "off|disabled", "west": "off|disabled", "east": "off|disabled" },
{ "up": "off|disabled", "west": "off|disabled", "north": "on" },
{ "up": "off|disabled", "west": "off|disabled", "south": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "x": 180, "y": 90 }
},
{
"when": { "up": "off|disabled", "west": "off|disabled", "down": "on", "east": "on", "north": "off|disabled", "south": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "x": 180, "y": 90 }
},
{
"when": {
"OR": [
{ "up": "off|disabled", "east": "off|disabled", "down": "off|disabled" },
{ "up": "off|disabled", "east": "off|disabled", "west": "off|disabled" },
{ "up": "off|disabled", "east": "off|disabled", "north": "on" },
{ "up": "off|disabled", "east": "off|disabled", "south": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner", "x": 180, "y": 270 }
},
{
"when": { "up": "off|disabled", "east": "off|disabled", "down": "on", "west": "on", "north": "off|disabled", "south": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_cont", "x": 180, "y": 270 }
},
{
"when": {
"OR": [
{ "north": "off|disabled", "west": "off|disabled", "south": "off|disabled" },
{ "north": "off|disabled", "west": "off|disabled", "east": "off|disabled" },
{ "north": "off|disabled", "west": "off|disabled", "down": "on" },
{ "north": "off|disabled", "west": "off|disabled", "up": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner_xz" }
},
{
"when": { "north": "off|disabled", "west": "off|disabled", "south": "on", "east": "on", "down": "off|disabled", "up": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_xz_cont" }
},
{
"when": {
"OR": [
{ "north": "off|disabled", "east": "off|disabled", "south": "off|disabled" },
{ "north": "off|disabled", "east": "off|disabled", "west": "off|disabled" },
{ "north": "off|disabled", "east": "off|disabled", "down": "on" },
{ "north": "off|disabled", "east": "off|disabled", "up": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner_xz", "y": 90 }
},
{
"when": { "north": "off|disabled", "east": "off|disabled", "south": "on", "west": "on", "down": "off|disabled", "up": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_xz_cont", "y": 90 }
},
{
"when": {
"OR": [
{ "south": "off|disabled", "east": "off|disabled", "north": "off|disabled" },
{ "south": "off|disabled", "east": "off|disabled", "west": "off|disabled" },
{ "south": "off|disabled", "east": "off|disabled", "down": "on" },
{ "south": "off|disabled", "east": "off|disabled", "up": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner_xz", "y": 180 }
},
{
"when": { "south": "off|disabled", "east": "off|disabled", "north": "on", "west": "on", "down": "off|disabled", "up": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_xz_cont", "y": 180 }
},
{
"when": {
"OR": [
{ "south": "off|disabled", "west": "off|disabled", "north": "off|disabled" },
{ "south": "off|disabled", "west": "off|disabled", "east": "off|disabled" },
{ "south": "off|disabled", "west": "off|disabled", "down": "on" },
{ "south": "off|disabled", "west": "off|disabled", "up": "on" }
]
},
"apply": { "model": "phycon:block/cable_diag_corner_xz", "y": 270 }
},
{
"when": { "south": "off|disabled", "west": "off|disabled", "north": "on", "east": "on", "down": "off|disabled", "up": "off|disabled" },
"apply": { "model": "phycon:block/cable_diag_corner_xz_cont", "y": 270 }
}
]
}