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

Arrows with CustomPotionEffects do not reduce their duration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.2, 22w14a
    • None
    • Unconfirmed
    • (Unassigned)

      After an arrow hurts an entity, the primary Potion duration is divided by 8 whereas the extra CustomPotionEffects are applied without reducing their duration (though the item lore on a tipped arrow displays the reduced duration correctly)

      Either that or the applied duration should be unaffected and the displayed duration is reduced when it shouldn't

      Reproduction steps:

      • Run /give @s tipped_arrow{CustomPotionEffects:[ {Id:1b,Duration:3600,Amplifier:0b}

        ]}

      • When hovering over the item it shows a duration of 22 seconds (3,600 ticks / 20 t/s / 8 = 22.5s)
      • When getting hit by the arrow when thrown, the applied duration is of 3 minutes (3,600 ticks / 20t/s = 180s)

        1. applied-effect.png
          applied-effect.png
          9 kB
        2. give-cmd.png
          give-cmd.png
          59 kB
        3. item-tooltip.png
          item-tooltip.png
          18 kB

            Unassigned Unassigned
            Fefo6644 Emilia Lopez
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: