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

Custom potions & tipped arrows show incorrect duration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w38a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w16a, Minecraft 1.13-pre2, Minecraft 1.13, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w03b, Minecraft 19w03c
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When you are giving a player a potion or tipped arrow with custom effects, it shows the duration incorrectly; for example, if we use this command:

      /give @p minecraft:tipped_arrow{CustomPotionEffects:[{Id:15,Amplifier:0,Duration:60}]} 
      

      It doesn't show 3 seconds at all. However if you were to do

      /give @p minecraft:tipped_arrow{CustomPotionEffects:[{Id:15,Amplifier:0,Duration:600}]}
      

      It shows 3 seconds

      Video: https://youtu.be/c7bxWXvj-1o

      Code analysis

      Code analysis by [Mod] Marcono1234 can be found in this comment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Cyclops_Gamer Logical_Cyclops
              • Votes:
                20 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: