Skip to main content

/effect

Gives or removes status effects from entities. Effects include potion effects like speed, strength, invisibility, etc.

Category
Player
Permission Level
Game Master
Version Added
1.0

Syntax

/effect <give|clear> <targets> [<effect>] [<seconds>] [<amplifier>] [<hideParticles>]

Parameters

NameTypeRequiredDescription
actionliteralRequiredWhether to give or clear effects.
targetsentityRequiredThe entity or entities to affect.
effectresourceOptionalThe status effect ID (e.g., speed, strength, invisibility). Required for give.
secondsintegerOptionalDuration in seconds (1-1000000). Use infinite for unlimited duration. Defaults to 30.
amplifierintegerOptionalEffect level (0-255). 0 is level I. Defaults to 0.
hideParticlesbooleanOptionalWhether to hide the particle effect. Defaults to false.

Examples

/effect give @s speed 600 1 true

Gives yourself Speed II for 10 minutes with hidden particles.

/effect clear @a

Removes all status effects from every player.

/effect give @a night_vision infinite 0

Gives all players permanent Night Vision I.

Common Mistakes

Notes

Since 1.19.4, you can use 'infinite' as the duration for effects that never expire. The maximum amplifier is 255 but most effects have no visible benefit past a certain level.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting