Players

/effect

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

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.

Command builder

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

Infinite overrides this.
0 = level I, 1 = level II, …
/effect give @p minecraft:speed 30

Examples

  • Give the nearest player Speed III for 60 seconds.

  • Permanent night vision with hidden particles.

  • Remove all effects from the nearest player.

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.