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

Poison/Regeneration effects are applied based on the time remaining, causing them to work incorrectly or not at all when added constantly

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.16.3
    • None
    • None
    • Unconfirmed
    • (Unassigned)

    Description

      When poison or regeneration are added constantly, the damage or health regenerated is not applied properly. This is because these effects are applied based on the time remaining, causing them to be added too fast, or not at all.

      To reproduce, spam poison potions at a mob that's vulnerable to poison, and notice that it takes damage too fast. You can also run the following commands:

      /setblock ~ ~ ~ minecraft:repeating_command_block{auto:1b,Command:"effect give @p minecraft:poison"}
      

      This command will poison you too fast for Poison I.

      /setblock ~ ~ ~ minecraft:repeating_command_block{auto:1b,Command:"effect give @p minecraft:regeneration"}
      

      This command regenerates you way too fast for Regeneration I.

      /setblock ~ ~ ~ minecraft:repeating_command_block{auto:1b,Command:"effect give @p minecraft:poison 1"}
      

      This command applies poison, but you don't take any damage.

      /setblock ~ ~ ~ minecraft:repeating_command_block{auto:1b,Command:"effect give @p minecraft:regeneration 1"}
      

      This command applies regeneration, but you don't regenerate.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gaspoweredpick [Helper] gaspoweredpick
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: