Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-92106

ThrownPotion not using particles from CustomPotionEffects tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w42a
    • Minecraft 15w44b, Minecraft 15w45a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a
    • Confirmed

      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.

      Used command
      /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.

        1. 2016-01-28_22.00.22.png
          2016-01-28_22.00.22.png
          398 kB
        2. 2016-01-28_22.00.56.png
          2016-01-28_22.00.56.png
          140 kB
        3. 2016-01-28_22.01.24.png
          2016-01-28_22.01.24.png
          560 kB
        4. 2016-01-28_22.01.54.png
          2016-01-28_22.01.54.png
          148 kB

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: