smooth display motion via teleport_duration=1 (no desync)

This commit is contained in:
SashegDev
2026-09-17 09:18:53 +00:00
parent 3e00c57fa7
commit fa81d144ba
8 changed files with 18 additions and 0 deletions
@@ -40,6 +40,7 @@ public class LungeAttack {
d.setViewRange(64);
});
EntityTracker.mark(catalyst);
EntityTracker.smooth(catalyst);
p.getWorld().playSound(start, Sound.BLOCK_SCULK_CATALYST_BLOOM, 1f, 0.7f);
double catSpeed = 3.0;
@@ -154,6 +155,7 @@ public class LungeAttack {
new org.joml.AxisAngle4f()));
});
EntityTracker.mark(sword);
EntityTracker.smooth(sword);
new BukkitRunnable() {
long hold = 5;
boolean launched = false;
@@ -222,6 +224,7 @@ public class LungeAttack {
new org.joml.AxisAngle4f()));
});
EntityTracker.mark(sword);
EntityTracker.smooth(sword);
p.getWorld().playSound(gazePoint, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 1f, 0.5f);
p.getWorld().playSound(gazePoint, Sound.BLOCK_ANVIL_LAND, 0.6f, 1.4f);
Vector vel = new Vector(0, -1.2, 0);
@@ -370,6 +373,7 @@ public class LungeAttack {
new org.joml.AxisAngle4f()));
});
EntityTracker.mark(sword);
EntityTracker.smooth(sword);
Vector vel = new Vector(0, -fallSpeed, 0);
p.getWorld().playSound(spawn, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 0.6f, 0.7f);
new BukkitRunnable() {
@@ -463,6 +467,7 @@ public class LungeAttack {
new org.joml.AxisAngle4f()));
});
EntityTracker.mark(sword);
EntityTracker.smooth(sword);
spawn.getWorld().playSound(spawn, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 0.8f, 0.5f);
new BukkitRunnable() {