-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 1.15.2, 20w12a, 1.16.3, 1.16.4 Pre-release 1, 1.16.5, 21w06a, 21w08b, 1.17, 1.17.1, 21w41a, 1.18.2, 22w18a, 1.19.2, 1.20.1, 1.20.4
-
Confirmed
-
Entities, Sound
The bug
Using a spawn egg with Silent:1b in the EntityTag plays the ambient sound when the mob is spawned.
How to reproduce
/give @s pig_spawn_egg{EntityTag:{Silent:1b}}
→ The pig plays the entity.pig.ambient sound once and only then turns silent
Code analysis
Based on 1.13.1 decompiled using MCPConfig.
The method EntityType.create(World, NBTTagCompound, ITextComponent, EntityPlayer, BlockPos, boolean, boolean) plays the ambient sound before applying the NBT data, which would prevent playing the sound.
- relates to
-
MC-64242 Silent tag is not working for some entities
- Resolved