Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by


Uploaded by


Virus scan

Safe to use

Tags for this mod

About this mod

Code C# in the SMAPI console.

Permissions and credits
This mod lets you write and execute C# code from the console.

You can write a short snippet using cs <code>, such as cs Game1.activeClickableMenu = null; or cs return;.

* Note: Snippets with "quotes" don't work in the console due to the SMAPI command argument parser.

Alternatively, you can load a block from a file, like cs --script file and it will load a script from the mod folder. The script must not include imports, public class Xyz, etc. Example script:

foreach ( var item in Game1.player.items )
if ( item == null )
continue; += item.salePrice();
Game1.player.removeItemFromInventory( item );

Visit my Discord server:

Support me on Patreon: spacechase0