From bbed9d9ee8a35608c05e950d2b82425deb8880a8 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 3 Aug 2022 13:56:04 -0400 Subject: [PATCH] Updated Bulbasaur Model --- .../bedrock/animations/model.animation.json | 273 ++++++++++++++++++ .../bedrock/models/bulbasaur.geo.json | 40 ++- 2 files changed, 299 insertions(+), 14 deletions(-) create mode 100644 common/src/main/resources/assets/pokemoncobbled/bedrock/animations/model.animation.json diff --git a/common/src/main/resources/assets/pokemoncobbled/bedrock/animations/model.animation.json b/common/src/main/resources/assets/pokemoncobbled/bedrock/animations/model.animation.json new file mode 100644 index 0000000000..896cb4c6ec --- /dev/null +++ b/common/src/main/resources/assets/pokemoncobbled/bedrock/animations/model.animation.json @@ -0,0 +1,273 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.bulbasaur.ground_idle": { + "loop": true, + "bones": { + "torso": { + "rotation": ["math.sin(q.anim_time*90*4)*0.2", 0, 0], + "position": [0, "math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", 0] + }, + "bulb": { + "rotation": [0, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"] + }, + "head": { + "rotation": [0, 0, "math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"] + } + } + }, + "animation.bulbasaur.ground_walk": { + "loop": true, + "bones": { + "bulb": { + "rotation": ["4*(math.sin(q.anim_time*90*4*2+150)*1+1)", 0, 0] + }, + "head": { + "rotation": [0, 0, 0] + }, + "leg_front_right": { + "rotation": ["math.clamp(math.sin(-q.anim_time*90*4)*40,-50,5)+math.clamp(math.sin(q.anim_time*90*4)*40,-50,5)+math.clamp(math.sin(-q.anim_time*90*8)*25,-15,50)", 0, 0], + "position": [0, "-math.clamp(0.5*(math.sin(q.anim_time*90*4*2+50)*1),-1,0)", 0] + }, + "leg_front_left": { + "rotation": ["math.clamp(math.sin(-q.anim_time*90*4)*40,-50,5)+math.clamp(math.sin(q.anim_time*90*4)*40,-50,5)+math.clamp(math.sin(-q.anim_time*90*8)*25,-15,50)", 0, 0], + "position": [0, "-math.clamp(0.5*(math.sin(q.anim_time*90*4*2+50)*1),-1,0)", 0] + }, + "leg_back_right": { + "rotation": ["math.clamp(math.sin(q.anim_time*90*8)*20,-17.5,50)-math.clamp(math.sin(-q.anim_time*90*8)*3,0,8)", 0, 0], + "position": [0, "-math.clamp(math.sin(q.anim_time*90*4*2)*1,0,2)-math.clamp(math.sin(-q.anim_time*90*4*2)*0.5,0,2)", "math.clamp(math.sin(q.anim_time*90*4*2-30)*1,0,2)"] + }, + "leg_back_left": { + "rotation": ["math.clamp(math.sin(q.anim_time*90*8)*20,-17.5,50)-math.clamp(math.sin(-q.anim_time*90*8)*3,0,8)", 0, 0], + "position": [0, "-math.clamp(math.sin(q.anim_time*90*4*2)*1,0,2)-math.clamp(math.sin(-q.anim_time*90*4*2)*0.5,0,2)", "math.clamp(math.sin(q.anim_time*90*4*2-30)*1,0,2)"] + }, + "body": { + "rotation": ["6*(math.sin(q.anim_time*90*4*2-120)*1+1)", 0, 0], + "position": [0, "math.clamp(1*(math.sin(q.anim_time*90*4*2)*1.25),0,2)", "-math.clamp(math.sin(q.anim_time*90*4*2-30)*1.25,0,2)"] + } + } + }, + "animation.bulbasaur.sleep": { + "loop": true, + "bones": { + "torso": { + "rotation": ["5+math.sin(q.anim_time*90*2)*0.2", 0, 0], + "position": [0, -2, 0] + }, + "bulb": { + "rotation": [0, 0, "math.clamp(math.sin(q.anim_time*90*2)*0.25,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*2)*0.25,-1,1)"] + }, + "head": { + "rotation": [9.95744, 0.65182, -7.47178] + }, + "eyelid_right": { + "position": [-0.1, 0, -0.1] + }, + "eyelid_left": { + "position": [0.1, 0, -0.1] + }, + "leg_front_right": { + "rotation": [-79.96258, -4.92385, -0.87038], + "position": [-1.25, -2, 0.25] + }, + "leg_front_left": { + "rotation": [-79.91547, 7.38542, 1.30962], + "position": [1.25, -2, 0] + }, + "leg_back_right": { + "rotation": [32, 19.5, 56.75], + "position": [-1, -0.5, 0.25] + }, + "leg_back_left": { + "rotation": [32, -19.5, -56.75], + "position": [1, -0.5, 0.25] + } + } + }, + "animation.bulbasaur.faint": { + "loop": true, + "animation_length": 3, + "bones": { + "torso": { + "rotation": { + "0.0": ["7.5+math.sin(q.anim_time*90*4)*0.2", 0, 0], + "0.1": [5.59283, -0.32602, 3.73652], + "1.35": ["-12.7771+math.sin(q.anim_time*90*4)*0.2", -0.03561, -19.71257], + "1.55": ["-12.7771+math.sin(q.anim_time*90*4)*0.2", -0.03561, -19.71257], + "1.65": ["27.2297+math.sin(q.anim_time*90*4)*0.2", 0.08654, -4.71307], + "1.85": ["37.2297+math.sin(q.anim_time*90*4)*0.2", 0.08654, -4.71307], + "1.95": ["37.2297+math.sin(q.anim_time*90*4)*0.2", 0.08654, -4.71307], + "2.1": [4.7297, 0.08654, -4.71307] + }, + "position": { + "0.0": [0, "math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", 0], + "1.0": [0, "1+math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", 0], + "1.5": [0, "1+math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", 0], + "1.65": [0, "-1+math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", -2], + "1.75": [0, "math.clamp(math.sin(q.anim_time*90*8+180)*0.06,-0.03,0.03)+math.clamp(math.sin(q.anim_time*90*8+180)*0.03,-0.5,0.5)", -2], + "2.1": [0, -2, -2] + } + }, + "bulb": { + "rotation": { + "0.0": [0, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"], + "1.5": [0, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"], + "1.65": [-35, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"], + "1.75": [30, 0, "0+math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"], + "2.1": [-32.5, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"], + "2.35": [-7.5, 0, "math.clamp(math.sin(q.anim_time*90*4)*2,-1.8,1.8)+math.clamp(math.sin(q.anim_time*90*4)*1,-1,1)"] + } + }, + "head": { + "rotation": { + "0.0": [38.46347, 11.84911, "9.2644+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "0.15": [0.46117, -37.54698, "-20.594+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "0.2": [15.37387, -29.56158, -17.59535], + "0.3": [-8.08448, 28.56136, -19.94594], + "0.35": [-8.87399, 13.66933, -14.49118], + "0.5": [-14.1499, 18.35084, -6.64318], + "0.85": [-11.67683, 24.71237, "-14.2758+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "1.55": [-11.67683, 24.71237, "-14.2758+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "1.65": [-27.03464, 27.06944, "-9.3734+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "1.75": [-34.05363, 24.34138, "-14.0248+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "2.0": [-34.05363, 24.34138, "-14.0248+math.clamp(math.sin(q.anim_time*90*4+45)*0.6,-0.3,0.3)+math.clamp(math.sin(q.anim_time*90*4+45)*1.2,-1.2,1.2)"], + "2.1": [-0.77929, 25.14493, -0.2837] + }, + "position": { + "0.0": [0, 0, 1], + "0.15": [0, 0, -1], + "1.5": [0, 0, -1], + "2.0": [0, 0, -1], + "2.1": [0, -1, -1] + } + }, + "body": { + "rotation": { + "0.0": [0, 0, 0], + "1.0": [0, 10, 0] + }, + "position": { + "0.0": [0, 0, 2], + "0.05": [0, -0.2, 2], + "0.25": [0, 0.04, 2], + "0.3": [0, -0.16, 2], + "0.75": [0, 0.04, 2], + "0.8": [0, -0.16, 2], + "1.0": [0, 0, 2] + } + }, + "eyelid_right": { + "position": { + "0.0": [-0.1, 0, -0.1], + "0.25": [-0.1, 0, -0.1], + "0.3": [0, 0, 0], + "1.0": [0, 0, 0], + "1.05": [-0.1, 0, -0.1], + "1.35": [-0.1, 0, -0.1], + "1.4": [0, 0, 0], + "1.55": [0, 0, 0], + "1.65": [-0.1, 0, -0.1] + } + }, + "eyelid_left": { + "position": { + "0.0": [0.1, 0, -0.1], + "0.4": [0.1, 0, -0.1], + "0.45": [0, 0, 0], + "1.0": [0, 0, 0], + "1.05": [0.1, 0, -0.1], + "1.35": [0.1, 0, -0.1], + "1.4": [0, 0, 0], + "1.65": [0.1, 0, -0.1] + } + }, + "ear_right": { + "rotation": { + "0.0": [0, 0, 0], + "1.65": [0, 0, 0], + "1.75": [60, 0, 0], + "1.95": [60, 0, 0], + "2.1": [0, 0, 0] + } + }, + "leg_front_right": { + "rotation": { + "0.0": [0, 0, 0], + "0.95": [0, 0, -7.5], + "1.5": [0, 0, -7.5], + "1.7": [0, 0, 82.5] + }, + "position": { + "0.0": [0, 0, 0], + "1.5": [0, 0, 0], + "1.7": [-2, -2, 0] + } + }, + "leg_front_left": { + "rotation": { + "0.0": [0, 0, 0], + "0.95": [-55.41141, -18.82943, -35.04707], + "1.35": [-56.68086, -38.44868, -52.88564], + "1.5": [-56.68086, -38.44868, -52.88564], + "1.65": [-114.91267, -77.50831, -32.65914], + "1.7": [-37.41267, -77.50831, -32.65914] + }, + "position": { + "0.0": [0, 0, 0], + "0.95": [0, 2, 0], + "1.5": [0, 2, 0], + "1.65": [2, -2, -2] + } + }, + "leg_back_right": { + "rotation": { + "0.0": [0, 0, 0], + "1.1": [56.59341, -12.60837, 8.19252], + "1.45": [56.59341, -12.60837, 8.19252], + "1.65": [74.09341, -12.60837, 8.19252], + "1.9": [168.97855, -14.70948, -12.28318], + "2.15": [121.47855, -14.70948, -12.28318], + "2.25": [91.47855, -14.70948, -12.28318] + }, + "position": { + "0.0": [0, 0, 0], + "1.55": [0, 0, 0], + "1.8": [-1.5, 3, -1], + "2.2": [-0.5, -2, -1], + "2.25": [-0.5, -1.75, -1] + } + }, + "leg_back_left": { + "rotation": { + "0.0": [0, 0, 0], + "1.0": [0, 0, 12.5], + "1.5": [0, 0, 12.5], + "1.75": [125, 0, 12.5], + "1.85": [137.5, 0, 12.5], + "2.1": [129.43149, 14.00607, 11.20779], + "2.15": [84.59039, 22.40972, 10.43246] + }, + "position": { + "0.0": [0, 0, 0], + "1.5": [0, 0, 0], + "1.75": [1, 4, -1], + "1.95": [1, 3, -1], + "2.1": [1, -1, -1] + } + }, + "jaw": { + "rotation": { + "0.0": [0, 0, 0], + "0.5": [0, 0, 0], + "0.8": [25, 0, 0], + "1.0": [42.5, 0, 0], + "1.5": [47.5, 0, 0], + "1.65": [0, 0, 0], + "1.75": [22.5, 0, 0], + "1.85": [0, 0, 0] + } + } + } + } + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/pokemoncobbled/bedrock/models/bulbasaur.geo.json b/common/src/main/resources/assets/pokemoncobbled/bedrock/models/bulbasaur.geo.json index 8437e875e2..57ef2f039e 100644 --- a/common/src/main/resources/assets/pokemoncobbled/bedrock/models/bulbasaur.geo.json +++ b/common/src/main/resources/assets/pokemoncobbled/bedrock/models/bulbasaur.geo.json @@ -3,7 +3,7 @@ "minecraft:geometry": [ { "description": { - "identifier": "geometry.bulbasaur", + "identifier": "geometry.unknown", "texture_width": 64, "texture_height": 64, "visible_bounds_width": 3, @@ -46,8 +46,8 @@ "cubes": [ {"origin": [-4.5, 4.5, -8.25], "size": [9, 6, 6], "inflate": 0.01, "uv": [28, 24]}, {"origin": [-4.5, 3.5, -6.25], "size": [9, 1, 3], "inflate": 0.01, "uv": [40, 37]}, - {"origin": [-4.25, 4, -7.5], "size": [1, 1, 0], "inflate": 0.01, "pivot": [-3.75, 4.5, -7.75], "rotation": [30, 25, 50], "uv": [44, 12]}, - {"origin": [3.25, 4, -7.5], "size": [1, 1, 0], "inflate": 0.01, "pivot": [3.75, 4.5, -7.75], "rotation": [30, -25, -50], "uv": [44, 12], "mirror": true} + {"origin": [-4.25, 4, -7.5], "size": [1, 1, 0], "pivot": [-3.75, 4.5, -7.75], "rotation": [30, 25, 50], "uv": [44, 12]}, + {"origin": [3.25, 4, -7.5], "size": [1, 1, 0], "pivot": [3.75, 4.5, -7.75], "rotation": [30, -25, -50], "uv": [44, 12], "mirror": true} ] }, { @@ -61,26 +61,38 @@ { "name": "eyes", "parent": "head", - "pivot": [0, 7.5, -7.45], + "pivot": [0, 7.5, -7.45] + }, + { + "name": "eye_right", + "parent": "eyes", + "pivot": [-3.501, 7.5, -7.251], "cubes": [ - {"origin": [-4.5, 6, -8.25], "size": [2, 3, 2], "inflate": 0.02, "uv": [44, 5]}, - {"origin": [2.5, 6, -8.25], "size": [2, 3, 2], "inflate": 0.02, "uv": [44, 5], "mirror": true} + {"origin": [-4.501, 6, -8.251], "size": [2, 3, 2], "inflate": 0.01, "uv": [44, 5]} ] }, { "name": "eyelid_right", - "parent": "eyes", - "pivot": [-3.4, 7.5, -7.15], + "parent": "eye_right", + "pivot": [-3.401, 7.5, -7.151], "cubes": [ - {"origin": [-4.4, 6, -8.15], "size": [2, 3, 2], "inflate": 0.03, "uv": [28, 37]} + {"origin": [-4.401, 6, -8.151], "size": [2, 3, 2], "inflate": 0.02, "uv": [28, 37]} + ] + }, + { + "name": "eye_left", + "parent": "eyes", + "pivot": [3.501, 7.5, -7.251], + "cubes": [ + {"origin": [2.501, 6, -8.251], "size": [2, 3, 2], "inflate": 0.01, "uv": [44, 5], "mirror": true} ] }, { "name": "eyelid_left", - "parent": "eyes", - "pivot": [3.4, 7.5, -7.15], + "parent": "eye_left", + "pivot": [3.401, 7.5, -7.151], "cubes": [ - {"origin": [2.4, 6, -8.15], "size": [2, 3, 2], "inflate": 0.03, "uv": [28, 37], "mirror": true} + {"origin": [2.401, 6, -8.151], "size": [2, 3, 2], "inflate": 0.02, "uv": [28, 37], "mirror": true} ] }, { @@ -94,7 +106,7 @@ "pivot": [-2.75, 10.125, -5], "rotation": [0, 40, -17.5], "cubes": [ - {"origin": [-4.75, 10, -5], "size": [4, 3, 0], "inflate": 0.01, "uv": [0, 0], "mirror": true} + {"origin": [-4.75, 10, -5], "size": [4, 3, 0], "uv": [0, 0], "mirror": true} ] }, { @@ -103,7 +115,7 @@ "pivot": [2.75, 10.125, -5], "rotation": [0, -40, 17.5], "cubes": [ - {"origin": [0.75, 10, -5], "size": [4, 3, 0], "inflate": 0.01, "uv": [0, 0]} + {"origin": [0.75, 10, -5], "size": [4, 3, 0], "uv": [0, 0]} ] }, {