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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 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, 20w21a, 1.16.4, 20w51a, 21w05a, 21w05b, 24w38a
    • Confirmed
    • Commands, Particles

      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[potion_contents={custom_effects:[{id:fire_resistance,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.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            9 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: