1. Welcome to the official Starbound Mod repository, Guest! Not sure how to install your mods? Check out the installation guide or check out the modding help thread for more guides.
    Outdated Mods have been moved to their own category! If you update your mod please let a moderator know so we can move it back to the active section.
    Dismiss Notice

Console Code 1.0.2

Run C# code in the SMAPI console

  1. spacechase0
    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 Game1.player.money;.

    * 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.cs 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 )

    Game1.player.money += item.salePrice();
    Game1.player.removeItemFromInventory( item );
    Mod Pack Permissions:
    Anyone can use this mod in their mod compilation without the author's consent.
    Mod Assets Permissions:
    Anyone can alter/redistribute the mod's assets without the author's consent.

Recent Updates

  1. SDV 1.4, Mac/Linux support
  2. SMAPI 3.0 update