The item ID for Truffle in Stardew Valley is:430
This cheat works on PC, XBOX One, PS4 and the Nintendo Switch.
Item spawning in Stardew Valley isn't accomplished through typical commands. Instead, it involves a cheat method where you name your character, or an animal, with the item code of the desired item, enclosed in square brackets [ and ]. Include the brackets when naming.
To spawn this item, buy an animal (we recommend a chicken because it is the cheapest) from Marnie's Ranch, name it [430]. You will then receive the Truffle item.
Since you can only set your character's name once at the game's inception, we advise using the animal naming method.
However, if you opt for this method, name your character [430]while creating your save file. When you converse with any villager who mentions your name in their dialogue, like Gus at the Stardrop Saloon, you'll receive the Truffle item.

| Item ID | 430 |
| Sell Price | 625 |
The Truffle is a type of mushroom that can only be spawned by a Pig on The Farm when the pig is outside the Barn. Since pigs do not go out of the barn in winter, they spawn no truffles in that season. Truffles sell for a base price of 625g.
Despite being spawned by pigs, truffles are not considered to be animal products, like eggs or milk. They do not receive a price increase from the Rancher profession.
Despite being mushrooms, Truffles technically are also not considered to be foraged items, but give Foraging XP when picked up on the farm. They are not among the items included in the foraging category at the Stardew Valley Fair, nor are they labeled as "Forage" in inventory. They do, however, benefit from the Gatherer and Botanist professions.
Truffles not gathered on the 28th day of a season disappear on the following morning, the 1st day of the new season.
On rare occasions, a Truffle can be purchased from the Traveling Cart for 1,875–3,125g.