feat: update penguin

This commit is contained in:
TheClashFruit 2023-12-18 19:39:00 +01:00
parent 5d8d160f98
commit 054ece497f
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
4 changed files with 196 additions and 131 deletions

View file

@ -46,9 +46,12 @@ public class BabyEmperorEntity extends AnimalEntity implements GeoEntity {
}
protected <E extends BabyEmperorEntity> PlayState predicate(final AnimationState<E> event) {
return event.setAndContinue(
RawAnimation.begin().thenLoop("animation.FM-Penguin.new")
);
if(event.isMoving())
return event.setAndContinue(
RawAnimation.begin().thenLoop("animation.baby_emperor.walk")
);
return PlayState.STOP;
}
@Override

View file

@ -1,53 +1,106 @@
{
"format_version": "1.8.0",
"animations": {
"animation.FM-Penguin.new": {
"animation_length": 1.75,
"bones": {
"RightArm": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.5": {
"vector": [0, 0, 0],
"easing": "easeInBack"
},
"1.0": {
"vector": [0, 0, -30],
"easing": "easeInBack"
},
"1.5": {
"vector": [0, 0, 5],
"easing": "easeInBack"
},
"1.75": {
"vector": [0, 0, 0],
"easing": "easeInBack"
}
}
},
"LeftArm": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.5": {
"vector": [0, 0, 25],
"easing": "easeInBack"
},
"1.0": {
"vector": [0, 0, -5],
"easing": "easeInBack"
},
"1.25": {
"vector": [0, 0, 0],
"easing": "easeInBack"
}
}
}
}
}
},
"geckolib_format_version": 2
"format_version": "1.8.0",
"animations": {
"animation.FM-Penguin.new": {
"animation_length": 1.75,
"bones": {
"RightArm": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.5": {
"vector": [0, 0, 0],
"easing": "easeInBack"
},
"1.0": {
"vector": [0, 0, -30],
"easing": "easeInBack"
},
"1.5": {
"vector": [0, 0, 5],
"easing": "easeInBack"
},
"1.75": {
"vector": [0, 0, 0],
"easing": "easeInBack"
}
}
},
"LeftArm": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.5": {
"vector": [0, 0, 25],
"easing": "easeInBack"
},
"1.0": {
"vector": [0, 0, -5],
"easing": "easeInBack"
},
"1.25": {
"vector": [0, 0, 0],
"easing": "easeInBack"
}
}
}
}
},
"animation.baby_emperor.walk": {
"animation_length": 0.83333,
"bones": {
"LeftFoot": {
"rotation": {
"0.0": {
"vector": [0, 0, 0]
},
"0.0833": {
"vector": [-5, 0, 0]
},
"0.3333": {
"vector": [0, 0, 0]
}
},
"position": {
"0.0": {
"vector": [0, 0, 0]
},
"0.1667": {
"vector": [0, 0, -0.5]
},
"0.4167": {
"vector": [0, 0, 0]
}
}
},
"RightFoot": {
"rotation": {
"0.4167": {
"vector": [0, 0, 0]
},
"0.5": {
"vector": [-5, 0, 0]
},
"0.75": {
"vector": [0, 0, 0]
}
},
"position": {
"0.4167": {
"vector": [0, 0, 0]
},
"0.5833": {
"vector": [0, 0, -0.5]
},
"0.8333": {
"vector": [0, 0, 0]
}
}
}
}
}
},
"geckolib_format_version": 2
}

View file

@ -1,79 +1,88 @@
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.Arctic-Penguin-BabyEmperor",
"texture_width": 64,
"texture_height": 64,
"visible_bounds_width": 2,
"visible_bounds_height": 2.5,
"visible_bounds_offset": [0, 0.75, 0]
},
"bones": [
{
"name": "bb_main",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [-4, 0.5, -3], "size": [8, 10, 6], "uv": [0, 0]},
{"origin": [-3, 10.5, -2.75], "size": [6, 5, 5.5], "uv": [0, 16]}
]
},
{
"name": "Foots",
"pivot": [0, 0, 0]
},
{
"name": "LeftFoot",
"parent": "Foots",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [0.5, 0, -3.75], "size": [3, 1, 6], "pivot": [0, 0, 0], "rotation": [2.5, -2.5, 0], "uv": [0, 28]}
]
},
{
"name": "RightFoot",
"parent": "Foots",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [-3.5, 0, -3.75], "size": [3, 1, 6], "pivot": [0, 0, 0], "rotation": [2.5, 2.5, 0], "uv": [28, 0]}
]
},
{
"name": "Tail",
"pivot": [0, 0.5, 2.5],
"cubes": [
{"origin": [-1.5, 0.5, 2.5], "size": [3, 1, 2], "pivot": [0, 0.5, 2.5], "rotation": [-5, 0, 0], "uv": [22, 0]}
]
},
{
"name": "Beak",
"pivot": [0, 11.6, -2],
"cubes": [
{"origin": [-1, 11.35, -4], "size": [2, 1, 2], "pivot": [0, 11.6, -2], "rotation": [7.5, 0, 0], "uv": [22, 3]}
]
},
{
"name": "Arms",
"pivot": [-4, 10.5, 0]
},
{
"name": "RightArm",
"parent": "Arms",
"pivot": [4, 10.5, 0],
"cubes": [
{"origin": [3.25, 2.2, -2.75], "size": [1, 8.25, 5.5], "pivot": [4, 10.5, 0], "rotation": [0, 0, -5], "uv": [24, 11]}
]
},
{
"name": "LeftArm",
"parent": "Arms",
"pivot": [-4, 10.5, 0],
"cubes": [
{"origin": [-4.25, 2.2, -2.75], "size": [1, 8.25, 5.5], "pivot": [-4, 10.5, 0], "rotation": [0, 0, 5], "uv": [17, 21]}
]
}
]
}
]
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.Arctic-Penguin-BabyEmperor",
"texture_width": 64,
"texture_height": 64,
"visible_bounds_width": 2,
"visible_bounds_height": 3.5,
"visible_bounds_offset": [0, 1.25, 0]
},
"bones": [
{
"name": "Head",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [-3, 10.5, -2.75], "size": [6, 5, 5.5], "uv": [0, 16]}
]
},
{
"name": "Beak",
"parent": "Head",
"pivot": [0, 11.6, -2],
"cubes": [
{"origin": [-1, 11.35, -4], "size": [2, 1, 2], "pivot": [0, 11.6, -2], "rotation": [7.5, 0, 0], "uv": [22, 3]}
]
},
{
"name": "BodyAll",
"pivot": [0, 5.5, 0],
"cubes": [
{"origin": [-4, 0.5, -3], "size": [8, 10, 6], "uv": [0, 0]}
]
},
{
"name": "Tail",
"parent": "BodyAll",
"pivot": [0, 0.5, 2.5],
"cubes": [
{"origin": [-1.5, 0.5, 2.5], "size": [3, 1, 2], "pivot": [0, 0.5, 2.5], "rotation": [-5, 0, 0], "uv": [22, 0]}
]
},
{
"name": "Arms",
"parent": "BodyAll",
"pivot": [-4, 10.5, 0]
},
{
"name": "RightArm",
"parent": "Arms",
"pivot": [4, 10.5, 0],
"cubes": [
{"origin": [3.25, 2.2, -2.75], "size": [1, 8.25, 5.5], "pivot": [4, 10.5, 0], "rotation": [0, 0, -5], "uv": [24, 11]}
]
},
{
"name": "LeftArm",
"parent": "Arms",
"pivot": [-4, 10.5, 0],
"cubes": [
{"origin": [-4.25, 2.2, -2.75], "size": [1, 8.25, 5.5], "pivot": [-4, 10.5, 0], "rotation": [0, 0, 5], "uv": [17, 21]}
]
},
{
"name": "Feet",
"pivot": [0, 0, 0]
},
{
"name": "LeftFoot",
"parent": "Feet",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [0.5, 0, -3.75], "size": [3, 1, 6], "pivot": [0, 0, 0], "rotation": [2.5, -2.5, 0], "uv": [0, 28]}
]
},
{
"name": "RightFoot",
"parent": "Feet",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [-3.5, 0, -3.75], "size": [3, 1, 6], "pivot": [0, 0, 0], "rotation": [2.5, 2.5, 0], "uv": [28, 0]}
]
}
]
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 166 KiB