Updated:

How to write it

# Java
/effect give @p minecraft:speed 60 1 true
# Bedrock
/effect @p speed 60 1 true
PartMeaning
60Duration in seconds; infinite lasts until removed
1Amplifier: 0 is level I, 1 is level II
trueHide the particles

The amplifier is the shown level minus one, so Speed II is 1.

Effect IDs

EffectIDWhat it does
SpeedspeedMove faster
SlownessslownessMove slower
HastehasteBreak blocks faster
Mining Fatiguemining_fatigueBreak blocks slower
StrengthstrengthMore melee damage
Instant Healthinstant_healthHeal at once (hurts undead)
Instant Damageinstant_damageDamage at once (heals undead)
Jump Boostjump_boostJump higher
RegenerationregenerationHeal over time
ResistanceresistanceTake less damage
Fire Resistancefire_resistanceNo fire or lava damage
Water Breathingwater_breathingBreathe underwater
InvisibilityinvisibilityBody hidden (armor still shows)
Night Visionnight_visionSee in the dark
BlindnessblindnessVery short sight
SaturationsaturationRestores hunger
HungerhungerGet hungry faster
PoisonpoisonLose health, stops at half a heart
WitherwitherLose health, can kill
LevitationlevitationFloat upward
Slow Fallingslow_fallingFall slowly, no fall damage
GlowingglowingOutline visible through walls (Java)
DarknessdarknessVision pulses dark

Effects added in 1.21 and later

These effects were added in Java Edition 1.21 or later. Use them like any other ID: /effect give @s ID 30 0.

IDWhat it does
wind_chargedReleases a wind burst on death (1.21)
weavingSpreads cobwebs on death (1.21)
oozingSpawns 2 slimes on death (1.21)
infestedMay spawn silverfish when hurt (1.21)
trial_omenTurns trial chambers into ominous trials (1.21)
raid_omenStarts a raid when you enter a village (split from bad_omen in 1.21)
breath_of_the_nautilusAir does not run out underwater (1.21.11)

Older versions do not know these IDs, so check your game version if the command fails.

Remove effects

# Java
/effect clear @p
/effect clear @p minecraft:poison
# Bedrock
/effect @p clear

The first Java line removes everything; the second only Poison.

Level limits

The amplifier goes up to 255, but very high values can backfire. Extreme Jump Boost causes heavy fall damage on landing. Resistance at amplifier 4 (level V) blocks almost all damage.

Several effects at once

/effect adds one effect per command. Stack several lines, or build them in the effect command generator. To hand out a potion instead, see give potion.

Common questions

Check your command

The Command Error Doctor checks common syntax mistakes in your browser.