Luck

Luck is a status effect that makes it more likely to receive better loot from certain loot tables, contrary to Bad Luck.

Effect
Adds 1 × level to attribute, making loot table entries with a high   score more likely, and entries with negative   less likely. It also increases the chances of  occurring. Currently, only fishing uses. The new weight of each entry is. Negative levels decrease luck.

Using a fishing rod enchanted with Luck of the Sea increases a player's  attribute, but doesn't actually grant the Luck status effect.

Immune mobs
While no mobs, except bosses, are immune to Luck, only players are actually affected.

Trivia

 * Contrary to real-life superstition, a rabbit's foot has no effect on luck in the game.
 * Bedrock Edition has unused textures for Luck potions, despite the fact that Luck is not present in said edition.