Updated:

Bad Luck: effect ID and commands

The effect ID for Bad Luck is minecraft:unluck. Lowers the quality of loot from fishing and some loot tables in Java Edition. The ID has been the same since Java 1.13.

Basic data

NameBad Luck
ID (Java Edition)minecraft:unluck
TypeHarmful effect
Java versionsJava 1.13 to 26.3
Bedrock 26.52This ID is not accepted as is

Commands you can copy

Java Edition

Apply for 30 seconds

/effect give @p minecraft:unluck 30 0

Apply level II for 60 seconds

/effect give @p minecraft:unluck 60 1

Apply with particles hidden

/effect give @p minecraft:unluck 60 0 true

Apply with no time limit (Java 1.19.4+)

/effect give @p minecraft:unluck infinite 0 true

Remove only this effect

/effect clear @p minecraft:unluck

Bedrock Edition

Bedrock does not accept this ID. Check the Bedrock form with the Java / Bedrock converter.

Version notes

This ID has not changed from Java 1.13 to the latest 26.3.

Java Edition writes /effect give; Bedrock writes /effect without give. infinite in place of seconds works in Java 1.19.4 and later.

Questions

What is the ID for Bad Luck?

It is minecraft:unluck. In commands you can also write unluck without minecraft:.

How do I set the level?

The number after the seconds is the strength: 0 is level I, 1 is level II, up to 255.

How do I hide the particles?

Add true at the end of the command to hide the particles.

Related IDs