Effect Command Generator

Build an /effect command to give or clear any status effect, for Java or Bedrock.

JavaBedrock
Java command
/effect give @p minecraft:speed 30 0
Speed0:30

See in the dark for a whole build session

Night Vision that never runs out is the effect most builders want first. Here is the command for it:

  1. Leave Java and the newest version picked, or switch to Bedrock if you play on a phone or console.
  2. Pick Night Vision in the list. Set Who gets it to @s so only you get it.
  3. Tick Never runs out (infinite), press Copy and paste the command into chat in a world with cheats on.

Java 1.19.4 and newer, plus recent Bedrock updates, accept the word infinite. Older versions get 999999 seconds instead, which lasts more than 11 real days.

Pick the level, the time and who gets it

  • Level is the number you see next to the effect in your inventory. Level 2 shows as Speed II, and the command writes 1 because effect amplifiers start at zero.
  • Seconds sets how long it lasts. The buttons fill in 30 seconds, 3 minutes, 8 minutes or an hour.
  • Tick Hide the swirling particles when you record videos or take screenshots. The icon still shows in the corner.
  • @a gives the effect to every player and @e to every mob too. On Bedrock, a gamertag with a space gets quotes around it so the command still works.

Instant Health and Instant Damage happen once, so the time does not matter for them. Raise the level to heal or hurt more.

Take effects off again

Press Clear effects to remove the effect you picked and keep the rest. Want to remove them all at once, like drinking a bucket of milk? Tick Clear every effect, not only the one picked below. Older Bedrock versions can only wipe every effect at once, and a yellow note appears when your version has that limit. Want a bottle you can hand to a friend instead? Build one in the Potion Generator, or check survival recipes on the Potion Chart.