PlayersJavaBedrock

/effect

Manages status effects (Speed, Strength, Poison, etc.) on entities. The give subcommand applies an effect; the clear subcommand removes one or all.

What is /effect used for?

What /effect is for

Grants or clears status (potion) effects on entities, with control over duration, amplifier, and whether the swirling particles show.

When to use /effect

Give yourself permanent night vision or speed, build buffs stronger than any brewable potion, debuff mobs, or heal and harm instantly with instant_health and instant_damage.

Tips for /effect

Use 'infinite' as the duration (1.19.4+) for effects that never expire, set the final argument to true to hide particles, and run /effect clear @s to strip every effect at once.

Syntax

Alternate forms:

Parameters

targets
entity selector
Which entities receive the effect.
effect
effect ID
Namespaced ID, e.g. minecraft:speed.
secondsoptional
integer
Duration in seconds. Use 'infinite' in 1.19.4+ for permanent.
amplifieroptional
integer
Level − 1. 0 = level I, 1 = level II, etc.
hideParticlesoptional
boolean
true to hide the swirl particles.

/effect command generator

Configure the options below to generate a ready-to-paste /effect command.

Infinite overrides this.
0 = level I, 1 = level II, …

Examples

  • Give the nearest player Speed III for 60 seconds.

  • Permanent night vision with hidden particles.

  • Remove all effects from the nearest player.

Common questions

How do I give myself permanent night vision?

Run /effect give @s night_vision infinite (1.19.4+), or use a long duration like 999999 on older versions. Add true at the end to hide the particles.

How do I remove a potion effect with a command?

Use /effect clear to remove everything, or /effect clear @s <effect> to remove just one — for example /effect clear @s poison.

Permission level

/effect requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.