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

Incorrect effect duration in /effect give

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.6, 1.21 Pre-Release 4
    • None
    • OS - Windows 10.0 Home
      Java version - 21.0.3
    • Unconfirmed
    • (Unassigned)

      When runing /effect give <player> <effect> <duration>, the <duration> is either an amount of seconds or infinite, however when the effect is either instant damage, instant health or saturation, instead of the effect lasting said amount of seconds, it only lasts 1/20th of that amount (possibly because the game is applying the effect for <duration> ticks instead of <duration> seconds).

       

      Steps to reproduce:

      1. Create a new world with commands enabled
      2. Run /effect give @s <effect> 1000 where <effect> is one of the 3 mentioned above.
      3. Open your inventory to check the effect's duration.

      Expected behaviour:

       - The effect given in step 2 should last 1000 seconds (or about 16 mins 40 seconds)

      Observed behaviour:

       - Instead, the effect is only lasting 50 seconds, yet if its any other effect, it lasts the intended 16 mins 40 seconds.

            Unassigned Unassigned
            Movies22 Movies22
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: