1
0
mirror of https://github.com/GeyserMC/GeyserOptionalPack.git synced 2025-12-19 14:59:14 +00:00

Use java-style sneeze animation for panda

This commit is contained in:
Kastle
2021-03-08 02:41:47 -08:00
parent 5a8e235286
commit 5017842eae
4 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{
"format_version" : "1.10.0",
"animation_controllers" : {
"controller.animation.panda.sneezing" : {
"initial_state" : "baby",
"states" : {
"baby" : {
"animations" : [
{
"sneezing": false
}
]
}
}
}
}
}

30
animations/panda.animation.json Executable file
View File

@@ -0,0 +1,30 @@
{
"format_version": "1.8.0",
"animations": {
"animation.panda.sneezing": {
"loop": true,
"animation_length": 2,
"bones": {
"head": {
"rotation": {
"0.0": [0, 0, 0],
"0.16": [-7.5, 0, 0],
"0.44": [-22.5, 0, 0],
"0.52": [-22.5, 0, 0],
"0.6": [15, 0, 0],
"0.64": [0, 0, 0]
}
}
},
"particle_effects": {
"0.52": {
"effect": "sneeze",
"locator": "particle"
}
},
"timeline": {
"1.96": "v.geyser_sneezing = 0;"
}
}
}
}

53
entity/panda.entity.json Executable file
View File

@@ -0,0 +1,53 @@
{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:panda",
"materials": { "default": "panda" },
"textures": {
"default": "textures/entity/panda/panda",
"lazy": "textures/entity/panda/panda_lazy",
"worried": "textures/entity/panda/panda_worried",
"playful": "textures/entity/panda/panda_playful",
"brown": "textures/entity/panda/panda_brown",
"weak": "textures/entity/panda/panda_sneezy",
"aggressive": "textures/entity/panda/panda_aggressive"
},
"geometry": {
"default": "geometry.panda"
},
"particle_effects": {
"sneeze": "geyseropt:sneeze"
},
"animations": {
"unhappy": "animation.panda.unhappy",
"geyser_sneezing": "animation.panda.sneezing",
"walk": "animation.quadruped.walk",
"look_at_target": "animation.common.look_at_target",
"baby_transform": "animation.panda.baby_transform",
"sitting": "animation.panda.sitting",
"rolling": "animation.panda.rolling",
"lying": "animation.panda.lying",
"controller.move": "controller.animation.panda.move",
"controller.unhappy": "controller.animation.panda.unhappy",
"controller.baby": "controller.animation.panda.baby"
},
"scripts": {
"pre_animation": [
"v.geyser_sneezing = q.sneeze_counter > 0 ? 1 : (v.geyser_sneezing ?? 0);"
],
"animate": [
"controller.move",
"controller.unhappy",
"controller.baby",
{"geyser_sneezing": "v.geyser_sneezing"}
]
},
"render_controllers": [ "controller.render.panda" ],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 54
}
}
}
}

66
models/entity/panda.geo.json Executable file
View File

@@ -0,0 +1,66 @@
{
"format_version": "1.8.0",
"geometry.panda": {
"texturewidth": 64,
"textureheight": 64,
"visible_bounds_width": 3,
"visible_bounds_height": 3.5,
"visible_bounds_offset": [0, 1.25, 0],
"bones": [
{
"name": "body",
"pivot": [0, 14, 0],
"cubes": [
{"origin": [-9.5, 1, -6.5], "size": [19, 26, 13], "uv": [0, 25]}
]
},
{
"name": "head",
"parent": "body",
"pivot": [0, 12.5, -17],
"cubes": [
{"origin": [-6.5, 7.5, -21], "size": [13, 10, 9], "uv": [0, 6]},
{"origin": [-3.5, 7.5, -23], "size": [7, 5, 2], "uv": [45, 16]},
{"origin": [-8.5, 16.5, -18], "size": [5, 4, 1], "uv": [52, 25]},
{"origin": [3.5, 16.5, -18], "size": [5, 4, 1], "uv": [52, 25]}
],
"locators": {
"lead": [0, 14, -16],
"particle": [0, 9.5, -24]
}
},
{
"name": "leg0",
"parent": "body",
"pivot": [-5.5, 9, 9],
"cubes": [
{"origin": [-8.5, 0, 6], "size": [6, 9, 6], "uv": [40, 0]}
]
},
{
"name": "leg1",
"parent": "body",
"pivot": [5.5, 9, 9],
"cubes": [
{"origin": [2.5, 0, 6], "size": [6, 9, 6], "uv": [40, 0]}
]
},
{
"name": "leg2",
"parent": "body",
"pivot": [-5.5, 9, -9],
"cubes": [
{"origin": [-8.5, 0, -12], "size": [6, 9, 6], "uv": [40, 0]}
]
},
{
"name": "leg3",
"parent": "body",
"pivot": [5.5, 9, -9],
"cubes": [
{"origin": [2.5, 0, -12], "size": [6, 9, 6], "uv": [40, 0]}
]
}
]
}
}