mojira.dev
MC-116631

Certain potion effects are applied incorrectly when repeated

The bug

Certain potion effects are applied incorrectly when repeated (e.g. when throwing potions too fast or using a repeating command block).

Examples

(Use a repeating command block to execute this command repeatedly.)

Applying /effect give @p minecraft:poison 34 repeatedly results in no damage taken regardless of the player's current health.
Applying /effect give @p minecraft:poison 30 repeatedly results in taking damage up to twice a second, instead of once every 1.25 seconds.
Applying /effect give @p minecraft:regeneration 30 repeatedly results in healing every time the effect is applied, instead of once every 2.5 seconds.
Applying /effect give @p minecraft:regeneration 31 repeatedly results in no healing actually being applied.

Original description

If I throw a custom potion with poison on myself rapidly (getting the potion in one inventory slot through a command block) I wont get damage until I stop throwing them.

Command for potion:

/replaceitem entity @a[score_kit_min=9,score_kit=9] slot.hotbar.1 minecraft:splash_potion 1 0 {display:{Name:"Some potion with poison",Lore:[CAUTION! LETHAL!]},CustomPotionEffects:[{Id:19,Amplifier:2,Duration:60}],Potion:"minecraft:awkward"}

I tried to upload a video, but it didn't work (even under 10MB File size there was an internal server error but the strange thing is, I can't upload it to youtube either, idk.)

Linked issues

Attachments

Comments 5

Probably because re-applying the effect resets the timer that tracks when to damage you. This also affects regeneration, for example, and is noticeable in beacons: MC-30946.

Should the "effect reset, timer reset" for these types of effects be made into a "generic" report, or should we follow the precedent of MC-30946, i.e. WAI?

Is this still a issue in the latest version of the game(currently 1.13.1)?

If so, please add it to the affected versions, thanks!

Can confirm in 1.17.1.

  • Applying /effect give @s minecraft:poison 34 repeatedly results in no damage taken regardless of the player's current health.

  • Applying /effect give @s minecraft:poison 30 repeatedly results in taking damage up to twice a second, instead of once every 1.25 seconds.

  • Applying /effect give @s minecraft:regeneration 30 repeatedly results in healing every time the effect is applied, instead of once every 2.5 seconds.

  • Applying /effect give @s minecraft:regeneration 31 repeatedly results in no healing actually being applied.

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Another example not involving commands: Wither roses apply damage every tick (actual damage every 10 ticks, due to damage immunity) instead of the expected 2 seconds interval for Wither effect level 1. (Tested on 1.20.1, but likely didn't change in newer versions.)

Janik Schumacher

(Unassigned)

Confirmed

Commands

Minecraft 1.11.2, Minecraft 17w16b, 1.18.1, 22w06a, 1.21.1

Retrieved