A command that extends a potion effect instead of refreshing it.
/effect extend @p minecraft:speed 30
This would extend an existing Speed effect by 30 seconds, while /effect give would refresh it to 30 seconds. If the entity doesn't have the effect, then it acts as /effect give
Additional arguments [<amplifier>] and [<hideParticles>] would make it so that the command only works if the active effect on the target also has these same arguments.
Please sign in to leave a comment.
1 Comments