Permanent night vision, no particles
/effect give @s minecraft:night_vision infinite 0 trueGives you Night Vision with no time limit and no particles around you.

/effect gives status effects such as Speed or Night Vision to players and mobs, or removes them. You choose the duration, the level and whether particles show. It is the standard way to buff players, build challenges or calm down a mob for a test.
/effect clear [<targets> [<effect>]]/effect give <targets> <effect> [infinite|<seconds>]/effect clear/effect clear [<targets> [<effect>]]| Argument | Expects | What it does |
|---|---|---|
| targetsoptional | Entity selectorone or several | Players or mobs affected: @s, @a, @p or @e[type=minecraft:zombie]. For clear, defaults to you. |
| effectoptional | ID · mob_effect | Effect ID such as minecraft:speed or minecraft:night_vision. For clear, omit it to remove every effect. |
/effect give/effect give <targets> <effect> [infinite|<seconds>]| Argument | Expects | What it does |
|---|---|---|
| targets | Entity selectorone or several | Players or mobs affected: @s, @a, @p or @e[type=minecraft:zombie]. For clear, defaults to you. |
| effect | ID · mob_effect | Effect ID such as minecraft:speed or minecraft:night_vision. For clear, omit it to remove every effect. |
| amplifieroptional | Whole number0 to 255 | Effect strength from 0 to 255, where 0 is level I and 1 is level II. |
| hideParticlesoptional | true / false | true hides the swirling particles around the target, false keeps them. |
| secondsoptional | Whole number1 to 1,000,000 | Duration in seconds, from 1 to 1,000,000. Use infinite instead for no limit; 30 seconds if omitted. |
/effect give @s minecraft:night_vision infinite 0 trueGives you Night Vision with no time limit and no particles around you.
/effect give @a minecraft:speed 60 1Every player gets Speed II for 60 seconds.
/effect give @e[type=minecraft:zombie,distance=..20] minecraft:glowing 30Zombies within 20 blocks glow through walls for 30 seconds.
/effect give @s minecraft:resistance infinite 4 trueAt level V, Resistance blocks almost every kind of damage, handy while testing traps.
/effect clear @sClears every active effect, good or bad, like drinking milk.
/effect clear @a minecraft:poisonRemoves only Poison from all players and keeps their other effects.
Fill in the fields, copy the command, paste it in the chat. Syntax checked against Java Edition 26.3.
Turn on JavaScript to use the interactive version.
/effect give @p night_vision 600 0 trueCalculated from the Java Edition 26.3 game files
absorptionunluckbad_omenblindnessbreath_of_the_nautilusconduit_powerdarknessdolphins_gracefire_resistanceglowinghastehealth_boosthero_of_the_villagehungerinfestedinstant_damageinstant_healthinvisibilityjump_boostlevitationluckmining_fatiguenauseanight_visionoozingpoisonraid_omenregenerationresistancesaturationslow_fallingslownessspeedstrengthtrial_omenwater_breathingweaknessweavingwind_chargedwitherThe duration is in seconds, up to 1,000,000, or infinite. Without a duration, the effect lasts 30 seconds. The amplifier starts at 0: 0 is level I, 1 is level II, and so on up to 255. Set hideParticles to true for a clean screen, for example with Night Vision while building.
Instant Health and Instant Damage, the effects of the Potion of Healing and the Potion of Harming, apply once, so their duration does not matter. On undead mobs such as the Zombie they work the other way round: Instant Health hurts them. The effect list on this page gives every ID; Glowing, for instance, outlines a mob through walls.
/effect clear without an effect removes all of them, like a Milk Bucket in Survival. Two messages are common: "Target has no effects to remove" when there is nothing to remove, and "Unable to apply this effect (target is either immune to effects, or has something stronger)". For lasting stat changes without an effect icon, use /attribute.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
Use infinite instead of a number of seconds, for example /effect give @s minecraft:night_vision infinite. It stays until cleared or until death.
The amplifier starts at 0. Use 0 for level I, 1 for level II, 2 for level III.
Type it in the chat with cheats on: /effect clear [<targets> [<effect>]].
Cheats on, or operator level 2.