From 205bc353bf95d4049a7b9110a591adb07dc3c4ef Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 19 Oct 2022 19:56:13 -0500 Subject: [PATCH] Asset improvements --- .../blockstates/charged_explosive.json | 101 +++++++++++++----- .../models/block/charged_explosive_off.json | 81 ++++++++++++++ ...plosive.json => charged_explosive_on.json} | 2 +- .../models/item/charged_explosive.json | 80 +++++++++++++- .../block/shaped_charge_light_off.png | Bin 0 -> 1392 bytes ...e_light.png => shaped_charge_light_on.png} | Bin ...meta => shaped_charge_light_on.png.mcmeta} | 0 7 files changed, 238 insertions(+), 26 deletions(-) create mode 100644 src/main/resources/assets/charged_explosives/models/block/charged_explosive_off.json rename src/main/resources/assets/charged_explosives/models/block/{charged_explosive.json => charged_explosive_on.json} (97%) create mode 100644 src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_off.png rename src/main/resources/assets/charged_explosives/textures/block/{shaped_charge_light.png => shaped_charge_light_on.png} (100%) rename src/main/resources/assets/charged_explosives/textures/block/{shaped_charge_light.png.mcmeta => shaped_charge_light_on.png.mcmeta} (100%) diff --git a/src/main/resources/assets/charged_explosives/blockstates/charged_explosive.json b/src/main/resources/assets/charged_explosives/blockstates/charged_explosive.json index a8944dd..121858f 100644 --- a/src/main/resources/assets/charged_explosives/blockstates/charged_explosive.json +++ b/src/main/resources/assets/charged_explosives/blockstates/charged_explosive.json @@ -1,55 +1,108 @@ { "variants": { - "face=ceiling,facing=east": { - "model": "charged_explosives:block/charged_explosive", + "face=ceiling,facing=east,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 180, "y": 270 }, - "face=ceiling,facing=north": { - "model": "charged_explosives:block/charged_explosive", + "face=ceiling,facing=north,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 180, "y": 180 }, - "face=ceiling,facing=south": { - "model": "charged_explosives:block/charged_explosive", + "face=ceiling,facing=south,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 180 }, - "face=ceiling,facing=west": { - "model": "charged_explosives:block/charged_explosive", + "face=ceiling,facing=west,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 180, "y": 90 }, - "face=floor,facing=east": { - "model": "charged_explosives:block/charged_explosive", + "face=floor,facing=east,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "y": 90 }, - "face=floor,facing=north": { - "model": "charged_explosives:block/charged_explosive" + "face=floor,facing=north,activated=false": { + "model": "charged_explosives:block/charged_explosive_off" }, - "face=floor,facing=south": { - "model": "charged_explosives:block/charged_explosive", + "face=floor,facing=south,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "y": 180 }, - "face=floor,facing=west": { - "model": "charged_explosives:block/charged_explosive", + "face=floor,facing=west,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "y": 270 }, - "face=wall,facing=east": { - "model": "charged_explosives:block/charged_explosive", + "face=wall,facing=east,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 90, "y": 90 }, - "face=wall,facing=north": { - "model": "charged_explosives:block/charged_explosive", + "face=wall,facing=north,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 90 }, - "face=wall,facing=south": { - "model": "charged_explosives:block/charged_explosive", + "face=wall,facing=south,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", "x": 90, "y": 180 }, - "face=wall,facing=west": { - "model": "charged_explosives:block/charged_explosive", + "face=wall,facing=west,activated=false": { + "model": "charged_explosives:block/charged_explosive_off", + "x": 90, + "y": 270 + }, + "face=ceiling,facing=east,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 180, + "y": 270 + }, + "face=ceiling,facing=north,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 180, + "y": 180 + }, + "face=ceiling,facing=south,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 180 + }, + "face=ceiling,facing=west,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 180, + "y": 90 + }, + "face=floor,facing=east,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "y": 90 + }, + "face=floor,facing=north,activated=true": { + "model": "charged_explosives:block/charged_explosive_on" + }, + "face=floor,facing=south,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "y": 180 + }, + "face=floor,facing=west,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "y": 270 + }, + "face=wall,facing=east,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 90, + "y": 90 + }, + "face=wall,facing=north,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 90 + }, + "face=wall,facing=south,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", + "x": 90, + "y": 180 + }, + "face=wall,facing=west,activated=true": { + "model": "charged_explosives:block/charged_explosive_on", "x": 90, "y": 270 } diff --git a/src/main/resources/assets/charged_explosives/models/block/charged_explosive_off.json b/src/main/resources/assets/charged_explosives/models/block/charged_explosive_off.json new file mode 100644 index 0000000..d6cf08d --- /dev/null +++ b/src/main/resources/assets/charged_explosives/models/block/charged_explosive_off.json @@ -0,0 +1,81 @@ +{ + "credit": "Made with Blockbench", + "texture_size": [4, 4], + "textures": { + "0": "charged_explosives:block/charged_explosive_main", + "2": "charged_explosives:block/shaped_charge_light_off", + "particle": "charged_explosives:block/charged_explosive_main" + }, + "elements": [ + { + "name": "charged_explosive_main", + "from": [2, 0, 4], + "to": [14, 3, 12], + "faces": { + "north": {"uv": [0, 10, 6, 13], "texture": "#0"}, + "east": {"uv": [6, 10, 10, 13], "texture": "#0"}, + "south": {"uv": [0, 13, 6, 16], "texture": "#0"}, + "west": {"uv": [6, 13, 10, 16], "texture": "#0"}, + "up": {"uv": [0, 2, 6, 10], "texture": "#0"}, + "down": {"uv": [6, 2, 12, 10], "texture": "#0"} + } + }, + { + "name": "shaped_charge_light", + "from": [10, 3, 7], + "to": [12, 4, 9], + "faces": { + "north": {"uv": [8, 0, 16, 4], "texture": "#2"}, + "east": {"uv": [8, 8, 16, 12], "texture": "#2"}, + "south": {"uv": [8, 8, 16, 4], "texture": "#2"}, + "west": {"uv": [8, 12, 16, 16], "texture": "#2"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#2"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#2"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [65, 0, 0], + "translation": [0, 3, 4.75], + "scale": [0.75, 0.75, 0.75] + }, + "thirdperson_lefthand": { + "rotation": [65, 0, 0], + "translation": [0, 3, 4.75], + "scale": [0.75, 0.75, 0.75] + }, + "firstperson_righthand": { + "rotation": [65, 0, 0], + "translation": [0, 3.25, 0] + }, + "firstperson_lefthand": { + "rotation": [65, 0, 0], + "translation": [0, 3.25, 0] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.75, 0.75, 0.75] + }, + "gui": { + "rotation": [30, 45, 0], + "translation": [0, 5.25, 0] + }, + "head": { + "rotation": [-90, -180, 0], + "translation": [0, 7.25, -14.5] + }, + "fixed": { + "rotation": [-90, -180, 0], + "translation": [0, 0, -8] + } + }, + "groups": [ + { + "name": "shaped charge", + "origin": [0, 0, 0], + "color": 0, + "children": [0, 1] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/charged_explosives/models/block/charged_explosive.json b/src/main/resources/assets/charged_explosives/models/block/charged_explosive_on.json similarity index 97% rename from src/main/resources/assets/charged_explosives/models/block/charged_explosive.json rename to src/main/resources/assets/charged_explosives/models/block/charged_explosive_on.json index 7ede13f..1d093a4 100644 --- a/src/main/resources/assets/charged_explosives/models/block/charged_explosive.json +++ b/src/main/resources/assets/charged_explosives/models/block/charged_explosive_on.json @@ -3,7 +3,7 @@ "texture_size": [4, 4], "textures": { "0": "charged_explosives:block/charged_explosive_main", - "2": "charged_explosives:block/shaped_charge_light", + "2": "charged_explosives:block/shaped_charge_light_on", "particle": "charged_explosives:block/charged_explosive_main" }, "elements": [ diff --git a/src/main/resources/assets/charged_explosives/models/item/charged_explosive.json b/src/main/resources/assets/charged_explosives/models/item/charged_explosive.json index 2ae8ff6..d6cf08d 100644 --- a/src/main/resources/assets/charged_explosives/models/item/charged_explosive.json +++ b/src/main/resources/assets/charged_explosives/models/item/charged_explosive.json @@ -1,3 +1,81 @@ { - "parent": "charged_explosives:block/charged_explosive" + "credit": "Made with Blockbench", + "texture_size": [4, 4], + "textures": { + "0": "charged_explosives:block/charged_explosive_main", + "2": "charged_explosives:block/shaped_charge_light_off", + "particle": "charged_explosives:block/charged_explosive_main" + }, + "elements": [ + { + "name": "charged_explosive_main", + "from": [2, 0, 4], + "to": [14, 3, 12], + "faces": { + "north": {"uv": [0, 10, 6, 13], "texture": "#0"}, + "east": {"uv": [6, 10, 10, 13], "texture": "#0"}, + "south": {"uv": [0, 13, 6, 16], "texture": "#0"}, + "west": {"uv": [6, 13, 10, 16], "texture": "#0"}, + "up": {"uv": [0, 2, 6, 10], "texture": "#0"}, + "down": {"uv": [6, 2, 12, 10], "texture": "#0"} + } + }, + { + "name": "shaped_charge_light", + "from": [10, 3, 7], + "to": [12, 4, 9], + "faces": { + "north": {"uv": [8, 0, 16, 4], "texture": "#2"}, + "east": {"uv": [8, 8, 16, 12], "texture": "#2"}, + "south": {"uv": [8, 8, 16, 4], "texture": "#2"}, + "west": {"uv": [8, 12, 16, 16], "texture": "#2"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#2"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#2"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [65, 0, 0], + "translation": [0, 3, 4.75], + "scale": [0.75, 0.75, 0.75] + }, + "thirdperson_lefthand": { + "rotation": [65, 0, 0], + "translation": [0, 3, 4.75], + "scale": [0.75, 0.75, 0.75] + }, + "firstperson_righthand": { + "rotation": [65, 0, 0], + "translation": [0, 3.25, 0] + }, + "firstperson_lefthand": { + "rotation": [65, 0, 0], + "translation": [0, 3.25, 0] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.75, 0.75, 0.75] + }, + "gui": { + "rotation": [30, 45, 0], + "translation": [0, 5.25, 0] + }, + "head": { + "rotation": [-90, -180, 0], + "translation": [0, 7.25, -14.5] + }, + "fixed": { + "rotation": [-90, -180, 0], + "translation": [0, 0, -8] + } + }, + "groups": [ + { + "name": "shaped charge", + "origin": [0, 0, 0], + "color": 0, + "children": [0, 1] + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_off.png b/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_off.png new file mode 100644 index 0000000000000000000000000000000000000000..a37e74e13bb895275c7ab1c1a2c2edf22bb398fb GIT binary patch literal 1392 zcmbVMO>5LZ7*0h>Tj|M*h=-7hwqP>(*mRqrX{o!lT`;w@3#~V2C$qbun@mh*ySqIK z9z1*S1Hm2yZ~g%fo_Y|$U*KO*K?F~NZ}uZpsTLcO%-1u|`~5!J+*q5Qx;!OG(sX6L zyanU=?3*|T|7(vY=U|wO*YBp1bm3z5jY-d6TmrzCpt>t|z1x`bP$NFCF|8ZMfR?1i z|!7YnILjE zY(**Vx=NoH!#vwYirj~YJy%)D1j@VKrd;9)lZ%?EQeD^OqN5qLd7BiS8?vdJCer7T zVW~zD7v`~1kcW=~;u61(x5~GM!eHepO(9~8P^Z(;I+n(h1~MGSLAr@dQw4;Y_98*L zYLw257|JZANf3*GM{>qUYP>C61ymi_5XL!eln(s_9z$IcBSX_OoBBYX=D4_>wEDt* zidc({x!`G&|Ajg~{!IY**7I^1C+ZT0xrkJ(?t>Xahn$E`tG$?^Etc|j zLfPs*s5z5a6XR0Ch~P<;^VTR*nNeK(0o3DuQ16`xEnw664GKBq6G2V|`xMuC5)v>t2uXvXIBF;d!_crGiA1Rm!dcHfurPV|&4&j8b1M`i!c+UZ|-HrcPDj)M{42vYY}lNB7H| zwzJ5N?)(3F|4tG>X_3~Md9s4bQUb3BDFmxGtcY!Pe>iIeaz6_&p;>mj3eCdGd}X*D zoY?~d+D?-J=|93ffTg@HIwWB$4e-{f>4ZRel-1$D4)mvq{j*~=JAy+a$fkJ{TrHd`sLR41O%Pw4uO?;oD5y<9S&^|(L3JscZ<`l{E3_wdU2RY^Mh VJo(;yy=G-Sv9h{ReslBQgJ0d3u^|8e literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light.png b/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_on.png similarity index 100% rename from src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light.png rename to src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_on.png diff --git a/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light.png.mcmeta b/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_on.png.mcmeta similarity index 100% rename from src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light.png.mcmeta rename to src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_on.png.mcmeta