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

Giving an effect with particles enabled + a finite duration will override an effect with particles disabled permanently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1
    • MacOS
    • Confirmed
    • Commands, Particles
    • Low
    • Platform

      When I give an entity an effect for an infinite amount of time particles disabled, if they get another shorter finite effect, once the shorter effect's duration has passed, the entity will still have particles.

      Steps to Reproduce:

      1. Give an effect with an infinite duration, and particles disabled
        /effect give @p minecraft:regeneration infinite 255 true
        
      2. Give an effect for 1 second, with particles enabled
        /effect give @p minecraft:regeneration 1 255 false
        

      Observed

      The effect with particles enabled will override the previous effect permanently despite the effect only lasting 1 second, resulting in the particles staying after the second effect is expired.

      Expected

      The expected result is that the second effect would be applied for 1 second with particles, then fall back to the previous effect.

        1. Screenshot 2024-09-04 at 4.30.54 PM.png
          30 kB
          RedzyTheZookeep
        2. Screenshot 2024-09-04 at 4.31.19 PM.png
          25 kB
          RedzyTheZookeep
        3. Screenshot 2024-09-04 at 4.31.59 PM.png
          317 kB
          RedzyTheZookeep

            Unassigned Unassigned
            RedzyTheZookeep RedzyTheZookeep
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: