diff --git a/assets/interface.xcf b/assets/interface.xcf new file mode 100644 index 0000000..abf81a3 Binary files /dev/null and b/assets/interface.xcf differ diff --git a/src/main/resources/assets/phycon/models/block/interface_side.json b/src/main/resources/assets/phycon/models/block/interface_side.json index 3adc96d..479b753 100644 --- a/src/main/resources/assets/phycon/models/block/interface_side.json +++ b/src/main/resources/assets/phycon/models/block/interface_side.json @@ -1,19 +1,22 @@ { "parent": "block/block", "textures": { - "cable": "phycon:block/cable_straight" + "cable": "phycon:block/cable_straight", + "particle": "#front", + "back": "phycon:block/interface_back", + "front": "phycon:block/interface_front" }, "elements": [ { "from": [2, 0, 2], "to": [14, 2, 14], "faces": { - "down": { "texture": "phycon:block/interface_front" }, - "up": { "texture": "phycon:block/interface_back" }, - "north": { "texture": "phycon:block/interface_side" }, - "south": { "texture": "phycon:block/interface_side" }, - "west": { "texture": "phycon:block/interface_side" }, - "east": { "texture": "phycon:block/interface_side" } + "down": { "texture": "#front" }, + "up": { "texture": "#back" }, + "north": { "texture": "#back" }, + "south": { "texture": "#back" }, + "west": { "texture": "#back" }, + "east": { "texture": "#back" } } }, { diff --git a/src/main/resources/assets/phycon/models/item/network_interface.json b/src/main/resources/assets/phycon/models/item/network_interface.json index 80055f0..eed862a 100644 --- a/src/main/resources/assets/phycon/models/item/network_interface.json +++ b/src/main/resources/assets/phycon/models/item/network_interface.json @@ -2,53 +2,27 @@ "parent": "block/block", "display": { "firstperson_righthand": { - "rotation": [0, 215, 0], - "translation": [0, 0, 0], - "scale": [0.4, 0.4, 0.4] - }, - "thirdperson_righthand": { - "rotation": [75, 215, 0], - "translation": [0, -2.5, 0], - "scale": [0.375, 0.375, 0.375] + "rotation": [ 0, 215, 0 ], + "translation": [ 3, 0, -3 ], + "scale": [ 0.40, 0.40, 0.40 ] } }, + "textures": { + "front": "phycon:block/interface_front", + "back": "phycon:block/switch" + }, "elements": [ { - "_comment": "cable center", - "from": [6, 6, 6], - "to": [10, 10, 10], + "from": [14, 2, 2], + "to": [16, 14, 14], "faces": { - "down": { "texture": "phycon:block/cable_center" }, - "up": { "texture": "phycon:block/cable_center" }, - "north": { "texture": "phycon:block/cable_center" }, - "south": { "texture": "phycon:block/cable_center" }, - "west": { "texture": "phycon:block/cable_center" }, - "east": { "texture": "phycon:block/cable_center" } - } - }, - { - "_comment": "interface side", - "from": [2, 2, 14], - "to": [14, 14, 16], - "faces": { - "down": { "texture": "phycon:block/interface_side" }, - "up": { "texture": "phycon:block/interface_side" }, - "north": { "texture": "phycon:block/interface_front" }, - "south": { "texture": "phycon:block/interface_back" }, - "west": { "texture": "phycon:block/interface_side" }, - "east": { "texture": "phycon:block/interface_side" } - } - }, - { - "_comment": "interface middle", - "from": [6, 6, 10], - "to": [10, 10, 14], - "faces": { - "down": { "texture": "phycon:block/cable_side" }, - "up": { "texture": "phycon:block/cable_side" }, - "west": { "texture": "phycon:block/cable_side" }, - "east": { "texture": "phycon:block/cable_side" } + "down": { "texture": "#back" }, + "up": { "texture": "#back" }, + "north": { "texture": "#back" }, + "south": { "texture": "#back" }, + "west": { "texture": "#back" }, + "east": { "texture": "#front" } } } ] -} \ No newline at end of file +} diff --git a/src/main/resources/assets/phycon/textures/block/interface_back.png b/src/main/resources/assets/phycon/textures/block/interface_back.png new file mode 100644 index 0000000..2a737c0 Binary files /dev/null and b/src/main/resources/assets/phycon/textures/block/interface_back.png differ diff --git a/src/main/resources/assets/phycon/textures/block/interface_front.png b/src/main/resources/assets/phycon/textures/block/interface_front.png new file mode 100644 index 0000000..16f14b9 Binary files /dev/null and b/src/main/resources/assets/phycon/textures/block/interface_front.png differ