From 9922063207cb8680bb5a5efce9cfa375972df97f Mon Sep 17 00:00:00 2001 From: Jika Date: Tue, 29 Jul 2025 23:20:02 +0200 Subject: [PATCH] Custom model --- .../animations/animated_block.animation.json | 25 ++++- .../assets/ibg/geo/animated_block.geo.json | 14 ++- .../ibg/models/block/animated_block.json | 92 +++--------------- .../ibg/textures/block/animated_block.png | Bin 1673 -> 395 bytes 4 files changed, 43 insertions(+), 88 deletions(-) diff --git a/src/main/resources/assets/ibg/animations/animated_block.animation.json b/src/main/resources/assets/ibg/animations/animated_block.animation.json index 7e177eb..1de5aff 100644 --- a/src/main/resources/assets/ibg/animations/animated_block.animation.json +++ b/src/main/resources/assets/ibg/animations/animated_block.animation.json @@ -3,15 +3,34 @@ "animations": { "idle": { "loop": true, - "animation_length": 2.96, + "animation_length": 2, "bones": { "bone2": { + "rotation": { + "0.0": { + "vector": [0, 0, 0] + }, + "1.0": { + "vector": [0, 180, 0] + }, + "2.0": { + "vector": [0, 360, 0] + } + }, "position": { - "vector": [0, "math.sin(query.anim_time*120)", 0] + "0.0": { + "vector": [0, 0, 0] + }, + "1.0": { + "vector": [0, 2, 0] + }, + "2.0": { + "vector": [0, 0, 0] + } } } } } }, "geckolib_format_version": 2 -} +} \ No newline at end of file diff --git a/src/main/resources/assets/ibg/geo/animated_block.geo.json b/src/main/resources/assets/ibg/geo/animated_block.geo.json index 9cea90f..de3e9ad 100644 --- a/src/main/resources/assets/ibg/geo/animated_block.geo.json +++ b/src/main/resources/assets/ibg/geo/animated_block.geo.json @@ -13,22 +13,20 @@ "bones": [ { "name": "bone", - "pivot": [0, 0, 0], + "pivot": [0, 1, 0], "cubes": [ - {"origin": [-3, 4, -3], "size": [6, 2, 6], "uv": [0, 32]}, - {"origin": [-1, 6, -1], "size": [2, 4.5, 2], "uv": [0, 8]}, - {"origin": [-6, 2, -6], "size": [12, 2, 12], "uv": [0, 18]}, - {"origin": [-8, 0, -8], "size": [16, 2, 16], "uv": [0, 0]} + {"origin": [-7, 1, -7], "size": [14, 5, 14], "inflate": 1, "uv": [0, 0]} ] }, { "name": "bone2", - "pivot": [0, 0, 0], + "parent": "bone", + "pivot": [0, 14, 0], "cubes": [ - {"origin": [-2, 12, -2], "size": [4, 4, 4], "uv": [0, 0]} + {"origin": [-1, 9, -1], "size": [2, 11, 2], "uv": [0, 19]} ] } ] } ] -} +} \ No newline at end of file diff --git a/src/main/resources/assets/ibg/models/block/animated_block.json b/src/main/resources/assets/ibg/models/block/animated_block.json index 8cc1e85..c61ebf3 100644 --- a/src/main/resources/assets/ibg/models/block/animated_block.json +++ b/src/main/resources/assets/ibg/models/block/animated_block.json @@ -7,57 +7,21 @@ ], "display": { "thirdperson_righthand": { + "scale": [ + 0.5, + 0.5, + 0.5 + ] + }, + "gui": { "rotation": [ - 22, - 0, - 0 + 10.81, + -60.3, + -1.32 ], "translation": [ - 0, - -2, - 0 - ], - "scale": [ - 0.4, - 0.4, - 0.4 - ] - }, - "thirdperson_lefthand": { - "rotation": [ - 22, - 0, - 0 - ], - "translation": [ - 0, - -2, - 0 - ], - "scale": [ - 0.4, - 0.4, - 0.4 - ] - }, - "firstperson_righthand": { - "scale": [ - 0.6, - 0.6, - 0.6 - ] - }, - "firstperson_lefthand": { - "scale": [ - 0.6, - 0.6, - 0.6 - ] - }, - "ground": { - "translation": [ - 0, - -3.25, + -0.25, + -6.5, 0 ], "scale": [ @@ -65,35 +29,9 @@ 0.75, 0.75 ] - }, - "gui": { - "rotation": [ - 26.31, - 40.81, - -8.27 - ], - "translation": [ - 0, - -5.25, - 0 - ], - "scale": [ - 0.65, - 0.65, - 0.65 - ] - }, - "fixed": { - "rotation": [ - -18.75, - 54.5, - 0 - ], - "translation": [ - 0, - -7, - 2 - ] } + }, + "textures": { + "particle": "ibg:block/animated_block" } } diff --git a/src/main/resources/assets/ibg/textures/block/animated_block.png b/src/main/resources/assets/ibg/textures/block/animated_block.png index 65e57227d93f2437b1488778b2d0b4e701975bae..edac85aa90e7be720cb517415f5311bca4adbcc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