← Back to Command Directory ← Back to Home

/effect

Applies or clears status effects.

Syntax

/effect give   [seconds] [amplifier] [hideParticles]
/effect clear [target]

Parameters

NameRequiredDescription
targetYes*Entity to apply or clear effects from.
effectYes*Status effect identifier.
secondsNoDuration in seconds.
amplifierNoEffect level (0 = level I).
hideParticlesNoHide effect particles (true/false).

Examples

/effect give @p speed 10 1
/effect clear @a

Notes

Version Differences

Effect identifiers can differ across editions.

Related Commands