Stardew Valley features several cryptic interactions involving mermaids, often rewarding players with rare items like Pearls or Golden Walnuts. Most players searching for a "mermaid code" are looking for the specific sequence to trigger the shell musical box during the Night Market or the flute block arrangement on Ginger Island. Understanding these mechanics requires a grasp of both timing and specific item interactions.

The Night Market Mermaid Show Shell Code

The Night Market is a three-day festival occurring every Winter from the 15th to the 17th. While the docks host various merchants and a deep-sea submarine, the Mermaid Boat at the far right of the docks offers a unique hidden reward.

Accessing the Show

The Mermaid Boat is open from 5:00 PM to 12:30 AM during the festival. Inside, a mermaid performs a musical and visual show that lasts approximately 1 hour and 40 minutes in game time. While the performance is atmospheric, players do not need to watch the entire sequence to interact with the puzzle, though the interactive shells only become active after the curtains close and the performance concludes.

The Sequence: 1-5-4-2-3

To earn the secret reward, players must interact with the five clam shells situated at the base of the stage. These shells function like musical keys, each producing a different note. The correct sequence is derived from Secret Note #15, which explicitly states: "Mermaid Show: 1-5-4-2-3."

To execute this correctly:

  1. Number the shells from left to right as 1, 2, 3, 4, and 5.
  2. Click shell 1 (far left).
  3. Click shell 5 (far right).
  4. Click shell 4.
  5. Click shell 2.
  6. Click shell 3 (center).

If done correctly, the mermaid will wave, and a Pearl will be added to the inventory. It is important to note that this Pearl can only be obtained once per save file through this specific method. While players can return to watch the show on subsequent nights or in following years, the shells will not produce another Pearl.

Strategic Utility of the Pearl

The Pearl is a rare item with a static sell price of 2,500g, but selling it is often considered the least efficient use. It is a "Universally Loved" gift, making it an excellent tool for boosting friendship with any NPC. Furthermore, the Pearl is required for high-end tailoring. Using a Pearl with cloth in the Sewing Machine creates the Bridal Veil, a unique cosmetic headpiece. In late-game scenarios, certain Fish Pond requests (specifically from Blobfish) may also require a Pearl to increase the pond's capacity.

The Ginger Island Mermaid Flute Block Puzzle

For players who have progressed to Ginger Island, a second mermaid puzzle exists on the southeast shore (Pirate Cove area). This puzzle is significantly more complex than the Night Market version and requires specific weather conditions and crafted items.

Requirements for the Puzzle

This mermaid only appears on Ginger Island during rainy days. She will be seen sitting on a large rock just off the shoreline. If it is sunny, the rock will be empty, and the puzzle cannot be completed. To solve this, players must have five Flute Blocks in their inventory. The recipe for a Flute Block is obtained from Robin after reaching a 6-heart friendship level with her.

Placement and Tuning

Upon arriving at the shore on a rainy day, players will notice a series of stones on the sand that look like musical notes. These stones provide the "code" for tuning the Flute Blocks. In Stardew Valley’s musical logic, a small stone represents a single note (1), and a large stone represents five notes (5).

From left to right, the stone piles indicate the following numbers:

  • Pile 1: 2 (two small stones)
  • Pile 2: 11 (two large stones, one small stone)
  • Pile 3: 9 (one large stone, four small stones)
  • Pile 4: 5 (one large stone)
  • Pile 5: 7 (one large stone, two small stones)

These numbers correspond to the number of times a player must "tune" or click the Flute Block after placing it. However, there is a common point of confusion: the default state of a placed Flute Block is already at "0" or the first note. To reach the desired note, players should click the blocks the following number of times:

  1. First Block: 2 clicks
  2. Second Block: 11 clicks
  3. Third Block: 9 clicks
  4. Fourth Block: 5 clicks
  5. Fifth Block: 7 clicks

Activating the Reward

Once the blocks are placed and tuned in a horizontal line, the player simply needs to run past them from left to right. As the player moves, the blocks will trigger in sequence, playing the mermaid's melody. If the tune matches her song, the mermaid will smile, wave, and toss five Golden Walnuts to the player.

Like the Night Market Pearl, this reward is a one-time event. However, the Flute Blocks can be picked back up and reused for decoration or other musical arrangements on the farm.

Understanding the Mermaid’s Pendant

While not a "code" in the sense of a puzzle sequence, the Mermaid’s Pendant is a critical mermaid-related item. It is the only item used to propose marriage to one of the town's eligible bachelors or bachelorettes.

How to Acquire the Pendant

The Pendant cannot be crafted or found in chests. It must be purchased from the Old Mariner, a ghostly NPC who appears on the beach only on rainy days. He stands on the eastern side of the beach, across the bridge that requires 300 wood to repair.

The Old Mariner will only sell the Pendant for 5,000g if the following conditions are met:

  1. The player has a 10-heart friendship level with a marriage candidate.
  2. The player has already given that candidate a Bouquet (purchased from Pierre’s).
  3. The farmhouse has been upgraded at least once (to include the kitchen).

In Winter, since it does not rain naturally in Pelican Town, the Old Mariner will not appear unless a Rain Totem is used to force a rainy day. This is a vital strategy for players wishing to marry before the start of a new in-game year.

Technical Codes: Item ID and Spawning

For players on platforms that allow for name-based item spawning (primarily PC and older mobile versions), the "mermaid code" may refer to the internal item ID used for cheats. The item ID for the Mermaid’s Pendant is 460, and the item ID for a Pearl is 797.

Using the Name Cheat

By naming a character or a newly purchased farm animal with the ID in square brackets, players can trigger an item spawn whenever that name is mentioned in dialogue or at the moment of purchase. For example, naming a chicken "[797]" will immediately place a Pearl into the player's inventory when Marnie finishes the transaction.

It is worth noting that ConcernedApe has patched or restricted this behavior in various versions of the game (especially on consoles like Nintendo Switch and PS4/5) to maintain game stability and intended progression. On PC, this remains a functional, albeit immersion-breaking, way to acquire these rare mermaid items without performing the associated puzzles or meetings.

Troubleshooting and Common Mistakes

If the mermaid codes do not seem to work, the issue usually stems from a few specific mechanical errors:

  • Night Market Timing: If you click the shells while the mermaid is still singing or before the curtains have fully closed after the show, the code will not register. Wait for total silence and a static stage.
  • Flute Block Miscounts: When tuning Flute Blocks for the Ginger Island puzzle, a stray click can ruin the sequence. If you lose count, it is best to pick the block up with a pickaxe and replace it to reset the note to zero.
  • Rain Requirements: The Ginger Island mermaid is sensitive to weather. Using a Rain Totem on the island will guarantee her appearance the following day, but she will not appear during storms (lightning) on the mainland if the island weather remains clear.
  • Version Differences: In the 1.6 update, some interaction hitboxes were refined. Ensure you are standing directly in front of the shell or block you intend to trigger to avoid accidental double-clicks.

The Lore of Mermaids in Pelican Town

The inclusion of mermaids adds to the magical realism of Stardew Valley. Unlike the Dwarves or Shadow People, mermaids do not have a formal friendship system or a language to decode (unless you count the musical puzzles). They represent the mystery of the ocean, linked to the Moonlight Jellies and the deep-sea creatures found in the submarine ride. Solving their codes is less about "beating" a level and more about harmonizing with the environment—literally, in the case of the Flute Blocks.

By mastering the 1-5-4-2-3 shell sequence and the 2-11-9-5-7 flute tuning, players can secure some of the most valuable early and mid-game treasures available, ensuring a smoother path toward full completion of the Museum collection and the Perfection tracker.