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

Tipped arrow, splash and lingering potions are not displaying ambient particles correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w44b, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 16w15b, Minecraft 1.10.2, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w15a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Tipped arrows, splash and lingering potions show the particles of potions defined in the CustomPotionEffects tag, however they always display them as if the potion would have the tag Ambient set to 0b.

      I expected it to use the same method to display the particles which is also used for players and mobs, making ambient particles more brighter.

      Used command
      /give @p tipped_arrow{CustomPotionEffects:[{Id:12,Duration:1200,Ambient:1b,Amplifier:1}]}
      

      The reason (tipped_arrow)

      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 is happening is because the method net.minecraft.entity.projectile.EntityTippedArrow.func_184556_b(int) is ignoring whether or not ambient effects are used. The method that does this is net.minecraft.entity.EntityLivingBase.func_184593_a(Collection<PotionEffect>) which should be probably moved to the net.minecraft.potion.PotionUtils class.

      Note: For the other affected entities it is similar.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                4 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: