Want to test out the endgame weapons early? Are you tired of grinding for rare crafting materials, or perhaps you accidentally sold a critical quest item and now your playthrough is soft-locked? Whether you are trying to reconstruct your massive farm after a corrupted save file, or you simply want to experience the sheer joy of sandbox freedom, knowing the correct item spawn codes is an absolute game-changer.
Using developer commands to spawn items is a beloved staple of PC gaming freedom. Since its launch, Stardew Valley has fostered a massive modding community and a legendary culture around in-game exploits. The most famous of these is the “Naming Glitch,” alongside the powerful SMAPI console commands. By utilizing specific numerical sequences enclosed in brackets, or by typing direct engine commands, you can manifest any object in the game directly into your inventory.
Below is the most curated, categorized list of essential Stardew Valley Item IDs and spawn codes, verified for the latest patches including the massive 1.6 framework updates. We have filtered out the useless junk to bring you the top 50 most powerful and necessary codes to elevate your farming, mining, and monster-slaying experience.
You may also like: The Ultimate Stardew Valley Cheat Engine Guide (And A Much Easier Alternative)
1. Quick Reference: Top 10 Most Wanted IDs
If you don’t want to scroll through thousands of rows of crop seeds and basic furniture, here are the exact spawn codes for the most essential items in the game. These are the highly sought-after artifacts, legendary consumables, and top-tier crafting materials that players spend hundreds of hours grinding for in the Skull Cavern.
Whether you are using the famous animal naming exploit (e.g., naming a chicken [74][434][279]) or using the SMAPI console, these numbers are the universal keys to unlimited wealth and power in Stardew Valley.
2. How to Enable the Console & Use Spawn Commands
Before you can use the ID codes listed below, you must understand the correct syntax and the two primary methods for spawning items in Stardew Valley.
Method 1: The Vanilla Naming Exploit
Stardew Valley has a famous, built-in exploit that does not require mods. Whenever an NPC says your name, or the name of an animal, the game reads the text. If your name contains an Item ID wrapped in brackets, the game will spawn that item in your inventory. For example, go to Marnie’s Ranch and purchase a chicken. Name the chicken [74][166][279]. When Marnie says, “I will send little [74][166][279] to her new home,” you will instantly receive a Prismatic Shard, a Treasure Chest, and a Magic Rock Candy.
Method 2: The SMAPI Developer Console
For true console commands, you must install SMAPI (Stardew Modding API). Once installed, launching Stardew Valley will open a secondary black command prompt window alongside the game. This is your developer console. To spawn an item, click into the SMAPI console window and type the following syntax: player_additem [ID] [Quantity]
For example, to spawn 999 Mega Bombs (Item ID 288), you would type exactly: player_additem 288 999 and press Enter.
Expert Warning: “Typing long hex codes is fine if you only need to do it once. But if you are building a massive base or experimenting with builds, manually typing case-sensitive codes becomes incredibly repetitive. One wrong character results in a game crash or a corrupted inventory slot. I personally switched to a visual UI injector months ago.” — Catherine Hu, Senior Modding Specialist at XMODhub
【Download Stardew Valley Trainer Now】
3. The Easy Way: XMODhub Visual Spawner
Stop Alt-Tabbing to check massive spreadsheets. Typing long, case-sensitive ID codes breaks your immersion, wastes time, and risks corrupting your carefully curated save file if you input a deprecated code from an older patch.
The XMODhub PC Client includes a dedicated “Visual Item Spawner” feature specifically built for Stardew Valley. It completely bypasses the need for SMAPI text commands and the clunky animal naming exploit.
4. Weapon IDs List (Melee & Ranged)
Combat in the deeper levels of the mines can be brutal if you are relying on early-game rusty swords. While standard object IDs work flawlessly with the naming glitch, spawning weapons via the SMAPI console requires a specific prefix in modern updates, or using the specific weapon database.
Below is the curated list of the top 15 most devastating weapons in Stardew Valley. If using SMAPI, you typically use player_addweapon [ID].
5. Armor & Clothing IDs List
In Stardew Valley, your “Armor” is entirely dictated by the Boots you wear and the Rings you equip. Stacking the right combination of rings at the Volcano Forge is the key to becoming an unstoppable juggernaut in the Skull Cavern.
Here are the top 10 most essential wearable items. Note: Rings are treated as standard objects and can be spawned using player_additem [ID].
6. Ammo & Consumables IDs List
Managing your stamina, health, and explosive inventory is the core loop of Stardew Valley’s dungeon crawling. Never run out of supplies during a deep dive again.
Here are the top 15 most useful consumables, crafting materials, and utility items to keep your inventory stacked. Use player_additem [ID] [Quantity] to spawn stacks of these.
7. Stardew Valley 1.6 Exclusive Item IDs (Books & Mastery)
The massive 1.6 update revolutionized Stardew Valley’s progression system by introducing Skill Books, Mastery items, and unique consumables. If you are starting a new farm and want to accelerate your leveling process or unlock advanced perks without the massive time sink, spawning these new utility items is a game-changer. Note: For 1.6 items, using the string-based namespace format via SMAPI is often required.
8. Museum Artifacts & Rare Quest Items
Completing Gunther’s Museum collection or finishing the Community Center bundles can be agonizing if the RNG is not in your favor. Missing a single prehistoric bone or a rare seasonal fish can delay your perfection tracker by an entire in-game year. Use these specific Stardew Valley item ids to bypass the grind, claim your Stardrop reward, and finish those lingering quests.
9. Troubleshooting: Why Are My Commands Failing?
If you are typing the Stardew Valley Item IDs correctly but the game is throwing errors, crashing, or simply doing nothing, check these common technical issues specific to the game’s engine and modding framework:
(O)74 (Object 74). If player_additem 74 fails, try using the updated SMAPI syntax or updating your SMAPI client to the latest version which automatically translates legacy IDs.player_additem 74 1, NOT player_additem [74] [1]. Brackets are ONLY used for the vanilla animal naming glitch.10. Frequently Asked Questions (FAQ)
A: When using the vanilla naming glitch (e.g., [74]), there is no case sensitivity because you are using numbers. However, when typing SMAPI commands like player_additem, the command itself is strictly case-sensitive. You must use lowercase for the command prefix. If you are using the newer 1.6 string IDs like (O)PrismaticShard, exact capitalization is absolutely mandatory, otherwise the C# engine will fail to parse the string.
A: No. These commands are executed client-side and only function reliably in Single-Player. Attempting to force spawn items via SMAPI in a multiplayer server where you are not the host will likely result in severe desync issues, corrupted inventory slots, or an immediate server kick. If you are the host, you can spawn items, but it may cause visual glitches for your farmhands.
A: Finding dynamic load-order IDs manually is extremely difficult because they change every time you add or remove a mod. We highly recommend using the XMODhub Item Browser, which automatically scans your active mods, bypasses the dynamic ID generation, and lets you spawn custom modded weapons with a single click.
A: Yes. The [ID] naming glitch was patched out of the Nintendo Switch, PlayStation, and Xbox versions of Stardew Valley to prevent game crashes. However, ConcernedApe intentionally left the exploit active in the PC (Steam/GOG) versions of the game because he respects the freedom of PC players.
Conclusion: The Ultimate Sandbox Experience
Having access to the complete Stardew Valley Item IDs list is the fastest way to experiment with different character builds, design the ultimate aesthetic farm, or recover from a frustrating game bug that deleted your favorite sword. Bookmark this page so you can quickly reference the codes whenever you visit Marnie to buy a new animal, or whenever you boot up your SMAPI console.
However, if you want a significantly smoother, crash-free experience where you don’t need to memorize strings of code, worry about 1.6 namespace changes, or type tedious commands, the XMODhub Visual Spawner is the superior modern choice. It brings the power of developer tools directly into a beautiful, user-friendly interface.

I am a passionate gamer and writer at XMODhub, dedicated to bringing you the latest gaming news, tips, and insights.
Connect with me:
LinkedIn Profile ↗





