Updated:
How to write it
# Java
/effect give @p minecraft:speed 60 1 true
# Bedrock
/effect @p speed 60 1 true
| Part | Meaning |
|---|---|
60 | Duration in seconds; infinite lasts until removed |
1 | Amplifier: 0 is level I, 1 is level II |
true | Hide the particles |
The amplifier is the shown level minus one, so Speed II is 1.
Effect IDs
| Effect | ID | What it does |
|---|---|---|
| Speed | speed | Move faster |
| Slowness | slowness | Move slower |
| Haste | haste | Break blocks faster |
| Mining Fatigue | mining_fatigue | Break blocks slower |
| Strength | strength | More melee damage |
| Instant Health | instant_health | Heal at once (hurts undead) |
| Instant Damage | instant_damage | Damage at once (heals undead) |
| Jump Boost | jump_boost | Jump higher |
| Regeneration | regeneration | Heal over time |
| Resistance | resistance | Take less damage |
| Fire Resistance | fire_resistance | No fire or lava damage |
| Water Breathing | water_breathing | Breathe underwater |
| Invisibility | invisibility | Body hidden (armor still shows) |
| Night Vision | night_vision | See in the dark |
| Blindness | blindness | Very short sight |
| Saturation | saturation | Restores hunger |
| Hunger | hunger | Get hungry faster |
| Poison | poison | Lose health, stops at half a heart |
| Wither | wither | Lose health, can kill |
| Levitation | levitation | Float upward |
| Slow Falling | slow_falling | Fall slowly, no fall damage |
| Glowing | glowing | Outline visible through walls (Java) |
| Darkness | darkness | Vision pulses dark |
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
- Make an effect last forever? Use
infiniteas the duration. On versions without it, use a very large number such as 1000000. - Armor shows while invisible. Invisibility hides only the body; see the invisibility guide.
- Can mobs get effects? Yes, target them with
@e[type=zombie]and similar.
Check your command
The Command Error Doctor checks common syntax mistakes in your browser.