Minecraft /effect command

Java EditionBedrock EditionSince 1.5 (13w09b)

Quick answer: Applies or removes status effects like speed, strength or regeneration. Syntax: /effect give <target> <effect> [seconds] [amplifier] [hideParticles]

/effect give applies a potion-style status effect to players or mobs, with a duration in seconds and an amplifier (level minus one). /effect clear removes effects. Infinite duration is supported in modern Java with the keyword infinite.

Syntax

EditionSyntax
Java/effect give <target> <effect> [seconds] [amplifier] [hideParticles]
Bedrock/effect <player: target> <effect: Effect> [seconds: int] [amplifier: int] [hideParticles: Boolean]

Targets / arguments: give or clear, an entity target, an effect ID. Requires: Cheats enabled / operator level 2.

Examples

/effect give @s minecraft:speed 60 1

Give yourself Speed II for 60 seconds

/effect give @p minecraft:regeneration infinite

Permanent regeneration on the nearest player (Java)

/effect clear @a minecraft:poison

Cure everyone of poison

Tips

Related commands

/summon/attribute/damage