优化动画

This commit is contained in:
Atsuihsio 2024-12-08 02:07:15 +08:00
parent fdabea761e
commit 4f1de3b41c
2 changed files with 13 additions and 7 deletions

View file

@ -509,7 +509,7 @@ public class AnnihilatorEntity extends Entity implements GeoEntity, ICannonEntit
}
private PlayState movementPredicate(AnimationState<AnnihilatorEntity> event) {
if (this.entityData.get(COOL_DOWN) > 80) {
if (this.entityData.get(COOL_DOWN) > 85) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.annihilator.fire"));
}
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.annihilator.idle"));

View file

@ -41,7 +41,8 @@
"0.0": [0, 0, 0],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 0]
"0.5": [0, 0, 0],
"0.9917": [0, 0, 0]
}
},
"light1": {
@ -57,7 +58,8 @@
"0.0": [0, 0, 0],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 0]
"0.5": [0, 0, 0],
"0.9917": [0, 0, 0]
}
},
"light2": {
@ -73,7 +75,8 @@
"0.0": [0, 0, 0],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 0]
"0.5": [0, 0, 0],
"0.9917": [0, 0, 0]
}
},
"light3": {
@ -89,7 +92,8 @@
"0.0": [0, 0, 1],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 1]
"0.5": [0, 0, 1],
"0.9917": [0, 0, 1]
}
},
"laser2": {
@ -97,7 +101,8 @@
"0.0": [0, 0, 1],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 1]
"0.5": [0, 0, 1],
"0.9917": [0, 0, 1]
}
},
"laser3": {
@ -105,7 +110,8 @@
"0.0": [0, 0, 1],
"0.0083": [1, 1, 1],
"0.1917": [1, 1, 1],
"0.5": [0, 0, 1]
"0.5": [0, 0, 1],
"0.9917": [0, 0, 1]
}
}
}