The item ID for Weeds in Stardew Valley is:0
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 [0]. You will then receive the Weeds 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 [0]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 Weeds item.
Weeds are wild plants which are spawned randomly and may spread if not cleared. Weeds have a 50% chance to drop 1 Fiber when cut with a Scythe, Axe, Pickaxe, Hoe, or Sword, or blown up by a bomb. If a weed does not drop fiber, there is a 5% chance it will drop Mixed Seeds[1].
There's also a 0.001% chance to find a Living Hat when cutting weeds.
Any weeds above ground disappear in Winter.