@@ -90,11 +90,13 @@ public static void placeRandomRift(ServerLevel world, boolean temporary, Vec3 ce
9090 public static void doRiftSpawnEffect (Level world , BlockPos pos , @ Nullable ResourceKey <Level > target ) {
9191 if (world .isClientSide ()) {
9292 ClientHelper .addRiftExplosionParticles (Vec3 .atCenterOf (pos ), target );
93+ world .playLocalSound (pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .END_GATEWAY_SPAWN , SoundSource .BLOCKS , 10 , 0.7f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f , false );
94+ world .playLocalSound (pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .GLASS_BREAK , SoundSource .BLOCKS , 6 , 0.8f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f , false );
9395 } else {
9496 Multiverse .CHANNEL .send (PacketDistributor .TRACKING_CHUNK .with (() -> world .getChunkAt (pos )), new RiftExplosionParticlesPacket (Vec3 .atCenterOf (pos ), target ));
97+ world .playSound (null , pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .END_GATEWAY_SPAWN , SoundSource .BLOCKS , 10 , 0.7f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f );
98+ world .playSound (null , pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .GLASS_BREAK , SoundSource .BLOCKS , 6 , 0.8f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f );
9599 }
96- world .playSound (null , pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .END_GATEWAY_SPAWN , SoundSource .BLOCKS , 10 , 0.7f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f );
97- world .playSound (null , pos .getX () + 0.5 , pos .getY () + 0.5 , pos .getZ () + 0.5 , SoundEvents .GLASS_BREAK , SoundSource .BLOCKS , 6 , 0.8f + (world .random .nextFloat () - world .random .nextFloat ()) * 0.14f );
98100 }
99101
100102 public static void destroyRift (Level world , BlockPos pos ) {
0 commit comments