Skip to content

Enshrouded 1.0 is out! 🎉 Get 25% OFF your next Enshrouded Server today!

Game guidesMinecraft

Use the /effect command and status effects

Give or clear status effects with /effect: duration, level, infinite effects, hidden particles, useful effect IDs and fixes for common errors.

Updated 3 min read

The effect command gives a player or a mob a status effect, such as Speed or Night Vision, or takes effects away. You control the effect, how long it lasts and how strong it is. It is useful for adventure maps, builder helpers, minigame rewards and rescuing a player from a bad potion.

Checked against Minecraft Java Edition 26.3, October 2026. The syntax below is the Java Edition one, which is what your server runs.

Run the command

Open the Console tab and type the command with no leading slash. In game, an operator types it with a slash. Whitelist players and set operators shows how to make someone an operator.

The command has two forms:

effect give <targets> <effect> [<seconds>] [<amplifier>] [<hideParticles>]
effect clear [<targets>] [<effect>]
  • targets is a player name, or a selector such as @a for every player. A named player has to be online.
  • effect is the effect's ID, such as speed or minecraft:speed.
  • seconds is how long it lasts. If you leave it off, the default is 30 seconds. The most you can set is 1,000,000.
  • amplifier is the level, counted from 0. So 0 is level I, 1 is level II and 2 is level III. The range is 0 to 255, and the default is 0.
  • hideParticles is true or false. With true the swirling particles and the HUD icon are hidden. The default is false.

Examples

Speed II for 60 seconds on one player:

effect give Alex minecraft:speed 60 1

Night Vision that never runs out, with the particles hidden, for everyone online:

effect give @a minecraft:night_vision infinite 0 true

Use the word infinite in place of the seconds for an effect that does not expire. It shows as an infinity symbol in the player's effect list.

Remove only Speed from one player, then remove every effect from everyone:

effect clear Alex minecraft:speed
effect clear @a

Effect IDs worth knowing

IDWhat it does
speedIncreases movement speed on land
hasteIncreases mining and attack speed
strengthIncreases melee damage
jump_boostIncreases jump height and reduces fall damage
regenerationRestores health over time
resistanceReduces damage taken
fire_resistanceStops fire and lava damage
water_breathingPrevents drowning
night_visionLets the player see well in darkness and underwater
invisibilityMakes the player invisible, though not held items or armour
slow_fallingSlows falling and negates fall damage
absorptionAdds temporary health that absorbs damage
saturationRestores hunger and saturation
instant_healthHeals living things and damages the undead

The game lists more, including negative ones such as slowness, weakness, poison and levitation.

How effects stack

If the target already has the same effect, a new one only takes hold if it is stronger or lasts longer. When it does not, the command replies that it was unable to apply the effect because the target is either immune or has something stronger. Clear the old effect first if you want to replace a strong one with a weaker one.

For the instant effects instant_health, instant_damage and saturation, the number you give is read in game ticks rather than seconds. A tick is a twentieth of a second.

If it does not work

  • "No player was found". The player has to be online, and the name must be spelled exactly.
  • The effect does not apply. The target is immune, or already has a stronger version, as described above.
  • "Can't find element". The effect ID is misspelled. IDs use underscores, such as jump_boost, and no spaces.

Was this guide helpful?

Still stuck?

Talk to a real person, we answer fast.

  • Open a ticket

    Paste the exact error and name your server, so we can look at it from our side.

  • Ask on Discord

    Chat with the team and other server owners.

  • Browse the Help Centre

    Versions, mods, plugins, backups and RAM sizing, all in plain English.

Ready to launch your Minecraft server?

Aussie hardware, NVMe disks and DDoS protection, with the version and mod loader yours to change whenever you like.