Darkness is a harmful (negative) status effect in Minecraft Java Edition 1.21.
Namespaced effect IDminecraft:darkness
Darkness Effect Facts
CategoryHarmful
Legacy ID (1.12.2)Not in 1.12.2
/effect Command for Darkness
Give Darkness II for 60 seconds (Java Edition 1.13+; duration in seconds, then amplifier where 0 = level I):
/effect give @p minecraft:darkness 60 1
Remove the effect from the nearest player:
/effect clear @p minecraft:darkness
Darkness Effect FAQ
What is the effect ID for Darkness?
The effect ID for Darkness is minecraft:darkness. Java Edition 1.13+ /effect commands use this namespaced form.
How do I give myself the Darkness effect?
Run /effect give @p minecraft:darkness 60 1 to get Darkness II for 60 seconds. The first number is the duration in seconds; the second is the amplifier (0 = level I, 1 = level II). Remove it with /effect clear @p minecraft:darkness.
Is Darkness a positive or negative effect?
Darkness is a harmful (negative) status effect in Minecraft Java Edition, based on its registry category (harmful).