ThrownPotion not using particles from CustomPotionEffects tag
The bug
When a splash or lingering potion with the CustomPotionEffects tag hits the ground and bursts, it will only show the particles of the potion defined by the Potion tag.
This is pretty inconsistent as for example tipped arrows show the particles of the effects provided in the CustomPotionEffects tag.
/give @p lingering_potion 1 0 {CustomPotionEffects:[{Id:12,Duration:1200,Ambient:1b,Amplifier:1}],Potion:"minecraft:water"}
The reason
The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.
The reason why this happens is because the method net.minecraft.client.renderer.RenderGlobal.playAuxSFX(EntityPlayer, int, BlockPos, int) only passes a data value. This is currently used to represent the id of a default potion. As MC-45749 shows this method might be outdated.
2015-11-04, 10:55 PM
2017-04-30, 05:18 PM
2016-10-28, 04:09 PM
5
4