Best Item Codes in Stardew Valley

Master Stardew Valley's item codes to instantly spawn rare resources, profitable crops, and game-changing items. Complete guide with codes, uses, and strategic tips.

Home » Guides » Best Item Codes in Stardew Valley
April 15, 2026
11 minutes
20

By Jonny Gamer

Guides

Best Item Codes in Stardew Valley

Stardew Valley’s item code system lets you spawn any item directly into your inventory by naming a chest or character with the item’s numeric code wrapped in brackets — for example, [74] for a Prismatic Shard. The 13 codes below are the most impactful ones in the game, selected by their effect on late-game progression, gold-per-hour farming, and daily quality-of-life. If you’re just here for the table, it’s right below. If you want to know why each one matters — and how to build strategies around them — keep reading.

Quick Reference: Top 13 Item Codes

Every code here has been verified as of the current 1.6 update. To use them, name a chest or your character with the code in brackets during character creation or by visiting the Shrine of Illusions.

Item CodeItem NameCategorySell Price
[74]Prismatic ShardMineral / Progression2,000g
[337]Iridium BarMetal / Crafting1,000g
[434]StardropConsumable / ProgressionCannot be sold
[166]Treasure ChestArtifact / Profit5,000g
[486]Starfruit SeedsCrop / Profit750g (fruit)
[499]Ancient SeedsCrop / Profit550g (fruit)
[645]Iridium SprinklerAutomation / QoL1,000g
[688]Warp Totem: FarmTravel / QoL20g
[724]Maple SyrupArtisan / Gifting200g
[773]Life ElixirConsumable / Combat500g
[182]Large EggAnimal Product95g
[186]Large MilkAnimal Product190g
[434]StardropConsumable / Stat BoostCannot be sold

The categories in that table aren’t arbitrary — they map directly to the sections below. Each group has a different strategic purpose, and the value of each item only makes sense in that context.

Late-Game Progression Codes — Minerals and Metals

Two items define late-game unlocks more than anything else: the Prismatic Shard and Iridium Bars. Both are locked behind grinding systems that can consume dozens of in-game hours, and both are so frequently required that spawning even a small stack changes what’s actually possible on your farm.

Prismatic Shard [74] is the rarest mineral in the game — statistically, it has a 0.4% drop rate from Omni Geodes and appears in Skull Cavern at a similarly low frequency. Its primary use is unlocking the Galaxy Sword, which at 60 base damage is the strongest non-Infinity weapon in standard gameplay. But the Shard also unlocks the Junimo hats, the Prairie King arcade prize, and a permanent dye option for clothing. Under normal conditions, dedicated Skull Cavern runners might not see one for 15–20 in-game days of mining. Spawning it with [74] skips that entirely.

There’s a nuance worth knowing here: the Galaxy Sword unlocks only when you bring the Shard to the three pillars in the Calico Desert. Spawning the item doesn’t auto-unlock the sword — you still need to make the trip. That’s by design, and it means the code isn’t bypassing a puzzle, just the resource grind.

Iridium Bar [337] is downstream from Prismatic Shards in terms of difficulty, but arguably more impactful day-to-day. Each bar requires five Iridium Ore plus one Coal to smelt, and Iridium Ore only appears reliably in Skull Cavern floors 80+. You need Iridium Bars for: upgrading tools to Iridium quality (four bars each), crafting Iridium Sprinklers (one bar each), and building the Slime Hutch (10 bars). That’s a significant resource ask early in a save.

One Iridium Watering Can — which covers a 3×3 area — requires four bars. Spawning those four bars with [337] four times accelerates your crop-watering efficiency by a full season compared to the default upgrade path.

Stardrop [434] sits in its own category. There are exactly seven Stardrops available per save file through normal gameplay, and each one adds 34 points to your maximum energy. Total: 238 extra energy points if you collect them all. Energy caps daily productivity — more energy means more crops watered, more ore mined, more fishing done before passing out. Spawning a Stardrop with [434] gives you that boost on Day 1, which cascades into noticeably higher output throughout Year 1.

Profit Farming Codes — Crops and Artisan Goods

