Darkness Effect Command
Copy the /effect command for Darkness in Minecraft Java 26.2 and Bedrock 26.32. Default, infinite-duration, amplifier variants, and the clear command are all below.
Infinite duration (Java)
Java
/effect give @p minecraft:darkness infiniteThe infinite keyword was added in Java 1.19.4. Use the legacy form below for older versions.
Max-duration / legacy (Java)
Java
/effect give @p minecraft:darkness 1000000 0Bedrock
/effect @p darkness 9999 0Clear Darkness
Java
/effect clear @p minecraft:darknessBedrock
/effect @p darkness 0To clear all effects at once: /effect clear @p
What Darkness does in-game
Periodically pulses your vision dark, similar to Blindness. Inflicted by the Warden.
Frequently asked questions
- What does Darkness do in Minecraft?
- Periodically pulses your vision dark, similar to Blindness. Inflicted by the Warden.
- How long does Darkness last with the infinite command?
- On Java Edition, the 'infinite' keyword makes the effect last until you manually clear it with /effect clear. On Bedrock, the maximum you can specify is 1,000,000 ticks (about 13.8 hours).
- Does the Darkness command work in Bedrock Edition?
- Yes — use the Bedrock command shown above. Bedrock syntax omits the 'give' subcommand and 'minecraft:' namespace prefix, and does not support the 'infinite' keyword.