mojira.dev
MC-62103

Status effects misbehave with faster clocks

Placed repeat command blocks with the commands
/effect @p regeneration 1 <0-4>

This causes the regeneration effect to be visually applied with particles and a flickering health bar, however it does not heal the player.

How to reproduce:
-In a minecraft 1.9 world, place a repeat command block and enter the above command, replacing "<0-4>" with a number from 0 to 4.

-type "/gamerule naturalRegeneration false"

-Apply damage to yourself in survival mode

  • Notice the particles and movement on the health bar, but lack of health regen.

-Effects that fail to work include: Wither, Nausea, Regeneration, Health Boost, etc...

Linked issues

Comments 11

This happen when you try to apply the regeneration effect many times in a short time

Regeneration works when I give myself the effect (/effect @p 10 10 2), but the same command in a command block it isn't giving the added Regen, my hearts only naturally regenerate. This is a problem, and I hope the awesome people at Mojang and Microsoft can fix this soon. 🙂

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

I have tested again in 1.8.1 with exactly the same situation above and It's seems to work.
Now I get healed when I stand near that NPC. The problem was that the regeneration effect was too weak, as Mlakuss says, the effect's repeated quickly and then, the effect's reset every times.
If you set a regeneration II, It'll works perfectly.

I tested that theory only on 1.8.1, but not on 14w28b, when I encountered that issue, because of a lack of time.

Command Blocker --> Your issue is resolved in 1.8.1 😛

While the OP's workaround is functional, I would like to point out that this is a bug. As late as 15w46a this bug continues to prevent fast clocks (repeat command blocks) from applying regeneration or health boost without resetting 20 times per second. For example, health boost empties the hearts when it's applied and regeneration, even for long durations, doesn't add additional regeneration speed. Please re-open this.

1 more comments

Applying regeneration 0-4 via a repeat command block with
"/effect @p regeneration 30 <0-4>"
does not do more than visually apply the effect.

@@unknown: You can edit the description yourself now, please update it for 15w46a 🙂

I can confirm for 15w49b.

I'm not sure if this was already understood; but I think the regen part of this bug is caused by Minecraft using how long the effect has left rather than how long you have had the effect to determine when to give the player a 1/2 heart.
/effect @a minecraft:regeneration 5 will give you a 1/2 heart when you run it, while /effect @a minecraft:regeneration 6 will wait until you have 5 seconds of the effect left to do so.

I am also encountering this issue on the 1.9.4 version.

AlterazGohg

Thomas Hall

Erik Broes

Community Consensus

Minecraft 14w28b, Minecraft 14w29b, Minecraft 1.8.8, Minecraft 15w46a, Minecraft 15w47c, Minecraft 15w49b, Minecraft 1.9.4

Minecraft 1.8.1

Retrieved