-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 15w51b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w11a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, 19w34a, 19w39a, 19w45b, 1.15 Pre-release 1, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13b, 20w15a, 20w18a, 20w21a, 20w22a, 1.16 Pre-release 4, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w20a, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w39a, 21w40a, 21w42a, 21w43a, 1.18 Pre-release 1, 1.18 Pre-release 5, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 1, 1.18.1, 22w05a, 1.18.2, 22w13a, 22w18a, 22w19a, 1.19, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2 Release Candidate 1, 1.19.2, 22w42a, 1.19.3 Release Candidate 1, 1.19.3, 23w04a, 23w06a, 1.19.4 Release Candidate 1, 1.19.4 Release Candidate 3, 1.19.4, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1 Release Candidate 1, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 2, 1.20.2 Release Candidate 1, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43b, 23w44a, 23w45a, 23w46a, 1.20.3 Pre-Release 2, 1.20.3 Release Candidate 1, 1.20.4, 23w51b, 24w03b, 24w04a, 24w05b, 24w06a, 24w07a, 24w09a, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 3, 1.20.5 Release Candidate 2, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w21b, 1.21 Pre-Release 2, 1.21 Pre-Release 4, 1.21, 24w33a, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 1.21.2 Pre-Release 3, 24w44a, 1.21.3, 1.21.4
-
Confirmed
-
Sound
-
Low
-
Gameplay
The Bug
The minecraft:entity.enderman.teleport sound plays at the position the enderman teleports to, which is not the case in 1.8.9, where it also plays at position it teleported from.
Steps to Reproduce
- Place down a bucket of water and obtain some enderman spawn eggs.
- Summon some endermen in the water by using the spawn eggs and listen closely as you do this.
Observed Behavior
The minecraft:entity.enderman.teleport sound ("Enderman teleports") plays at the position the enderman teleports to.
Expected Behavior
The minecraft:entity.enderman.teleport sound would play at the position the enderman teleports from.
Videos demonstrating the issue
16w03a: https://www.youtube.com/watch?v=m1SPOTMgFGA
1.8.9: https://www.youtube.com/watch?v=W6bX58WABH4
Code Analysis
By TriWonder81 using MCP Reborn 1.16.5 mappings
At net.minecraft.entity.monster.EndermanEntity.teleportTo() the game simply only tries to play the sound after the enderman teleports:
if (flag && !flag1) { boolean flag2 = this.attemptTeleport(x, y, z, true); if (flag2 && !this.isSilent()) { this.world.playSound((PlayerEntity)null, this.prevPosX, this.prevPosY, this.prevPosZ, SoundEvents.ENTITY_ENDERMAN_TELEPORT, this.getSoundCategory(), 1.0F, 1.0F); this.playSound(SoundEvents.ENTITY_ENDERMAN_TELEPORT, 1.0F, 1.0F); } return flag2; }
Which could be fixed by duplicating the if statement above the teleport attempt as well
if (flag && !flag1) { if (!this.isSilent()) { this.world.playSound((PlayerEntity)null, this.prevPosX, this.prevPosY, this.prevPosZ, SoundEvents.ENTITY_ENDERMAN_TELEPORT, this.getSoundCategory(), 1.0F, 1.0F); this.playSound(SoundEvents.ENTITY_ENDERMAN_TELEPORT, 1.0F, 1.0F); } boolean flag2 = this.attemptTeleport(x, y, z, true); if (flag2 && !this.isSilent()) { this.world.playSound((PlayerEntity)null, this.prevPosX, this.prevPosY, this.prevPosZ, SoundEvents.ENTITY_ENDERMAN_TELEPORT, this.getSoundCategory(), 1.0F, 1.0F); this.playSound(SoundEvents.ENTITY_ENDERMAN_TELEPORT, 1.0F, 1.0F); } return flag2; }
- is duplicated by
-
MC-96008 Enderman silent / no subtitle teleport
- Resolved
-
MC-132973 Endermen point A's teleportation sound is not played correctly
- Resolved
-
MC-133281 Endermens dom't do the teleport sound every time
- Resolved
-
MC-136111 endermens don't make teleport sounds evry time.
- Resolved
-
MC-200317 Enderman does not play the teleport sound when in a minecart
- Resolved
- relates to
-
MC-220295 When teleporting via ender pearls, the damage taken sound doesn't play at the location the player is teleported to
- Open
-
MC-219293 When teleporting via Chorus Fruit, the burping and teleporting sounds play at the wrong location
- Resolved
-
MC-3866 Endermen, Tamed Wolves and Ocelots cannot teleport when in a Minecart
- Resolved