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 0000000..a37e74e Binary files /dev/null and b/src/main/resources/assets/charged_explosives/textures/block/shaped_charge_light_off.png differ 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