OGTOOLS

Minecraft /effect command

Gives status effects like Speed, Night Vision or Poison, or removes them all.

🧍 Player commands Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

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

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
<effect> Effect ID: speed, night_vision, regeneration, poison, jump_boost and so on.
[<seconds>] In seconds. Type infinite and it never ends.
[<amplifier>] 0 is level 1 and 1 is level 2; the higher the number, the stronger the effect.
[<hideParticles>] Type true and no particles appear on screen.

Examples

/effect give @s night_vision infinite 0 true

Gives you infinite Night Vision without particles.

/effect give @s speed 60 2

Gives you Speed level 3 for 60 seconds.

/effect clear @s

Removes every effect on you.

Good to know

  • If the duration is left out, 30 seconds is used.
  • Infinite effects can only be given in 1.19.4 and later.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🧍 More Player commands

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.