Not all profitable crops are created equal. The gap between a basic Parsnip run and a maxed-out Ancient Fruit Wine operation is roughly 100,000g per season. These three codes are the foundation of high-efficiency gold farming.

Ancient Seeds [499] produce Ancient Fruit, which at base quality sells for 550g per fruit. Processed into wine via a Keg, that value increases to 1,650g per bottle — 3x multiplier, same as all wines. The real advantage of Ancient Fruit is its regrowth cycle: it takes 28 days to mature, then produces one fruit every 7 days indefinitely without replanting. A greenhouse full of Ancient Fruit plants (roughly 116 tiles of growing space) can generate around 190,000g+ per week once fully operational, assuming Iridium quality and the Artisan profession bonus (+40% artisan goods value).

The bottleneck is always the initial seed. Ancient Seeds drop from Ancient Seed artifacts donated to the museum and converted by Gunther, or rarely from fishing treasure chests. By spawning [499] directly, you bypass a process that can delay the Ancient Fruit strategy by an entire year.

Starfruit Seeds [486] are a different beast — high output per season, but not passive. Starfruit takes 13 days to grow and does not regrow, so you’re replanting each cycle. At base quality, one Starfruit sells for 750g; as wine, that becomes 2,250g per bottle, the highest single-item wine value in the game. The Oasis sells Starfruit Seeds for 400g each, but only after unlocking the bus route (30,000g Community Center bundle or Joja membership). Spawning [486] removes that unlock requirement entirely.

Real talk: if you’re choosing between Ancient Seeds and Starfruit Seeds for a long playthrough, Ancient Fruit wins on total return. But for shorter seasonal bursts — or if you want to fill a greenhouse fast — Starfruit is better gold-per-tile in a single season.

Treasure Chests [166] are a separate profit avenue that doesn’t involve farming at all. They sell for 5,000g each with no processing required. Normally, they drop from Artifact Troves, Mystery Boxes, and rarely from fishing. Spawning multiples of [166] is essentially a gold conversion — each chest is 5,000g in your pocket the moment you walk to Pierre’s or the shipping bin.

Quality-of-Life Codes — Automation and Fast Travel

These two items don’t make you richer directly. What they do is give back the most valuable currency in Stardew Valley: time. A single in-game day runs 20 real-world minutes, and anything that reduces the time spent on chores frees that up for the stuff that actually matters — socializing, mining, fishing, exploring the Sewers.

Iridium Sprinklers [645] water a 5×5 area (24 tiles) each morning, automatically. Compare that to the Gold Sprinkler’s 3×3 footprint (8 tiles) or the base Sprinkler’s 1×4 cross pattern (4 tiles). One Iridium Sprinkler does the work of three Gold Sprinklers. To craft one normally, you need one Gold Bar, one Iridium Bar, and one Battery Pack — but the recipe itself requires Farming level 11 via the Farming Mastery system added in 1.6, or reaching level 9 under earlier progression. That’s a late-game unlock by design.

Spawning [645] early means your spring crops are on autopilot from Day 1, which means your mornings open up for foraging, gifting, or just getting to the mines earlier. It’s less dramatic than the Galaxy Sword but genuinely changes how each day plays out.

Warp Totem: Farm [688] teleports you directly to your farm entrance. One use, consumed on activation. Under normal crafting, you need 1 Hardwood, 1 Honey, and 20 Fiber — not expensive, but the recipe unlocks at Foraging level 8. Early in a save, getting caught far from home at 11:50 PM means a costly blackout and a potential item loss penalty. Having a few [688] totems on hand is insurance against that.

The Warp Totem: Beach [688+2 variants] and Warp Totem: Mountains exist too, but Farm is the most universally useful. You always need to get home. You don’t always need to get to the beach.

Animal Products and Consumables — Large Egg, Large Milk, Maple Syrup, Life Elixir

These four codes cover two distinct use cases: artisan processing inputs and combat survival. They’re less flashy than Iridium Bars, but each solves a specific friction point.

