mojira.dev
MC-57057

Guardian laser attack sound ignores distance

The Bug

When a guardian attacks a player or a squid, the laser attack sound (and subtitle) will play at the same volume, even if the player is hundreds of blocks away.

Steps to Reproduce

  • Enter creative mode and locate a large body of water.

  • Summon both a guardian and squid in the water.

  • When the guardian begins to shoot the squid, quickly teleport yourself 75 blocks up into the sky.

    /tp @s ~ ~75 ~
  • Listen closely and take note as to whether or not the minecraft:entity.guardian.attack sound lowers in volume depending on the distance between you and the guardian.

Observed Behavior

The minecraft:entity.guardian.attack sound doesn't lower in volume depending on the distance between you and the guardian.

Expected Behavior

The minecraft:entity.guardian.attack sound would lower in volume depending on the distance between you and the guardian.

Code analysis

Code analysis by @unknown can be found in this comment.

Related issues

MC-57438 The Guardian`s laser sound is coming somewhere else near than where the target is MC-57441 The Guardian`s laser beam sound doesn`t slowly faint when going away from the mob. MC-94110 Guardian Sound Volume Issue MC-148102 Guardian attack noise constantly playing even when far from ocean temple MC-193311 Guardian Sound Playing MC-208788 Sound not fading away after leaving area MC-209211 Guardian beam sounds still play when your far away completely ignoring the distance MC-212380 Guardian laser attack is heard from far away at full volume MC-230262 Guardian's attack sound plays for anyone within render distance, while the volume doesn't diminish based on Distance. MC-240673 Guardian Laser Sound Range Amplified MC-263846 Sound Bug Report - Electrical Charge Noise at Y-coordinate -58 MC-275065 Guardian laser attack sound ignores distance MC-277352 Weird Nether portal like whoosh sound. MC-277681 Guardian beam attack sound stalls when guardian is unloaded

Attachments

Comments

migrated
[media][media]
ileon

still in 14w26b

migrated

still in 14w27b. In a small lake, spawn a bunch of squid and 1 or 2 guardians. Fly above it in creative mode, and you will hear the guardians even when you are far above them.

ileon

please reopen

migrated

This issue is present in the (as of date) latest snapshot 14w29b. This issue can be experienced by loading the seed 1122334455 where the player spawns on a tiny island surrounded by two Underwater Temples. They are quite a few blocks away, but visible from the island. The Guardian laser-beam sound is extremely loud from anywhere on the island.

If this is intended, it is the most annoying new addition to the game. I'll consider it a bug.

Sonicwave

Still in 14w31a, the sound doesn't decrease in volume when farther away and also frequently clips

migrated

Still 14w32b, this needs reopen.

migrated

Confirmed in 14w34d.

Sonicwave

Confirmed for 1.8-pre2.

Sonicwave

Still in 1.8-pre3.

Sonicwave

Still in Minecraft 1.8.

migrated

I'm experiencing it still in 1.8 too

Sonicwave

Confirmed for 1.8.1-pre2.

migrated

Reopened.

migrated

Confirmed for 1.8.2 pre-3.

kumasasa

Is this still an issue in the current Minecraft Snapshot 15w45b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Can Confirm For 16w02a, very annoying

Sonicwave

Confirmed for 16w06a.

migrated

Confirmed for 1.9 release

Sonicwave

Confirmed for 1.10.2.

migrated

Happening to me on 1.10.2, the sound still plays when I quit to main menu and even when I load a world that is on peaceful difficulty.

migrated

Confirmed in 16w39a and 16w39b

migrated

Confirmed in 16w39c

migrated

Let's just call it feature. Mojang clearly doesn't care about this, it's been here since 2014.

Sonicwave

The title should be changed to something like "Guardian Laser sound plays at same volume regardless of distance" to be more specific

migrated

Confirmed in 16w40a

migrated

Confirmed in 16w41a

migrated

Confirmed in 16w42a

migrated

Confirmed in 16w43a

migrated

Confirmed in 16w44a

migrated

Confirmed in 1.11-pre1

migrated

Confirmed in 1.11

Sonicwave

This bug might be caused by the sound event not having a defined range or one that is too large; the subtitle "Guardian shoots" also appears when the player is far away from the source.

migrated

I've taken a look at the decompiled code (using MCP), and within GuardianSound.java it doesn't look to be taking distance or motion into account at all when it comes to the volume (unlike Minecarts). The only variable is based on the attack time and duration.

GuardianSound.java

float f = this.guardian.getAttackAnimationScale(0.0F);
this.volume = 0.0F + 1.0F * f * f;

EntityGuardian.java

public float getAttackAnimationScale(float p_175477_1_)
{
    return ((float)this.clientSideAttackTime + p_175477_1_) / (float)this.getAttackDuration();
}
migrated

It's funny how I still get Emails about this thing even after 2 years, I didn't know that bug could be such a huge issue to fix 😃

migrated

Confirmed in 16w50a

migrated

Confirmed in 1.11.2

Sonicwave

Confirmed for 17w13a (and 1.12-pre3).

migrated

So, you've basically took my credit for reporting this bug, like I never did? Interesting, isn't it obvious Mojang doesn't care about it. I've already finished college and got a job and this bug still isn't fixed, silly. I hope to see it fixed until my pension, even though I stopped playing Minecraft 2 years ago. Why is it so hard to send me a PM or email and at least ask, instead of just stealing?

wobst.michael

If you can keep updating your report in the future you can have it back, otherwise we need someone else to take care of.

migrated

No, but do you think taking credit is right? Do you think I have time to update this bug on each snapshot release which is a really simple fix until I get retired in real life? I've reported the bug really long time ago and it's on them to fix it, it's not my problem, if they want to do it, they will, but obviously they won't fix this.

wobst.michael

If that's an issue for you I just close this report and re-use one of the duplicates. Then we're both set.

migrated

I don't see what point you are trying to make there, please re-read my last sentence.
I just don't feel it's right to credit someone else while another person originally reported the bug. Without even asking me if I agree with that.

migrated

There is no credit in being the reporter of a bug, your name will not specifically mentioned or anything similar.

You said you stopped playing minecraft 2 years ago; why do you still want the ticket then?

The reporter of the ticket was changed so the ticket will actually be kept up to date, without needing a new comment for every version, this ticket isn't yours, never was, by using the bug tracker you report the issue to mojang, as such it is mojang's ticket, not yours.

Frankly, I don't even see the point in this argument, the ticket needed to be kept up to date, and to make that MUCH easier for all of us, we've changed the reporter to somebody who still plays the game, and has shown interest in the ticket/bug.

migrated

Then how about the "owner" of this ticket to show the interest in it and actually take care of it, it's like 2-3 lines of code fix.

migrated

Confirmed in 18w19b

migrated

Confirmed for 18w22c

Asteraoth

Confirmed for 1.13-pre8

Asteraoth

Confirmed for 1.13

Asteraoth

Confirmed for 18w30b

Asteraoth

Confirmed for 18w31a

Asteraoth

Confirmed for 18w32a

Asteraoth

Confirmed for 18w33a

Asteraoth

Confirmed for 1.13.1-pre1

migrated

Confirmed for 18w44a

migrated

Confirmed for 19w03c

migrated

Confirmed for release 1.14. Once the guardian sounds reach a certain threshold (constant loop), they persist even after I travel thousands of blocks away. Only exiting and re-entering the world seems to clear the sound loop.

migrated

also confirmed for 1.14

migrated

confirmed for 1.14.1

migrated

Still in 1.14.3 Pre-Release 2

migrated

Still in 1.14.4 and 19w35a

migrated

Still in 19w42a

migrated

Still in 19w44a

migrated

Affects 20w11a

migrated

Affects 20w12a

migrated

Affects 20w13b

migrated

Affects 20w15a

Sonicwave

I've changed you to the reporter; in case you didn't want this ticket let me know.

Arisa Bot

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit

Avoma

Can confirm in 20w48a.

migrated

This also affects 20w51a

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w17a.

migrated

Can confirm in 1.17

ampolive

Can confirm in 1.17.1 Pre-release 1.

Avoma

Can confirm in 1.17.1.

Avoma

I am able to confirm this behavior in 21w41a. Here are some extra details regarding this problem.

The Bug:

The minecraft:entity.guardian.attack sound doesn't lower in volume depending on the distance between you and the guardian.

Steps to Reproduce:

  • Enter creative mode and locate a large body of water.

  • Summon both a guardian and squid in the water.

  • When the guardian begins to shoot the squid, quickly teleport yourself 75 blocks up into the sky.

/tp @s ~ ~75 ~
  • Listen closely and take note as to whether or not the minecraft:entity.guardian.attack sound lowers in volume depending on the distance between you and the guardian.

Observed Behavior:

The minecraft:entity.guardian.attack sound doesn't lower in volume depending on the distance between you and the guardian.

Expected Behavior:

The minecraft:entity.guardian.attack sound would lower in volume depending on the distance between you and the guardian.

Avoma

Can confirm in 1.18.

Avoma

Can confirm in 1.18.1.

KirbAvion

Can confirm in 1.18.2 release candidate 1.

Avoma

Can confirm in 1.18.2 and 22w11a.

KirbAvion

In 22w13a.

migrated

can confirm in 1.19 pre-release 3

Avoma

Can confirm in 1.19.2.

windwend

Is this issue related to MC-177741?

Avoma

@unknown, hmm, I'm not too sure but I see where you're coming from. The wither spawning sound is considered a global sound event, therefore allowing it to be heard by all players regardless of the dimensions that they're in, or how far away from the sound origin point they are. This is why I think MC-177741 is in fact intentional. On the other hand, guardian sounds are not considered global sound events and instead just don't decrease in volume in regards to how far away you are from the sound origin point.

migrated

Сan confirm in 23w44a. Also work with elder guardian.

migrated

1.20.2 12/13/23 verified still an issue

MonksTheMonkey

Can confirm in 1.21.3. Creeped me out.

Tehdasalue

Version 1.21.1 still bugging with this. Going crazy 😄

migrated

(Unassigned)

Confirmed

Gameplay

Important

Sound

guardian, sound

Minecraft 14w25a, Minecraft 14w32b, Minecraft 14w34d, Minecraft 1.8-pre2, Minecraft 1.8, ..., 24w35a, 24w36a, 24w39a, 1.21.3, 24w45a

Minecraft 14w26a

Retrieved