cable model

This commit is contained in:
2026-04-26 23:31:19 +02:00
parent ed6ddddf98
commit b39d016feb
20 changed files with 625 additions and 23 deletions

View File

@@ -0,0 +1,94 @@
{
"multipart": [
{ "apply": { "model": "neocomputers:block/cable/cable_center" }},
{ "when": { "south": true },
"apply": { "model": "neocomputers:block/cable/cable_connection" }},
{ "when": { "east": true},
"apply": { "model": "neocomputers:block/cable/cable_connection", "y": -90}},
{ "when": { "west": true },
"apply": { "model": "neocomputers:block/cable/cable_connection", "y": 90}},
{ "when": { "north": true },
"apply": { "model": "neocomputers:block/cable/cable_connection", "y": 180}},
{ "when": { "up": true },
"apply": { "model": "neocomputers:block/cable/cable_connection", "x": 90}},
{ "when": { "down": true },
"apply": { "model": "neocomputers:block/cable/cable_connection", "x": -90}},
{
"when": {
"south": false,
"north": false,
"east": false,
"west": false,
"up": false,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_caps" }
},
{
"when": {
"south": true,
"north": false,
"east": false,
"west": false,
"up": false,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_cap" }
},
{
"when": {
"south": false,
"north": true,
"east": false,
"west": false,
"up": false,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_cap", "y": 180 }
},
{
"when": {
"south": false,
"north": false,
"east": true,
"west": false,
"up": false,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_cap", "y": -90 }
},
{
"when": {
"south": false,
"north": false,
"east": false,
"west": true,
"up": false,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_cap", "y": 90 }
},
{
"when": {
"south": false,
"north": false,
"east": false,
"west": false,
"up": true,
"down": false
},
"apply": { "model": "neocomputers:block/cable/cable_cap", "x": 90 }
},
{
"when": {
"south": false,
"north": false,
"east": false,
"west": false,
"up": false,
"down": true
},
"apply": { "model": "neocomputers:block/cable/cable_cap", "x": -90 }
}
]
}

View File

@@ -0,0 +1,21 @@
{
"parent": "minecraft:block/block",
"render_type": "minecraft:solid",
"textures": {
"cap": "neocomputers:block/cable_cap"
},
"elements": [
{
"from": [6, 6, 5],
"to": [10, 10, 6],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [6, 6, 10, 10], "texture": "#cap"}
}
}
]
}

View File

@@ -0,0 +1,81 @@
{
"parent": "minecraft:block/block",
"render_type": "minecraft:solid",
"textures": {
"cap": "neocomputers:block/cable_cap"
},
"elements": [
{
"from": [6, 6, 5],
"to": [10, 10, 6],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [6,6,10,10], "texture": "#cap"},
"south": { "uv": [0,0,4,4], "texture": "#cap"}
}
},
{
"from": [6, 6, 10],
"to": [10, 10, 11],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"},
"south": { "uv": [6,6,10,10], "texture": "#cap"}
}
},
{
"from": [5, 6, 6],
"to": [6, 10, 10],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [6,6,10,10], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"},
"south": { "uv": [0,0,4,4], "texture": "#cap"}
}
},
{
"from": [10, 6, 6],
"to": [11, 10, 10],
"faces": {
"east": { "uv": [6,6,10,10], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"},
"south": { "uv": [0,0,4,4], "texture": "#cap"}
}
},
{
"from": [6, 5, 6],
"to": [10, 6, 10],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [6,6,10,10], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"},
"south": { "uv": [0,0,4,4], "texture": "#cap"}
}
},
{
"from": [6, 10, 6],
"to": [10, 11, 10],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [6,6,10,10], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"},
"south": { "uv": [0,0,4,4], "texture": "#cap"}
}
}
]
}

View File

@@ -0,0 +1,21 @@
{
"parent": "minecraft:block/block",
"render_type": "minecraft:solid",
"textures": {
"cap": "neocomputers:block/cable_body"
},
"elements": [
{
"from": [6, 6, 6],
"to": [10, 10, 10],
"faces": {
"north": { "uv": [6,6,10,10], "texture": "#cap" },
"east": { "uv": [6,6,10,10], "texture": "#cap" },
"west": { "uv": [6,6,10,10], "texture": "#cap" },
"south": { "uv": [6,6,10,10], "texture": "#cap" },
"up": { "uv": [0,0, 5, 5], "texture": "#cap" },
"down": { "uv": [0,0, 5, 5], "texture": "#cap" }
}
}
]
}

View File

@@ -0,0 +1,21 @@
{
"parent": "minecraft:block/block",
"render_type": "minecraft:solid",
"textures": {
"cap": "neocomputers:block/cable_cap",
"body": "neocomputers:block/cable_body"
},
"elements": [
{
"from": [6, 6, 10],
"to": [10, 10, 16],
"faces": {
"east": { "uv": [4,4,11,11], "texture": "#body" },
"west": { "uv": [4,4,11,11], "texture": "#body" },
"up": { "uv": [4,4,11,11], "texture": "#body" },
"down": { "uv": [4,4,11,11], "texture": "#body" },
"south": { "uv": [6, 6, 10, 10], "texture": "#cap"}
}
}
]
}

View File

@@ -0,0 +1,44 @@
{
"parent": "minecraft:block/block",
"render_type": "minecraft:solid",
"textures": {
"cap": "neocomputers:block/cable_cap",
"body": "neocomputers:block/cable_body"
},
"elements": [
{
"from": [6, -2, 6],
"to": [10, 18, 10],
"faces": {
"east": { "uv": [0,0,5,16], "texture": "#body" },
"west": { "uv": [0,0,5,16], "texture": "#body" },
"north": { "uv": [0,0,5,16], "texture": "#body" },
"south": { "uv": [0,0,5,16], "texture": "#body" },
"up": { "uv": [0,0,5,16], "texture": "#body" },
"down": { "uv": [0,0,5,16], "texture": "#body" }
}
},
{
"from": [4, -3, 4],
"to": [12, -2, 12],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [0,0,4,4], "texture": "#cap" },
"down": { "uv": [4, 4, 12, 12], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"}
}
},
{
"from": [4, 18, 4],
"to": [12, 19, 12],
"faces": {
"east": { "uv": [0,0,4,4], "texture": "#cap" },
"west": { "uv": [0,0,4,4], "texture": "#cap" },
"up": { "uv": [4, 4, 12, 12], "texture": "#cap" },
"down": { "uv": [0,0,4,4], "texture": "#cap" },
"north": { "uv": [0,0,4,4], "texture": "#cap"}
}
}
]
}

View File

@@ -0,0 +1,3 @@
{
"parent": "neocomputers:block/cable/cable_item"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

View File

@@ -1,3 +1,4 @@
accessWidener v2 named
accessible method net/minecraft/world/level/block/entity/BlockEntityType <init> (Lnet/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier;Ljava/util/Set;)V
accessible method net/minecraft/world/level/block/entity/BlockEntityType <init> (Lnet/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier;Ljava/util/Set;)V
accessible field net/minecraft/core/Direction$Plane faces [Lnet/minecraft/core/Direction;