Splash potion

Minecraft Effect Command Generator

Two things trip people up with /effect: the amplifier is one lower than the level shown in game, and the duration is in seconds, not ticks, which is the opposite of potion item data. Set both visually here, use the infinite keyword where the version supports it, and hide the particles when the effect is a game mechanic rather than a visual.

  • Duration in seconds, or infinite on Java 1.19.4+ and current Bedrock
  • Amplifier mapped to the level shown in game, up to 255
  • hideParticles for buffs that should not swirl

Read the matching guide

Example commands

Speed for 30 seconds

/effect give @p minecraft:speed 30 0 false

Duration is in seconds; amplifier 0 is level I.

Strength II for 2 minutes

/effect give @p minecraft:strength 120 1 false

Amplifier 1 shows as level II in game -- the off-by-one that trips most /effect commands.

Invisible buff without particles

/effect give @p minecraft:night_vision 600 0 true

hideParticles keeps mechanic effects from swirling on screen.

FAQ

Why is the amplifier one lower than the effect level?

The amplifier is zero-based: amplifier 0 is level I, amplifier 1 is level II, and so on. So Strength II is amplifier 1. The editor shows the in-game level and writes the correct amplifier for you.

How do I give an infinite effect?

Use the infinite duration option, supported on Java 1.19.4+ and current Bedrock. On older versions there is no infinite keyword, so the generator falls back to the maximum practical duration (1000000 seconds).

Is the /effect duration in ticks or seconds?

Seconds — the opposite of potion item data, which uses ticks. /effect give @p speed 30 1 grants 30 seconds of Speed II. This tick-vs-second mismatch is the most common /effect error.

How do I hide the swirling effect particles?

Enable hideParticles. The effect still applies but shows no ambient swirl, which is what you want for game-mechanic effects like Night Vision or Saturation used behind the scenes.