reverted to og sound effect when throwing entities
This commit is contained in:
parent
ceb4678179
commit
cfbebd9334
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -140,8 +140,9 @@ public final class CoswayUtil extends JavaPlugin implements Listener {
|
|||||||
if (entity == null || source == null) return;
|
if (entity == null || source == null) return;
|
||||||
|
|
||||||
Location entityLoc = entity.getLocation();
|
Location entityLoc = entity.getLocation();
|
||||||
entity.getWorld().playEffect(entity.getLocation(),Effect.BAT_TAKEOFF,1);
|
entity.getWorld().playEffect(entity.getLocation(),Effect.TRIAL_SPAWNER_DETECT_PLAYER_OMINOUS,1);
|
||||||
entity.getWorld().playSound(entity.getLocation(),Sound.ENTITY_BAT_TAKEOFF,10,1);
|
entity.getWorld().playSound(entity.getLocation(),Sound.ENTITY_BREEZE_JUMP,10,0);
|
||||||
|
|
||||||
Vector knockbackDirection = entityLoc.toVector().subtract(source.toVector()).normalize();
|
Vector knockbackDirection = entityLoc.toVector().subtract(source.toVector()).normalize();
|
||||||
|
|
||||||
// Apply velocity in the opposite direction
|
// Apply velocity in the opposite direction
|
||||||
|
Loading…
Reference in New Issue
Block a user