/

/effect

op 2Entities

/effect applies a status effect for a number of seconds. The amplifier is offset by one — amplifier 0 is level I — which is the single most common reason an /effect command does not do what people expect.

Command1 to fix
15
/effect give @e
  • Effect is required.
Press C to copy
All entities
@e

Who or what the command applies to

Effect is required.

optional

Seconds, or "infinite" from 1.19.4 onwards. Defaults to 30.

optional

Amplifier 0 is level I, 1 is level II, and so on

optional

Examples

  • Speed II for a minute
    /effect give @p speed 60 1
  • Permanent night vision
    /effect give @a night_vision infinite 0 true
  • Remove everything
    /effect clear @s

Common questions about /effect

Why is my Strength II command giving Strength III?

The amplifier starts at zero. Level I is amplifier 0, level II is amplifier 1. Passing 2 gives you level III.

How do I make an effect permanent?

From 1.19.4, pass infinite as the duration. On older versions use 1000000 seconds, which is a bit under twelve days and the conventional stand-in.

How do I hide the swirly particles?

Set the hide-particles flag to true. It is the last argument, so the duration and amplifier must both be given as well.