reverted to og sound effect when throwing entities

This commit is contained in:
kai ohara 2025-02-06 15:23:40 -05:00
parent ceb4678179
commit cfbebd9334
25 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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