Edition comparison
/effect — Java vs Bedrock
Minecraft 1.21.8. Full /effect reference →
Java Edition
Syntax
Alternate forms
Bedrock Edition
Syntax
Alternate forms
Key differences
- Bedrock uses a single-form /effect — no give/clear subcommands. The arguments after the target tell the command what to do.
- Bedrock's clear form is `/effect <target> clear`, not `/effect clear <target>` like Java.
- Bedrock effect IDs match Java exactly (speed, jump_boost, etc.) — the namespace prefix is optional.
- Both editions cap duration at 1,000,000 seconds (~11.5 in-game days). Bedrock additionally rejects negative durations.
Bedrock examples
Copy-pasteable. Run in chat with cheats enabled.
Speed II for 30 seconds. Note: no `give` subcommand.
Remove all status effects from the nearest player.
Give all zombies Strength VI for 999 seconds with hidden particles.
Java examples
For contrast — these are the canonical Java forms.
Give the nearest player Speed III for 60 seconds.
Permanent night vision with hidden particles.
Remove all effects from the nearest player.
Switching between editions — watch out for
- Java's `/effect give @p speed 30 1` becomes Bedrock's `/effect @p speed 30 1` — drop the `give`.
- Bedrock doesn't support `infinite` as a duration. Use the max (1000000) instead.
FAQ
- What's the difference between /effect in Java and Bedrock?
- /effect exists in both editions but the syntax differs — see the "Key differences" section above. The most common gotcha is that Java's component syntax (square brackets after the item ID) doesn't work in Bedrock.
- Why doesn't my Java /effect command work in Bedrock?
- Bedrock has stricter syntax and doesn't support Java's modern component-based item syntax. If you copied a command from a Java tutorial, Bedrock will likely reject it silently or run a partial version. Use the Bedrock examples on this page as templates.
- Does /effect work the same on consoles and mobile?
- Yes — Bedrock Edition is the same codebase on Windows 10, Xbox, PlayStation, Switch, iOS, and Android. The syntax shown here works on every Bedrock platform.