Large Egg [182] and Large Milk [186] both produce gold-quality output when processed. Large Eggs go into a Mayonnaise Machine and yield gold-quality mayo (380g per jar vs. 190g for regular). Large Milk pressed through a Cheese Press gives gold-quality Cheese (345g vs. 230g). The quality difference comes from the source input, not a skill bonus — which makes spawning [182] or [186] directly more efficient than waiting for your livestock friendship scores to climb high enough to produce them naturally. High friendship with chickens requires consistent daily petting, feeding, and avoiding penned-up days, which takes real commitment across multiple seasons.

Maple Syrup [724] is worth mentioning because its value is split: it sells for 200g baseline, but its gifting utility is broader. Exactly one villager dislikes it (Maru), and it’s a “liked” gift for most of the town. Beyond gifting, Maple Syrup is a required ingredient in the Loom bundle, the Bee House, and several cooking recipes. Spawning it with [724] removes the seven-to-nine day wait per tap — useful when you’re trying to complete a bundle on a deadline.

Life Elixir [773] fully restores health when consumed. That’s a complete heal, not a percentage — relevant because in Skull Cavern, a bad floor transition or a monster pile-on can drop your health 200+ points in seconds. The crafting recipe requires Bug Meat ×20, Red Mushroom ×1, Purple Mushroom ×1, and Morel ×1, and unlocks at Combat level 2. Carrying two or three [773] spawned Life Elixirs before a deep Skull Cavern run effectively makes the run safer without changing combat mechanics. Think of it as a hard reset button for your HP bar.

How to Use Item Codes in Stardew Valley

The mechanic works through a naming exploit that’s been part of the game for years and remains functional as of the 1.6.9 update. Here’s the exact process:

  1. Open any naming prompt — this works during character creation (your farm name or character name), or in-game via the Shrine of Illusions in the Witch’s Hut (accessible after completing the Dark Talisman quest).
  2. Type the item code in square brackets, like [74] for a Prismatic Shard.
  3. Confirm the name. The item will appear in your inventory.
  4. To spawn multiples, enter the code several times or use a quantity modifier: [74] [74] [74] spawns three Prismatic Shards.

A few things to know before you start:

  • This only works in single-player. Multiplayer sessions don’t support the naming exploit in the same way.
  • Some items, like Stardrops, must still be consumed manually — spawning doesn’t automatically apply the stat boost.
  • Codes are numeric IDs from the game’s internal data files. The list above uses stable IDs that haven’t changed through 1.6.x, but modded versions of the game may assign different IDs to custom items.
  • There’s no achievement penalty or save corruption risk from using item codes — ConcernedApe built the naming system into the base game, not as a cheat engine exploit.

If you’re playing on console (Switch, PS4, Xbox), the naming prompt is accessible through the same character creation screen. The Shrine of Illusions method requires a keyboard on PC for easiest input, but the on-screen keyboard on console works fine too — just slower.

Frequently Asked Questions

Do item codes work in Stardew Valley multiplayer?

No. The naming exploit works in single-player saves only. In multiplayer, the naming prompt doesn’t trigger item spawns for other players, and the Shrine of Illusions method produces inconsistent results depending on the host’s settings.

Can using item codes disable achievements?

No achievements are disabled by spawning items. The game has no internal flag that tracks whether you used item codes, so your Grandpa evaluation, perfection score, and Steam/GOG achievements are all unaffected.

What’s the item code for Gold in Stardew Valley?

Gold (the currency) cannot be directly spawned via item codes. However, Treasure Chests [166] at 5,000g each are the fastest gold-equivalent workaround — ship them or sell them to any vendor.

Are item codes still working in the 1.6 update?

Yes, confirmed as of the 1.6.9 patch released in late 2024. The item ID system was not changed in 1.6, though some new items were added with new IDs not covered in older code lists.

What happens if I spawn a Stardrop but already have maximum energy?

If you’ve already collected all seven Stardrops through normal gameplay, consuming an additional spawned Stardrop has no effect — the energy cap is already reached. Spawning [434] is most valuable early in a save before natural Stardrops are accessible.

    How do you rate Best Item Codes in Stardew Valley ?

    Your email address will not be published. Required fields are marked *