添加夕雾花的花瓣发光效果,微调AGM65

This commit is contained in:
Atsuishio 2025-05-18 19:47:33 +08:00 committed by Light_Quanta
parent 8f88972666
commit cb8cba7d21
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
4 changed files with 17 additions and 12 deletions

View file

@ -238,13 +238,13 @@ public class Agm65Entity extends FastThrowableProjectile implements GeoEntity, D
entity.level().playSound(null, entity.getOnPos(), entity instanceof Pig ? SoundEvents.PIG_HURT : ModSounds.MISSILE_WARNING.get(), SoundSource.PLAYERS, 2, 1f);
}
Vec3 targetPos = new Vec3(entity.getX(), entity.getY() + (entity instanceof EnderDragon ? -3 : 0) + 0.15 * distanceTo(entity), entity.getZ());
Vec3 targetPos = new Vec3(entity.getX(), entity.getY() + (entity instanceof EnderDragon ? -2 : 0) + 0.1 * distanceTo(entity), entity.getZ());
Vec3 toVec = getEyePosition().vectorTo(targetPos).normalize();
if (this.tickCount > 8) {
boolean lostTarget = (VectorTool.calculateAngle(getDeltaMovement(), toVec) > 80);
if (!lostTarget) {
setDeltaMovement(getDeltaMovement().add(toVec.scale(1.4)).scale(0.75).add(entity.getDeltaMovement()));
setDeltaMovement(getDeltaMovement().add(toVec.scale(1.4)).scale(0.25).add(entity.getDeltaMovement()));
}
}
}

View file

@ -9943,8 +9943,22 @@
{
"name": "hou",
"parent": "gun",
"pivot": [4.72, -12.72, -10.02],
"pivot": [4.72, -12.72, -10.02]
},
{
"name": "flower_illuminated",
"parent": "hou",
"pivot": [0.5028, 0.77, 1.50967],
"cubes": [
{
"origin": [0.5228, -0.505, 0.38467],
"size": [0.05, 1.15, 1.15],
"pivot": [0.5478, 0.07, 0.95967],
"rotation": [68.77432, -5.16507, -2.29168],
"uv": {
"west": {"uv": [11.75, 68], "uv_size": [14, 14]}
}
},
{
"origin": [0.6028, 0.965, 0.48467],
"size": [0.05, 1.15, 1.15],
@ -9962,15 +9976,6 @@
"uv": {
"west": {"uv": [11.75, 68], "uv_size": [14, 14]}
}
},
{
"origin": [0.5228, -0.505, 0.38467],
"size": [0.05, 1.15, 1.15],
"pivot": [0.5478, 0.07, 0.95967],
"rotation": [68.77432, -5.16507, -2.29168],
"uv": {
"west": {"uv": [11.75, 68], "uv_size": [14, 14]}
}
}
]
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 46 KiB