Effect Command Generator — /effect give & clear (Java Edition)
Run these from an operator’s chat, a command block, or the server console. Rotate, Swing and Display Entity use newer command/entity features — check they’re available on your Minecraft version.
How to Use the Effect Command Generator
- Enter a target selector or player name, defaulting to
@p(nearest player). - Pick a status effect, such as
minecraft:speed, from the suggestion list. - Set the duration in seconds and the effect’s level – level 1 is the effect’s base strength (amplifier 0), level 2 doubles it (amplifier 1), and so on.
- Check Hide Particles if you don’t want the swirling particle cloud around the target.
- Copy the generated
/effect givecommand, or the paired/effect clearcommand if you want to remove that effect early.
Command Syntax Reference
/effect give <target> <effect> [seconds] [amplifier] [hideParticles] /effect clear <target> [effect]
The command line itself uses amplifier, not level – amplifier 0 is what players call “level 1” or “level I”, amplifier 1 is “level 2”, and so on. This generator’s Level field already does that conversion for you, so entering 2 in the Level box produces amplifier 1 in the actual command.
Duration is in whole seconds (not ticks), and most effects cap out around 1,000,000 seconds when set via command – instant effects like Instant Health and Instant Damage ignore duration entirely and apply once. The optional trailing true argument suppresses the particle spray, which is useful for effects applied invisibly through redstone contraptions or adventure maps. /effect clear without an effect name removes every active effect from the target; naming one effect removes only that effect.
Frequently Asked Questions
What’s the difference between amplifier and level?
“Level” is the player-facing number shown in the effects HUD and potion names (Strength II, Speed III). “Amplifier” is the raw number the game and commands actually store, and it’s always one less than the level – Strength II is amplifier 1. This generator’s Level input handles the conversion automatically.
Can I give an effect indefinitely, with no timer?
Not with a literal “infinite” argument – the closest options are setting a very large duration (the effective cap is 1,000,000 seconds, roughly 11.5 days) or re-applying the effect on a repeating command block / function so it never actually expires. Beacons and conduits use a separate, always-refreshed mechanic rather than a single long /effect command.
Do negative effects like Poison or Wither work the same way?
Yes – harmful effects use the exact same /effect give syntax as beneficial ones; the only difference is which effect ID and how the game displays it (a red-tinted icon and, in some versions, a screen vignette for particularly punishing ones like Wither or Poison at high amplifiers).
Why doesn’t Hide Particles remove the effect icon from my HUD?
The hide-particles flag only suppresses the swirling particles around the entity in the world – the effect icon in the inventory/HUD effects list still shows normally, since that’s how players (including the affected one) can tell an effect is active at all.
Related Tools
- Attribute Command Generator – permanently change an entity’s base stats instead of a timed status effect.
- Damage Command Generator – deal instant damage rather than applying a damage-over-time effect.
- Summon Command Generator – spawn a mob to test effects against.