The item ID for Ectoplasm in Stardew Valley is:875
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 [875]. You will then receive the Ectoplasm 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 [875]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 Ectoplasm item.

| Item ID | 875 |
Ectoplasm is an item which is required for the special order "A Curious Substance". It has a 9.5% chance to be dropped by Ghosts, Carbon Ghosts, and Putrid Ghosts while the quest is active.
One Ectoplasm must be given to the Wizard to complete the quest, and any not given will disappear once the order is complete or expired.