Changes

→‎Relationships: note that you should run `debug houseUpgrade` with `debug marry` if needed
Line 1: Line 1:  
←[[Modding:Index|Index]]
 
←[[Modding:Index|Index]]
   −
<div style="border: 1px solid red; background: #FCC; padding: 1em;">'''Warning: These commands are intended for testing and troubleshooting rather than general playing. Some have permanent side effects and may cause crashes or other problems.'''</div>
+
{{note box|type=warning|text=<span style="font-size: larger;">'''Console commands aren't meant for general use. Be very careful using them.'''</span>
 +
<br />They can have permanent side-effects on your save data, break your save, or have other unintended effects. If you don't understand the command, don't use it on a save you care about.'''
 +
}}
   −
Stardew Valley has hundreds of hidden debug commands which the developers use to test the game, documented on this page.
+
SMAPI provides access to hundreds of console commands with a wide variety of effects, ranging from useful tools to cheats to specialized test commands. These are documented on this page.
   −
==Entering debug commands==
+
{{TOC}}
===Individual commands===
  −
To enter debug commands, you must install SMAPI (and not delete its bundled Console Commands mod). You can also install the {{nexus mod|2092|Chat Commands}} mod to use debug commands through the in-game chat (trying without it will either silently fail, or show the response ''ConcernedApe: Nice try...'').
     −
Once that's done, you can type commands directly into the SMAPI console window (or chat if using Chat Commands). All of them should be prefaced with <code>debug </code> like this:
+
==Format used on this page==
<pre>
+
To avoid repeating text, this page uses a few conventions to convey common information:
debug where Robin
  −
> Robin is at Farm, 21,4
  −
</pre>
     −
The example above returned output, but many commands don't. If there's no output, SMAPI will say ''Sent debug command to the game, but there was no output''.
+
* Required parameters are listed in angle brackets, and optional parameters are listed in square brackets. For example, <code>speed</code> {{t|I:value}} {{o|I:duration}} means the command requires an integer value parameter and has an optional integer duration parameter. Details such as default values should be listed in the description.
 +
* The command names are case-insensitive, but their parameters might be case-sensitive.
 +
* If a command description says that a parameter uses "fuzzy" match, that means that it can match on a case-insensitive partial name. For example, <code>abi</code> would match Abigail if it's fuzzy.
   −
===Macros===
+
==Console commands==
Multiple commands can be executed at once using the <tt>[[#runmacro|runmacro]]</tt> command:
+
===How to enter console commands===
# Create a text file in the [[Modding:Player Guide/Getting Started#Find your game folder|game folder]] (with a <tt>.txt</tt> extension).
+
You must have the Console Commands mod installed to use the commands listed below. That mod is bundled with SMAPI; if you deleted it, just [[Modding:Player Guide/Getting Started|reinstall SMAPI]] to get the mod back.
# Type commands in this file, one command per line. Each command should start with a slash character (<tt>/</tt>), but should not include <code>debug </code>.
  −
# To run the macro, type <code>debug runmacro &lt;filename&gt;</code> in the SMAPI console, replacing <tt>&lt;filename&gt;</tt> with the name of your command file without the <tt>.txt</tt> extension.
     −
For example, let's say you have a <code>quickstart.txt</code> file with these commands:
+
You can enter console commands directly into the SMAPI console window (or into the in-game chat if you have {{nexus mod|2092|Chat Commands}} too). You can type <code>help</code> to get a list of console commands (including commands added by other mods).
<pre>
  −
/backpack 12
  −
/Money 10000
  −
/levelup 0 1
  −
/weapon 5
  −
</pre>
     −
Entering <code>debug runmacro quickstart</code> in the SMAPI console will execute all the commands, resulting in a backpack upgrade, money set to 10000g, farming skill set to level 1, and a [[Bone Sword]] added to the player's inventory. (Note: <tt>Money</tt> is capitalized in this example because if it is all lowercase it triggers a [[Secrets#Chat|special chat response]] instead of executing the command.)
+
===Items & money===
 
  −
==Commands==
  −
All known commands are listed below. Required parameters are listed in angle brackets and optional parameters are listed in square brackets. For example, the speed command is listed as <code>speed</code> {{t|I:value}} {{o|I:duration}}, which means the command requires an integer value parameter and optionally has another integer duration parameter. Details such as default values should be listed in the description.
  −
 
  −
The commands themselves are case-insensitive, but parameters may still be case-sensitive. If the description mentions that a parameter uses a "fuzzy" match, that means that it can match on a case-insensitive partial name. For example, any of the following 3 commands will set the player's [[friendship]] with [[Abigail]] to 500 points (2 hearts):
  −
* <code>friend Abigail 500</code>
  −
* <code>friend abi 500</code>
  −
* <code>friend gail 500</code>
  −
 
  −
Many of the commands which accept an NPC name can also accept <tt>farmer</tt> to reference the player instead.
  −
 
  −
===Items and inventory===
  −
====General item search and spawning====
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 52: Line 30:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = bigitem,big,bi,b
+
   |command = list_items
   |params  = {{t|I:itemID}}
+
   |params  = {{o|S:search text}}
   |desc    = Adds the specified craftable to your inventory. See [[Modding:Big Craftables data|Big Craftables data]] for a list of base game IDs.
+
   |desc    = Shows a list of every item in the game (including those added by mods). The optional search text limits results to those which have all of the search words somewhere in their ID + type + name.
   |example = <code>debug bigitem 12</code> would give you a [[keg]].
+
 
 +
   |example =
 +
<pre>
 +
> list_items iridium
 +
 
 +
                name |                    id
 +
-------------------- | ---------------------
 +
  Iridium Fireplace |              (F)1796
 +
      Iridium Krobus |              (F)2396
 +
        Iridium Pan |      (H)IridiumPanHat
 +
        Iridium Band |                (O)527
 +
        Iridium Bar |                (O)337
 +
...
 +
</pre>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = createdebris,mainmenu
+
   |command = player_add name
   |params  = {{t|I:itemID}}
+
   |params  = {{t|S:item name}}, {{o|I:count}}, {{o|I:quality}}
   |desc    = Spawns the specified object at your position. See [[Modding:Object data|Object data]] for a list of base game IDs. The object will initially be laying on the ground and will be picked up if you have room once the game regains focus.
+
   |desc    = Adds an item to your inventory based on its name.
   |example = <code>debug createdebris 24</code> would spawn a [[parsnip]].
+
 
  <!-- As odd as it seems, the above alias is correct. There may have been a different "mainmenu" command at one time, but currently it is equivalent to createdebris. -->
+
Parameters:
 +
* {{t|S:item name}} is the default or translated item name to spawn.
 +
* {{o|I:count}} is how many items to add to your inventory (defaults to 1).
 +
* {{o|I:quality}} is the quality of the item to create (defaults to normal). This can be one of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or 4 (<samp>iridium</samp>).
 +
   |example = <code>player_add name "Galaxy Sword"</code> will create a Galaxy Sword.; <code>player_add name "Stir Fry" 10 4</code> will create 10 iridium-quality [[Stir Fry|stir fry]] dishes.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   | command = everythingshop
+
   |command = player_add
   | desc    = Opens a shop menu containing a furniture [[catalogue]], all objects, all craftables, and all weapons. All items are free.
+
  |params  = {{t|I:item ID}}, {{o|I:count}}, {{o|I:quality}}
 +
   |desc    = Adds an item to your inventory based on its item ID.
 +
 
 +
Parameters:
 +
* {{t|I:item ID}} is the unique ID for the item to add (as shown by the <samp>list_items</samp> command).
 +
* {{o|I:count}} is how many items to add to your inventory (defaults to 1).
 +
* {{o|I:quality}} is the quality of the item to create (defaults to normal). This can be one of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or 4 (<samp>iridium</samp>).
 +
  |example = <code>player_add (O)246</code> will create a [[Wheat Flour|wheat flour]] item.;<code>player_add (O)128 10 4</code> would create 10 iridium-quality [[pufferfish]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = furniture,ff
+
   |command = player_setmoney
   |params  = {{o|I:itemID}}
+
   |params  = {{t|I:amount}}
   |desc    = Adds the specified piece of furniture to your inventory. See [[Modding:Furniture data|Furniture data]] for a list of base game IDs. If the itemID is not supplied, a random piece of furniture (ID 0 - 1612) will be given.
+
   |desc    = Changes the player's total money to the given amount of gold.
   |example = <code>debug furniture 704</code> would give you an [[Oak Dresser]].
+
   |example = <code>player_setmoney 5000</code> will change your total money to 5000g.
 
}}
 
}}
 +
|}
 +
 +
===Player===
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = fuzzyitemnamed,fin,f
+
   |command = player_changecolor
   |params  = {{t|S:itemName}},{{o|I:amount}},{{o|I:quality}}
+
   |params  = {{t|S:feature}}, {{t|S:color}}
   |desc    = Adds the specified item to your inventory. This is a fuzzy search and the game will look through objects, craftables, furniture, weapons, boots, hats, and clothes to match it. There is no reliable way to use names with spaces or differentiate items with the same name, so not all items can be accessed with this command. The optional parameters are for stack amount (defaults is 1) and quality (default is 0.)
+
   |desc    = Sets a color for your character's sprite.
   |example = <code>debug fuzzyitemnamed sturg 5 4</code> would give you a stack of five Iridium-quality [[Sturgeon]].; <code>debug fin galaxy</code> would give you a [[Galaxy Sword]].; <code>debug f grief</code> would give you a [[Shirts|"Good Grief" Shirt]].
+
 
 +
Parameters:
 +
* {{t|S:feature}} is one of <samp>hair</samp>, <samp>eyes</samp>, or <samp>pants</samp>.
 +
* {{t|S:color}} is an RGB color, specified as three comma-separated channels from 0 (no color) to 255 (max color).
 +
 
 +
   |example = <code>player_changecolor eyes 255,0,0</code> would make your character's eyes red.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = getindex
+
   |command = player_changestyle
   |params  = {{t|S:itemName}}
+
   |params  = {{t|S:target}}, {{t|I:style ID}}
   |desc    = Outputs the parent sheet index (i.e. ID) of the specified item to the SMAPI console. This is a fuzzy search with similar behavior to the <code>fuzzyitemnamed</code> command. Weapons, Boots, and Hats are recognized but will not return the correct ID.
+
   |desc    = Sets a style for your character's sprite.
  |example = <code>debug getindex prisma</code> would output ''Prismatic Shard's index is 74''.;<code>debug getindex grief</code> would output ''"Good Grief" Shirt's index is 1008''.
+
 
 +
Parameters:
 +
* {{t|S:target}} is the part of the player's style to change. This is one of <samp>hair</samp>, <samp>shirt</samp>, <samp>skin</samp>, <samp>acc</samp> (accessory), <samp>shoe</samp>, <samp>swim</samp> (whether the player is wearing a swim suit), or <samp>gender</samp>.
 +
* {{t|I:style ID}} is the integer ID for the style to use. For <samp>swim</samp>, this can be <samp>0</samp> (not in a swim suit) or <samp>1</samp> (in a swim suit). For <samp>gender</samp>, this can be <samp>0</samp> (male) or <samp>1</samp> (female).
 +
 
 +
  |example = <code>player_setstyle swim 1</code> would change the player into their swim suit.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = item,i
+
   |command = player_sethealth
   |params  = {{t|I:itemID}},{{o|I:amount}},{{o|I:quality}}
+
   |params  = {{t|I:amount}}
   |desc    = Adds the specified object to your inventory. Despite the generic name, this accepts object IDs only. The optional parameters are for stack amount (default is 1) and quality (default is 0.)
+
   |desc    = Sets the player's current [[health]].
   |example = <code>debug item 74</code> would give you a [[Prismatic Shard]].
+
   |example = <code>player_sethealth 200</code> would give you 200 health points.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = itemnamed,in
+
   |command = player_setimmunity
   |params  = {{t|S:itemName}},{{o|I:amount}},{{o|I:quality}}
+
   |params  = {{t|I:amount}}
   |desc    = Adds the specified object to your inventory. Accepts only object names; this is not a fuzzy match but is case-insensitive. Punctuation should be included, but all spaces should be removed from the name (see examples below). If the requested name is not unique, all matching objects will be added. The optional parameters are for stack amount (default is 1) and quality (default is 0.)
+
   |desc    = Sets the player's total [[immunity]]. This is permanent and is affected by immunity buffs. For example, if you set immunity 10 while [[Genie Shoes]] (+6 immunity) are equipped, removing the shoes would set your immunity to 4 (10 - 6). You can reset immunity to normal by removing everything that improves immunity, then entering <code>player_setimmunity 0</code>.
  |example = <code>debug itemnamed miner'streat</code> would give you [[Miner's Treat]].;<code>debug in strangedoll 3</code> would give you 3 of each of the Strange Doll [[artifacts]].
+
  |example = <code>player_setimmunity 10</code> would you 10 immunity points, or a 100% chance of avoiding buff effects.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = lookup,lu
+
   |command = player_setmaxhealth
   |params  = {{t|S:itemName}}
+
   |params  = {{t|I:amount}}
   |desc    = Outputs the parent sheet index (i.e. ID) of the specified object to the SMAPI console. Accepts only object names; this is not a fuzzy match but is case-insensitive and spaces should still be included (see examples below). If the requested name is not unique, all matching objects will be included in the output.
+
   |desc    = Sets the player's maximum [[health]]. This permanently changes the baseline; for example, if you set your max health to 500 and then drink [[Skull Cavern#Secret|Iridium Snake Milk]], your max health will increase to 525.
   |example = <code>debug lookup diamond</code> would output ''diamond 72''.; <code>debug lu strange doll</code> would output ''strange 126'' and ''strange 127''.
+
   |example = <code>player_setmaxhealth 500</code> would give you a maximum of 500 health points.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = resource
+
   |command = player_setmaxstamina
   |params  = {{o|I:type}},{{o|I:amount}}
+
   |params  = {{t|I:amount}}
   |desc    = Marks specified amount of specified resource item as collected. This does not actually add any items but does increment some collection stats and may be useful for completing gathering quests. Valid types are 0 (copper), 2 (iron), 4 (coal), 6 (gold), 8 (coins), 10 (iridium), 12 (wood), and 28 (lantern fuel). Type 8 will increase your money by a random amount (rolls 10-49 and multiplies by the amount specified).
+
   |desc    = Sets the player's maximum [[energy|stamina]]. This permanently changes the baseline; for example, if you set your max stamina to 300 and then collect a [[Stardrop]], your max stamina will increase to 334.
   |example =  
+
   |example = <code>player_setmaxstamina 500</code> would give you a maximum of 500 stamina points.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = tv
+
   |command = player_setname
   |desc    = Adds a TV furniture item to your inventory; this will be either a Budget TV or Plasma TV, randomly chosen with equal chances.
+
  |params  = {{t|S:target}},{{t|S:name}}
 +
   |desc    = Sets the name of the current player or their farm, depending on the {{t|S:target}} value (<samp>player</samp> or <samp>farm</samp>).
 +
  |example = <code>player_setname player Malon</code> would change your player name to Malon.;<code>player_setname farm "Lon Lon"</code> would change your farm name to Lon Lon Farm.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = wallpaper,wp
+
   |command = player_setstamina
   |params  = {{o|I:itemID}}
+
   |params  = {{t|I:amount}}
   |desc    = Adds specified wallpaper item to inventory. If no ID is specified, this will randomly pick from any floor (ID 0-39) or wallpaper (ID 0-111). IDs over 111 do give items, but these will be either a combination of two different floor textures or a warped single floor texture.
+
   |desc    = Sets the player's current [[energy|stamina]].
 +
  |example = <code>player_setstamina 200</code> would give you 200 stamina points.
 
}}
 
}}
 
|}
 
|}
   −
====Backpack and inventory====
+
===World===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 129: Line 153:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = backpack
+
   |command = hurry_all
   |params  = {{t|I:amount}}
+
   |params  =  
   |desc    = Increases your inventory space by the specified amount; capped at 36 slots.
+
   |desc    = Immediately warps all NPCs to their scheduled positions. (To hurry a single NPC, use [[#Debug commands|<samp>debug hurry npc-name</samp>]] instead.)
 +
  |example =
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clear,ci
+
   |command = set_farm_type list
   |desc    = Removes all items currently in your inventory.
+
  |params  =
 +
  |desc    = Shows a list of farm types you can use with the <samp>set_farm_type</samp> command.
 +
  |example =
 +
}}
 +
{{/cmd
 +
  |command = set_farm_type
 +
  |params  = {{t|S:farm type}}
 +
  |desc    = Sets the player's current [[Farm Maps|farm type]], where {{t|I:farm type}} is one of <samp>0</samp> (standard), <samp>1</samp> (riverlands), <samp>2</samp> (forest), <samp>3</samp> (hilltop), <samp>4</samp> (combat), <samp>5</samp> (four corners), <samp>6</samp> (beach), or a custom farm type ID. You can enter <code>set_farm_type list</code> for a list of valid farm type IDs.
 +
  |example = <code>set_farm_type 1</code> will set the farm type to riverlands.
 +
}}
 +
{{/cmd
 +
  |command = world_clear
 +
  |params  = {{t|S:location}},{{t|S:entity type}}
 +
   |desc    = Removes all entities of the given type from a location.
 +
 
 +
Parameters:
 +
* {{t|S:location}} is the [[Modding:Location data|internal name for a location]], or <samp>current</samp> for the one you're in.
 +
* {{t|S:entity type}} is one of <samp>crops</samp>, <samp>debris</samp>, <samp>fruit-trees</samp>, <samp>furniture</samp>, <samp>grass</samp>, <samp>trees</samp>, <samp>removable</samp> (everything that can be removed or destroyed during normal gameplay), or <samp>everything</samp> (everything including permanent bushes).
 +
  |example = <code>world_clear current debris</code> will remove all debris (sticks, stones, and small plants).
 +
}}
 +
{{/cmd
 +
  |command = world_downminelevel
 +
  |params  =
 +
  |desc    = Goes down one mine level. If you're not in the mines, warps you to the first mine level.
 +
  |example =
 +
}}
 +
{{/cmd
 +
  |command = world_freezetime
 +
  |params  = {{t|I:action}}
 +
  |desc    = Freezes or resumes the time. The {{o|I:action}} can be <samp>0</samp> (resume time) or <samp>1</samp> (freeze time); if omitted, time is toggled.
 +
  |example =
 +
}}
 +
{{/cmd
 +
  |command = world_setday
 +
  |params  = {{t|I:day}}
 +
  |desc    = Sets the day of month.
 +
  |example = <code>world_setday 30</code> will set the date to the 30th of the current season.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = doesitemexist
+
   |command = world_setminelevel
   |params  = {{t|I:itemID}}, {{o|S:isCraftable}}
+
   |params  = {{t|I:mine level}}
   |desc    = Checks all locations and all player inventories to see if the specified item exists anywhere. If the isCraftable argument is present (no matter what it is), the search will look for Big Craftables with the specified ID; if the isCraftable argument is absent, the search will instead look for Objects with the specified ID. A global message saying ''Yes'' or ''No'' will be displayed, but there is no indication of where the item is located if it is found.
+
   |desc    = Warps you to the given mine level. This can be the [[The Mines|regular mines]] (levels 1&ndash;120), [[Skull Cavern]] (121+), or [[Quarry Mine]] (77377).
   |example = <code>debug doesitemexist 24</code> will search for Parsnips.; <code>debug doesitemexist 12 t</code> will search for Kegs.
+
   |example = <code>world_setminelevel 80</code> warps to mine level 80.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fillbackpack,fillbp,fill,fbp
+
   |command = world_setseason
   |desc    = Fills all empty spaces in your inventory with random Objects. Any objects spawned by this command will not be marked as found on the collections tab.
+
  |params  = {{t|S:season}}
 +
  |desc    = Sets the season (one of <samp>spring</samp>, <samp>summer</samp>, <samp>fall</samp>, or <samp>winter</samp>).
 +
   |example = <code>world_setseason spring</code> will set the season to spring.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = sl
+
   |command = world_settime
   |desc    = Shifts inventory rows down, looping previous bottom row to top; similar to using Control-Tab with default keyboard controls. Will work with larger-than-normal inventories.
+
  |params  = {{t|I:time}}
 +
   |desc    = Sets the time of day, using the game's 26-hour time format (from 0600 for 6am at the start of day, to 2600 for 2am at the end of day).
 +
  |example = <code>world_settime 1430</code> will set time to 2:30pm.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = sr
+
   |command = world_setyear
   |desc    = Shifts inventory rows up, looping previous top row to bottom; similar to using Tab with default keyboard controls. Will work with larger-than-normal inventories.
+
  |params  = {{t|I:year}}
 +
   |desc    = Sets the year number.
 +
  |example = <code>world_setyear 10</code> will set the the game to the 10th year.
 
}}
 
}}
 
|}
 
|}
   −
====Clothing and tailoring====
+
===Other===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 165: Line 232:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = boots
+
   |command = harmony_summary
   |params  = {{t|I:itemID}}
+
   |params  = {{o|S:search}}
   |desc    = Adds the specified pair of [[boots]] to your inventory. See <tt>Data/Boots</tt> for a list of base game IDs.
+
   |desc    = Lists the [[Modding:Modder Guide/APIs/Harmony|Harmony patches]] added by SMAPI and other mods. If {{o|S:search}} is given, only patched method names matching any of the search terms will be listed.
   |example = <code>debug boots 504</code> would give you [[Sneakers]].
+
   |example = <code>harmony_summary MeleeWeapon</code> will list patches which affect the <samp>MeleeWeapon</samp> class in the game code.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clothes
+
   |command = help
   |params  = {{t|I:itemID}}
+
   |params  = {{o|S:command name}}
   |desc    = Adds the specified [[Tailoring|clothing]] item to your inventory. See <tt>Data/ClothingInformation</tt> for a list of base game IDs.
+
   |desc    = Provides documentation for console commands. If called without an argument, shows general help text and a list of available commands. If called with a command name, shows the documentation for that command.
   |example = <code>debug clothes 1008</code> would give you a "Good Grief" Shirt.; <code>debug clothes 11</code> would give you a Simple Dress.
+
   |example =  
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dye
+
   |command = log_context
   |params  = {{t|S:itemType}}, {{t|S:color}}, {{t|F:strength}}
+
   |params  =  
   |desc    = Dyes the specified (currently equipped) item the specified color. Item type can be <tt>shirt</tt> or <tt>pants</tt> and valid colors are <tt>black</tt>, <tt>blue</tt>, <tt>green</tt>, <tt>red</tt>, <tt>white</tt>, and <tt>yellow</tt>. Strength is a float between 0 and 1 inclusive; the higher the number, the more vibrant the color. The dye will mix with the current color so it is sometimes necessary to "reset" the item by dyeing first with white strength 1.
+
   |desc    = Enables logging more contextual info like buttons pressed, menus changed, etc. For example, it can be used to get [[Modding:Player Guide/Key Bindings|key binding codes]] or to simplify troubleshooting. This is enabled until you restart the game, or run the command again to disable it.
   |example = <code>debug dye shirt red 0.33</code> would dye your current shirt a shade of pink.; <code>debug dye pants blue 1</code> would dye your current pants bright blue.
+
   |example =
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dyeAll
+
   |command = reload_i18n
   |desc    = Seems to be intended to bring up a character customization menu with HSV sliders for both shirt and pants, but it does not function because all entered commands are forced to lower case. The two individual commands [[#dyepants|dyepants]] and [[#dyeshirt|dyeshirt]] can be used instead.
+
  |params  =
 +
   |desc    = Reload [[Modding:Translations|translation files]] for all mods. This is mainly useful when translating mods. (Note that if a mod caches the text, it may show the old version until it updates.)
 +
  |example =
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dyemenu
+
   |command = show_data_files
   |desc    = Brings up the same [[Dyeing#Dye_Pots|dyeing menu]] you get by interacting with the dye pots in Emily's house. Filling all six pots with appropriate items will bring up a character customization menu with HSV sliders for dyeing both your currently-equipped shirt and pants.
+
  |params  =
 +
   |desc    = Opens the folder containing the save and log files.
 +
  |example =
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dyepants
+
   |command = show_game_files
   |desc    = Brings up a character customization menu with HSV sliders for dyeing your currently-equipped pants.
+
  |params  =
 +
   |desc    = Opens the [[Modding:Player Guide/Getting Started#Find your game folder|game folder]].
 +
  |example =
 
}}
 
}}
 +
|}
 +
 +
Mods may also add their own commands. For example, Content Patcher adds the <samp>patch</samp> command, documented [https://github.com/Pathoschild/StardewMods/blob/develop/ContentPatcher/docs/author-guide/troubleshooting.md here].
 +
 +
===Advanced===
 +
⚠️ These may corrupt or make permanent changes to your save. DO NOT USE THESE unless you're absolutely sure.
 +
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = dyeshirt
+
   |command = apply_save_fix
   |desc    = Brings up a character customization menu with HSV sliders for dyeing your currently-equipped shirt.
+
  |params  = {{t|S:fix ID}}
 +
   |desc    = Applies one of the game's save migrations to the currently loaded save. Parameters:
 +
* {{t|s:fix ID}} is the unique identifier for the save fix to apply. You can specify <samp>list</samp> to show a list of save fix IDs.
 +
 
 +
  |example = <code>apply_save_fix list</code> would show a list of save fixes.;<code>apply_save_fix AddCampfireKit</code> would add [[Cookout Kit]] to the player's crafting recipes if they meet the requirements for it.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = hat
+
   |command = debug
   |params  = {{t|I:itemID}}
+
   |params  = {{t|*:command text}}
   |desc    = Gives and automatically equips the specified [[hat]] to your farmer; any currently equipped hat will be destroyed. See [[Modding:Hat data|Hat data]] for a list of base game IDs.
+
   |desc    = Executes one of the game's debug commands. See [[#Debug commands|''debug commands'']] below for more info.
   |example = <code>debug hat 3</code> would give you a [[Sombrero]] and automatically equip it.
+
   |example =  
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = ring
+
   |command = regenerate_bundles
   |params  = {{t|I:itemID}}
+
   |params  = {{o|S:type}} {{o|*:flags}}
   |desc    = Adds the specified [[ring]] to your inventory. See [[Modding:Object data|Object Data]] for a list of base game IDs.
+
   |desc    = Regenerates your community center bundle data. This will '''reset all bundle progress''', and may have unintended effects if you've already completed bundles. Parameters:
  |example = <code>debug ring 527</code> would give you an [[Iridium Band]].
+
* {{o|S:type}}: the bundle type that will be generated (defaults to the current bundle type). Possible values: [[Bundles|<samp>Default</samp>]] or [[Remixed Bundles|<samp>Remixed</samp>]].
}}
+
* <samp>confirm</samp>: confirms that you're aware of the potential consequences. Running <samp>regenerate_bundles</samp> without this option will show a warning message instead.
{{/cmd
+
* <samp>ignore_seed</samp> (''optional''): if the type is <samp>Remixed</samp>, causes remixed bundles to be re-randomized without using the save seed.
  |command = tailor
+
   |example = <code>regenerate_bundles confirm</code> will regenerate bundles using the save's current settings.;<code>regenerate_bundles remixed ignore_seed confirm</code> will regenerate using randomized [[Remixed Bundles|remixed bundles]].
  |desc    = Brings up the same [[Tailoring|tailoring menu]] you get by interacting with the sewing machine in Emily's house.
  −
}}
  −
{{/cmd
  −
  |command = tailorrecipelisttool,trlt
  −
   |desc    = Brings up a special menu listing most Objects, what color they will dye an item, and what clothing item they can make when used in the sewing machine. The menu can be scrolled with the mouse wheel, hovering the mouse over the object will show the tooltip for the clothing it makes, and clicking on the object will add the clothing it makes to your inventory.
   
}}
 
}}
 
|}
 
|}
   −
====Tools and weapons====
+
==Debug commands==
{| class="wikitable"
+
{{note box|type=error|text=<span style="font-size: larger;">'''Don't use these commands unless you're aware of the possible consequences.'''</span><br />These are meant for the game developers, not players. They may crash your game, permanently corrupt or break your save, or cause other problems. Using these in a save you care about is not recommended.}}
|-
+
 
! command
+
===How to enter debug commands===
! description
+
The game itself has hundreds of hidden debug commands used to test the game. These [[#Console commands|require the Console Commands mod]] too, but '''every command should be prefixed with <code>debug</code>''' like this:
! &nbsp;
+
<pre>
|-
+
debug where Robin
{{/cmd
+
> Robin is at Farm, 21,4
  |command = ax
+
</pre>
  |desc    = Adds a basic [[Axes|Axe]] to your inventory.
+
 
}}
+
The example above returned output, but many commands don't. If there's no output, SMAPI will say ''Sent debug command to the game, but there was no output''.
 +
 
 +
===Macros===
 +
Instead of entering each command directly into the SMAPI console, you can also use the <samp>[[#runmacro|debug runmacro]]</samp> command to a list of debug commands from a text file. (This doesn't work with the non-debug commands.) Here's how to use it:
 +
 
 +
# Create a text file in [[Modding:Player Guide/Getting Started#Find your game folder|your game folder]] (with a <samp>.txt</samp> extension).
 +
# Type commands in this file, one command per line. Each command should start with a slash character (<samp>/</samp>), but should not include <code>debug </code>.
 +
# To run the macro, type <code>debug runmacro &lt;filename&gt;</code> in the SMAPI console, replacing <samp>&lt;filename&gt;</samp> with the name of your command file without the <samp>.txt</samp> extension.
 +
 
 +
For example, let's say you have a <code>quickstart.txt</code> file with these commands:
 +
<pre>
 +
/backpack 12
 +
/Money 10000
 +
/levelup 0 1
 +
/weapon 5
 +
</pre>
 +
 
 +
Entering <code>debug runmacro quickstart</code> in the SMAPI console will execute all the commands, resulting in a backpack upgrade, money set to 10000g, farming skill set to level 1, and a [[Bone Sword]] added to the player's inventory. (Note: <samp>Money</samp> is capitalized in this example because if it is all lowercase it triggers a [[Secrets#Chat|special chat response]] instead of executing the command.)
 +
 
 +
===Items and inventory===
 +
====General item search and spawning====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = hoe
+
   |command = bigitem,big,bi,b
   |desc    = Adds a basic [[Hoes|Hoe]] to your inventory.
+
  |params  = {{t|I:itemID}}
 +
   |desc    = Adds the specified craftable to your inventory. See [[Modding:Items|big craftables data]] for a list of base game IDs.
 +
  |example = <code>debug bigitem 12</code> would give you a [[keg]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = mp
+
   |command = createdebris,mainmenu
   |desc    = Adds a [[Milk Pail]] to your inventory.
+
  |params  = {{t|I:itemID}}
 +
   |desc    = Spawns the specified object at your position. See [[Modding:Items|object data]] for a list of base game IDs. The object will initially be laying on the ground and will be picked up if you have room once the game regains focus.
 +
  |example = <code>debug createdebris 24</code> would spawn a [[parsnip]].
 +
  <!-- As odd as it seems, the above alias is correct. There may have been a different "mainmenu" command at one time, but currently it is equivalent to createdebris. -->
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = pan
+
   | command = everythingshop
   |desc    = Adds a [[Copper Pan]] to your inventory.
+
   | desc    = Opens a shop menu containing a furniture [[catalogue]], all objects, all craftables, and all weapons. All items are free.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = pickaxe,pickax,pick
+
   |command = furniture,ff
   |desc    = Adds a basic [[Pickaxes|Pickaxe]] to your inventory.
+
  |params  = {{o|I:itemID}}
 +
   |desc    = Adds the specified piece of furniture to your inventory. See [[Modding:Items|furniture data]] for a list of base game IDs. If the itemID is not supplied, a random piece of furniture (ID 0 - 1612) will be given.
 +
  |example = <code>debug furniture 704</code> would give you an [[Oak Dresser]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = pole
+
   |command = fuzzyitemnamed,fin,f
   |params  = {{o|I:type}}
+
   |params  = {{t|S:itemName}},{{o|I:amount}},{{o|I:quality}}
   |desc    = Adds a [[Fishing Poles|Fishing Pole]] of the specified type to your inventory. Valid types are 0 (Bamboo Pole; the default), 1 (Training Rod), 2 (Fiberglass Rod), or 3 (Iridium Rod).
+
   |desc    = Adds the specified item to your inventory. This is a fuzzy search and the game will look through objects, craftables, furniture, weapons, boots, hats, and clothes to match it. There is no reliable way to use names with spaces or differentiate items with the same name, so not all items can be accessed with this command. The optional parameters are for stack amount (defaults is 1) and quality (default is 0.)
 +
  |example = <code>debug fuzzyitemnamed sturg 5 4</code> would give you a stack of five Iridium-quality [[Sturgeon]].; <code>debug fin galaxy</code> would give you a [[Galaxy Sword]].; <code>debug f grief</code> would give you a [[Tailoring#Shirts|"Good Grief" Shirt]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = shears,scissors
+
   |command = getindex
   |desc    = Adds [[Shears]] to your inventory.
+
  |params  = {{t|S:itemName}}
 +
   |desc    = Outputs the parent sheet index (''i.e.,'' ID) of the specified item to the SMAPI console. This is a fuzzy search with similar behavior to the <code>fuzzyitemnamed</code> command. Weapons, Boots, and Hats are recognized but will not return the correct ID.
 +
  |example = <code>debug getindex prisma</code> would output ''Prismatic Shard's index is 74''.;<code>debug getindex grief</code> would output ''"Good Grief" Shirt's index is 1008''.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = slingshot
+
   |command = item,i
   |desc    = Adds a [[Slingshot]] to your inventory.
+
  |params  = {{t|I:itemID}},{{o|I:amount}},{{o|I:quality}}
 +
   |desc    = Adds the specified object to your inventory. Despite the generic name, this accepts object IDs only. The optional parameters are for stack amount (default is 1) and quality (default is 0.)
 +
  |example = <code>debug item 74</code> would give you a [[Prismatic Shard]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = tool
+
   |command = itemnamed,in
   |params  = {{t|S:name}},{{t|I:level}}
+
   |params  = {{t|S:itemName}},{{o|I:amount}},{{o|I:quality}}
   |desc    = Changes the upgrade level of the specified tool to the specified level; the tool must be in your inventory. Tool names are case-sensitive but can match partially; valid names are <tt>Ax</tt>, <tt>Hoe</tt>, <tt>Pickaxe</tt>, and <tt>Watering Can</tt>. Upgrade levels are 0 (basic), 1 (copper), 2 (steel), 3 (gold), or 4 (iridium).
+
   |desc    = Adds the specified object to your inventory. Accepts only object names; this is not a fuzzy match but is case-insensitive. Punctuation should be included, but all spaces should be removed from the name (see examples below). If the requested name is not unique, all matching objects will be added. The optional parameters are for stack amount (default is 1) and quality (default is 0.)
   |example = <code>debug tool Pick 0</code> would set your pickaxe to base quality.; <code>debug tool Can 4</code> would set your watering can to iridium quality.
+
   |example = <code>debug itemnamed miner'streat</code> would give you [[Miner's Treat]].;<code>debug in strangedoll 3</code> would give you 3 of each of the Strange Doll [[artifacts]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = trashcan
+
   |command = lookup,lu
   |params  = {{t|I:level}}
+
   |params  = {{t|S:itemName}}
   |desc    = Changes the upgrade level of your inventory [[Trash Cans|Trash Can]]. Upgrade levels are 0 (basic), 1 (copper), 2 (steel), 3 (gold), or 4 (iridium). The can sprite may not fully update until the inventory is closed and reopened.
+
   |desc    = Outputs the parent sheet index (''i.e.,'' ID) of the specified object to the SMAPI console. Accepts only object names; this is not a fuzzy match but is case-insensitive and spaces should still be included (see examples below). If the requested name is not unique, all matching objects will be included in the output.
 +
  |example = <code>debug lookup diamond</code> would output ''diamond 72''.; <code>debug lu strange doll</code> would output ''strange 126'' and ''strange 127''.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = wand
+
   |command = tv
   |desc    = Adds a [[Return Scepter]] to your inventory.
+
   |desc    = Adds a TV furniture item to your inventory; this will be either a Budget TV or Plasma TV, randomly chosen with equal chances.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = wateringcan,can
+
   |command = wallpaper,wp
  |desc    = Adds a basic [[Watering Cans|Watering Can]] to your inventory.
+
   |params  = {{o|I:itemID}}
}}
+
   |desc    = Adds specified wallpaper item to inventory. If no ID is specified, this will randomly pick from any floor (ID 0-39) or wallpaper (ID 0-111). IDs over 111 do give items, but these will be either a combination of two different floor textures or a warped single floor texture.
{{/cmd
  −
  |command = weapon
  −
   |params  = {{t|I:weaponID}}
  −
   |desc    = Adds the specified weapon to your inventory. See [[Modding:Weapon data|Weapon data]] for a list of base game IDs.
  −
  |example = <code>debug weapon 12</code> would give you a [[Wooden Blade]].
   
}}
 
}}
 
|}
 
|}
   −
====Wallet items====
+
====Backpack and inventory====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 295: Line 414:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = clearspecials
+
   |command = backpack
   |desc    = Removes most special items from your [[Wallet]]. The Rusty Key, Skull Key, Special Charm, Dark Talisman, Magic Ink, Club Card, Dwarven Translation Guide, and Magnifying Glass will all be removed, but Bear's Knowledge and Spring Onion Mastery will remain.
+
  |params  = {{t|I:amount}}
 +
   |desc    = Increases your inventory space by the specified amount; capped at 36 slots.
 +
}}
 +
{{/cmd
 +
  |command = clear,ci
 +
  |desc    = Removes all items currently in your inventory.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = darktalisman
+
   |command = doesitemexist
   |desc    = Adds the [[Dark Talisman]] to (and removes the [[Magic Ink]] from) your wallet; also removes the magic artifact blocking access to the [[Witch's Swamp]].<br/>'''Warning: This command will also clear all received mail and hidden mail flags.'''
+
  |params  = {{t|I:itemID}}, {{o|S:isCraftable}}
 +
   |desc    = Checks all locations and all player inventories to see if the specified item exists anywhere. If the isCraftable argument is present (no matter what it is), the search will look for [[Modding:Items|big craftables]] with the specified ID; if the isCraftable argument is absent, the search will instead look for Objects with the specified ID. A global message saying ''Yes'' or ''No'' will be displayed, but there is no indication of where the item is located if it is found.
 +
  |example = <code>debug doesitemexist 24</code> will search for Parsnips; <code>debug doesitemexist 12 t</code> will search for Kegs.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = skullkey
+
   |command = fillbackpack,fillbp,fill,fbp
   |desc    = Adds the [[Skull Key]] to your wallet.
+
   |desc    = Fills all empty spaces in your inventory with random Objects. Any objects spawned by this command will not be marked as found on the collections tab.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = specialitem
+
   |command = sl
  |params  = {{t|I:itemID}}
+
   |desc    = Shifts inventory rows down, looping previous bottom row to top; similar to using Control-Tab with default keyboard controls. Will work with larger-than-normal inventories.
   |desc    = Adds the specified special item to your wallet. Which ID values are useful is currently unknown.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = specials
+
   |command = sr
   |desc    = Adds all special items to your wallet, including Bear's Knowledge and Spring Onion Mastery. The associated events for these two are also marked as seen.
+
   |desc    = Shifts inventory rows up, looping previous top row to bottom; similar to using Tab with default keyboard controls. Will work with larger-than-normal inventories.
 
}}
 
}}
 
|}
 
|}
   −
====Miscellaneous items====
+
====Clothing and tailoring====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 325: Line 450:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = fillbin,fb
+
   |command = boots
   |desc    = Adds a Parsnip, Fire Quartz, LargeMouth Bass, Wild Horseradish, and Wood to the shipping bin.
+
  |params  = {{t|I:itemID}}
 +
   |desc    = Adds the specified pair of [[Footwear|boots]] to your inventory. See <samp>Data/Boots</samp> for a list of base game IDs.
 +
  |example = <code>debug boots 504</code> would give you [[Sneakers]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = listtags
+
   |command = clothes
   |desc    = Outputs all object context tags associated with the currently-held item to the console.
+
  |params  = {{t|I:itemID}}
   |example = <code>debug listtags</code> while holding an [[Acorn]] would output ''Tags on Acorn: id_o_309 color_brown tree_seed_item item_acorn category_seeds''.
+
   |desc    = Adds the specified [[Tailoring|clothing]] item to your inventory. See <samp>Data/ClothingInformation</samp> for a list of base game IDs.
 +
   |example = <code>debug clothes 1008</code> would give you a "Good Grief" Shirt.; <code>debug clothes 11</code> would give you a Simple Dress.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = makeinedible
+
   |command = dye
   |desc    = Makes the currently-held item inedible by setting its edibility value to -300; does not affect other instances of the same item.
+
  |params  = {{t|S:itemType}}, {{t|S:color}}, {{t|F:strength}}
 +
   |desc    = Dyes the specified (currently equipped) item the specified color. Item type can be <samp>shirt</samp> or <samp>pants</samp> and valid colors are <samp>black</samp>, <samp>blue</samp>, <samp>green</samp>, <samp>red</samp>, <samp>white</samp>, and <samp>yellow</samp>. Strength is a float between 0 and 1 inclusive; the higher the number, the more vibrant the color. The dye will mix with the current color so it is sometimes necessary to "reset" the item by dyeing first with white strength 1.
 +
  |example = <code>debug dye shirt red 0.33</code> would dye your current shirt a shade of pink.; <code>debug dye pants blue 1</code> would dye your current pants bright blue.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = skullgear
+
   |command = dyeAll
   |desc    = Sets your current backpack size to 32 slots, equips a Savage Ring and Iridium Band, equips Space Boots, and clears inventory except for an Iridium Pickaxe, a Galaxy Sword, a stack of 20 Spicy Eels, and a stack of 20 Mega Bombs. Also sets your maximum health to 75 and gives you the Fighter profession. Any previously equipped boots and rings and all previous inventory items are lost.
+
   |desc    = Seems to be intended to bring up a character customization menu with HSV sliders for both shirt and pants, but it does not function because all entered commands are forced to lower case. The two individual commands [[#dyepants|dyepants]] and [[#dyeshirt|dyeshirt]] can be used instead.
 
}}
 
}}
|}
  −
  −
===Player===
  −
====Appearance====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = customizemenu,customize,cmenu
+
   |command = dyemenu
   |desc    = Opens the full character customization menu seen at the start of a new game which includes gender options and player/farm names. Changing the player name will cause the save file to change as well.
+
   |desc    = Brings up the same [[Dyeing#Dye_Pots|dyeing menu]] you get by interacting with the dye pots in Emily's house. Filling all six pots with appropriate items will bring up a character customization menu with HSV sliders for dyeing both your currently-equipped shirt and pants.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = haircolor
+
   |command = dyepants
  |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
+
   |desc    = Brings up a character customization menu with HSV sliders for dyeing your currently-equipped pants.
   |desc    = Sets the player's hair color to the specified RGB values. Each has a range of 0-255.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = hairstyle
+
   |command = dyeshirt
  |params  = {{t|I:ID}}
+
   |desc    = Brings up a character customization menu with HSV sliders for dyeing your currently-equipped shirt.
   |desc    = Sets the player's hair style to the specified ID. Note that these IDs are one less than the values shown in the character customization menu and have a range of 0-55 in the base game.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = pants
+
   |command = hat
   |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
+
   |params  = {{t|I:itemID}}
   |desc    = Sets the player's pants color to the specified RGB values. Each has a range of 0-255. This no longer has a noticeable effect since pants are now a clothing item; the [[#dyepants|dyepants]] command should be used instead.
+
   |desc    = Gives and automatically equips the specified [[Hats|hat]] to your farmer; any currently equipped hat will be destroyed. See [[Modding:Items|hat data]] for a list of base game IDs.
 +
  |example = <code>debug hat 3</code> would give you a [[Sombrero]] and automatically equip it.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = shirtcolor
+
   |command = ring
   |params  = {{t|I:ID}}
+
   |params  = {{t|I:itemID}}
   |desc    = Sets the player's shirt choice to the specified ID. This no longer has a noticeable effect since shirts are now a clothing item; the [[#clothes|clothes]] or [[#dyeshirt|dyeshirt]] commands should be used instead.
+
   |desc    = Adds the specified [[Rings|ring]] to your inventory. See [[Modding:Items|object data]] for a list of base game IDs.
 +
  |example = <code>debug ring 527</code> would give you an [[Iridium Band]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = skincolor
+
   |command = tailor
  |params  = {{t|I:ID}}
+
   |desc    = Brings up the same [[Tailoring|tailoring menu]] you get by interacting with the sewing machine in Emily's house.
   |desc    = Sets the player's skin color to the specified ID. Note that these IDs are one less than the values shown in the character customization menu and have a range of 0-23 in the base game.
   
}}
 
}}
|}
+
{{/cmd
 +
  |command = tailorrecipelisttool,trlt
 +
  |desc    = Brings up a special menu listing most Objects, what color they will dye an item, and what clothing item they can make when used in the sewing machine. The menu can be scrolled with the mouse wheel, hovering the mouse over the object will show the tooltip for the clothing it makes, and clicking on the object will add the clothing it makes to your inventory.
 +
}}
 +
|}
   −
====Health, stamina, buffs, and money====
+
====Tools and weapons====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 390: Line 513:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = buff
+
   |command = ax
  |params  = {{t|I:buffID}}
+
   |desc    = Adds a basic [[Axes|Axe]] to your inventory.
   |desc    = Adds the specified buff to the player. Useful ID values are listed below. Also see the [[#speed|speed]] command.
  −
<!-- Not really happy with the amount of room this takes up, but moving to 3 columns might be bad for those browsing on mobile -->
  −
<table class="wikitable"><tr><td>6 - Full (prevents eating) for 3 min</td><td>18 - Spooked (-8 attack) for 8 sec</td></tr>
  −
<tr><td>7 - Quenched (prevents drinking) for 1 min</td><td>19 - Frozen (-8 speed) for 2 sec</td></tr>
  −
<tr><td>12 - Goblin's Curse (-3 spd/def/att) for 6 sec</td><td>20 - Warrior Energy (+10 attack) for 5 sec</td></tr>
  −
<tr><td>13 - Slimed (-4 speed) for 2.5-3 sec</td><td>21 - Yoba's Blessing (Invincibility) for 5 sec</td></tr>
  −
<tr><td>14 - Jinxed (-8 defense) for 8 sec</td><td>22 - Adrenaline Rush (+2 speed) for 3 sec</td></tr>
  −
<tr><td>17 - Tipsy (-1 speed) for 30 sec</td><td>23 - Oil of Garlic (prevents swarms) for 10 min</td></tr></table>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearbuffs
+
   |command = forge
   |desc    = Removes all active buffs (both positive and negative.)
+
   |desc    = Shows the [[Forge]] menu.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = die
+
   |command = hoe
   |desc    = Sets your [[health]] to zero, resulting in passing out and awakening in the [[Clinic]].
+
   |desc    = Adds a basic [[Hoes|Hoe]] to your inventory.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = energize
+
   |command = mp
  |params  = {{o|I:amount}}
+
   |desc    = Adds a [[Milk Pail]] to your inventory.
   |desc    = Sets your [[energy]] to the specified amount. If no amount is specified, it will be set to maximum.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = exhaust
+
   |command = pan
   |desc    = Sets your [[energy]] to -15, resulting in passing out and ending the day.
+
   |desc    = Adds a [[Pans|Copper Pan]] to your inventory.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = gold
+
   |command = pickaxe,pickax,pick
   |desc    = Gives you one million (1,000,000) [[gold]].
+
   |desc    = Adds a basic [[Pickaxes|Pickaxe]] to your inventory.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = heal
+
   |command = pole
   |desc    = Sets your [[health]] to maximum.
+
  |params  = {{o|I:type}}
 +
   |desc    = Adds a [[Tools#Fishing Poles|Fishing Pole]] of the specified type to your inventory. Valid types are 0 (Bamboo Pole; the default), 1 (Training Rod), 2 (Fiberglass Rod), or 3 (Iridium Rod).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = invincible
+
   |command = shears,scissors
   |desc    = Toggles invincibility. When on, you will not take any damage.
+
   |desc    = Adds [[Shears]] to your inventory.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = money
+
   |command = slingshot
  |params  = {{t|I:amount}}
+
   |desc    = Adds a [[Slingshot]] to your inventory.
   |desc    = Sets your money to the specified amount. To use in a [[#Macros for multiple commands|macro]], make sure one or more of the letters in the command is capitalized.
   
}}
 
}}
|}
  −
  −
====Movement and warping====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = canmove,cm,c
+
   |command = tool
   |desc    = Attempts to force-enable player movement by resetting animations and dismounting the horse. Sometimes useful when the player becomes "stuck."
+
  |params  = {{t|S:name}},{{t|I:level}}
 +
   |desc    = Changes the upgrade level of the specified tool to the specified level; the tool must be in your inventory. Tool names are case-sensitive but can match partially; valid names are <samp>Ax</samp>, <samp>Hoe</samp>, <samp>Pickaxe</samp>, and <samp>Can</samp>. Upgrade levels are 0 (basic), 1 (copper), 2 (steel), 3 (gold), or 4 (iridium).
 +
  |example = <code>debug tool Pick 0</code> would set your pickaxe to base quality.; <code>debug tool Can 4</code> would set your watering can to iridium quality.; <code>debug tool ax 3</code> would set your '''''pickaxe''''' to gold quality, because of the case-sensitive substring match.  
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = minelevel
+
   |command = trashcan
 
   |params  = {{t|I:level}}
 
   |params  = {{t|I:level}}
   |desc    = Warps you to the specified level of the [[Mines]]. Use level 77377 to warp to the [[Quarry Mine]], and to warp to a level in the [[Skull Cavern]], add 120 to your target level.
+
   |desc    = Changes the upgrade level of your inventory [[Trash Cans|Trash Can]]. Upgrade levels are 0 (basic), 1 (copper), 2 (steel), 3 (gold), or 4 (iridium). The can sprite may not fully update until the inventory is closed and reopened.
  |example = <code>debug minelevel 219</code> will warp you to level 99 of the Skull Cavern.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = speed
+
   |command = wand
  |params  = {{t|I:value}},{{o|I:duration}}
+
   |desc    = Adds a [[Return Scepter]] to your inventory.
   |desc    = Gives the player a speed buff of the specified amount for the specified duration. The duration is interpreted as in-game minutes and defaults to 30; multiplying this value by 0.7 will convert to real-time seconds. This buff has a unique source of "Debug Speed" and will stack with both food and drink speed buffs.
  −
  |example = <code>debug speed 5 600</code> will give you a +5 speed buff which lasts for 7 minutes (10 game hours).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warp
+
   |command = wateringcan,can
  |params  = {{t|S:locationName}},{{o|I:X}},{{o|I:Y}}
+
   |desc    = Adds a basic [[Watering Cans|Watering Can]] to your inventory.
   |desc    = Warps you to the specified location at the given coordinates. The location name is a fuzzy match, and if the coordinates are not supplied the game has a list of hardcoded defaults it will use for many locations (see <tt>Utility.getDefaultWarpLocation()</tt> for details.)
  −
  |example = <code>debug warp forest 33 99</code> will warp you near Hat Mouse's shop in the forest.; <code>debug warp sci</code> will warp you to Robin's House (internally <tt>ScienceHouse</tt>) just in front of where Robin tends the shop.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warphome,wh
+
   |command = weapon
   |desc    = Warps you directly to your bed in your farmhouse/cabin.
+
  |params  = {{t|I:weaponID}}
 +
   |desc    = Adds the specified weapon to your inventory. See [[Modding:Items|weapon data]] for a list of base game IDs.
 +
  |example = <code>debug weapon 12</code> would give you a [[Wooden Blade]].
 
}}
 
}}
 +
|}
 +
 +
====Wallet items====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = warpshop,ws
+
   |command = clearspecials
   |params  = {{t|S:npcName}}
+
   |desc    = Removes most special items from your [[Wallet]]. The Rusty Key, Skull Key, Special Charm, Dark Talisman, Magic Ink, Club Card, Dwarven Translation Guide, and Magnifying Glass will all be removed, but Bear's Knowledge and Spring Onion Mastery will remain.
   |desc    = Warps you to the shop run by the specified NPC; if necessary will also warp the NPC to the shop location. NPC names are case-insensitive and can be one of the following: <tt>pierre</tt>, <tt>robin</tt>, <tt>krobus</tt>, <tt>sandy</tt>, <tt>marnie</tt>, <tt>clint</tt>, <tt>gus</tt>, <tt>willy</tt>, <tt>pam</tt>, <tt>dwarf</tt>, and <tt>wizard</tt>. The <tt>wizard</tt> option will also add Magic Ink to your wallet and mark the event where the ink is returned as already seen.
+
}}
   |example = <code>debug warpshop marnie</code> will warp both you and Marnie to her animal shop.
+
{{/cmd
 +
  |command = darktalisman
 +
   |desc    = Adds the [[Dark Talisman]] to (and removes the [[Magic Ink]] from) your wallet; also removes the magic artifact blocking access to the [[Witch's Swamp]].<br />'''Warning: This command will also clear all received mail and hidden mail flags.'''
 +
}}
 +
{{/cmd
 +
  |command = skullkey
 +
  |desc    = Adds the [[Skull Key]] to your wallet.
 +
}}
 +
{{/cmd
 +
  |command = specialitem
 +
  |params  = {{t|I:itemID}}
 +
   |desc    = Adds the specified special item to your wallet. Which ID values are useful is currently unknown.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warptocharacter,wtc
+
   |command = specials
  |params  = {{t|S:npcName}}
+
   |desc    = Adds all special items to your wallet, including Bear's Knowledge and Spring Onion Mastery. The associated events for these two are also marked as seen.
   |desc    = Warps you to the specified character, wherever they are. This is a fuzzy match.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warptoplayer,wtp
+
   |command = townkey
  |params  = {{t|S:playerName}}
+
   |desc    = Adds the [[Key To The Town]] to your wallet.
   |desc    = Warps you to the specified player, wherever they are. The match is case-insensitive and any spaces should be removed from the name.
   
}}
 
}}
 
|}
 
|}
   −
====Skills and XP====
+
====Miscellaneous items====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 496: Line 618:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = experience
+
   |command = fillbin,fb
  |params  = {{t|I:skillID}},{{t|I:xpAmount}}
+
   |desc    = Adds a Parsnip, Fire Quartz, LargeMouth Bass, Wild Horseradish, and Wood to the shipping bin.
   |desc    = Adds the specified amount of experience to the specified skill. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fishing
+
   |command = listtags
  |params  = {{t|I:level}}
+
   |desc    = Outputs all object context tags associated with the currently-held item to the console.
   |desc    = Sets your fishing skill to the specified level. This does not unlock crafting recipes or allow profession choice, nor does it change the underlying experience amount. However it does count in terms of unlocking what Willy sells and enabling legendary fish to be hooked.
+
  |example = <code>debug listtags</code> while holding an [[Acorn]] would output ''Tags on Acorn: id_o_309 color_brown tree_seed_item item_acorn category_seeds''.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = levelup
+
   |command = makeinedible
  |params  = {{t|I:skillID}},{{t|I:level}}
+
   |desc    = Makes the currently-held item inedible by setting its edibility value to -300; does not affect other instances of the same item.
   |desc    = Shows the appropriate levelup window for the specified skill and level. This unlocks any associated crafting recipes and (if applicable) lets you choose a profession, but does not actually change the skill level or underlying experience amount. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = profession
+
   |command = skullgear
  |params  = {{t|I:ID}}
+
   |desc    = Sets your current backpack size to 32 slots, equips a Savage Ring and Iridium Band, equips Space Boots, and clears inventory except for an Iridium Pickaxe, a Galaxy Sword, a stack of 20 Spicy Eels, and a stack of 20 Mega Bombs. Also sets your maximum health to 75 and gives you the Fighter profession. Any previously equipped boots and rings and all previous inventory items are lost.
   |desc    = Gives you the specified profession. Valid profesion IDs from the base game are shown below.
  −
<table class="wikitable"><tr><th>Farming</th><th>Fishing</th><th>Foraging</th><th>Mining</th><th>Combat</th></tr>
  −
<tr><td>0 - Rancher</td><td>6 - Fisher</td><td>12 - Forester</td><td>18 - Miner</td><td>24 - Fighter</td></tr>
  −
<tr><td>1 - Tiller</td><td>7 - Trapper</td><td>13 - Gatherer</td><td>19 - Geologist</td><td>25 - Scout</td></tr>
  −
<tr><td>2 - Coopmaster</td><td>8 - Angler</td><td>14 - Lumberjack</td><td>20 - Blacksmith</td><td>26 - Brute</td></tr>
  −
<tr><td>3 - Shepherd</td><td>9 - Pirate</td><td>15 - Tapper</td><td>21 - Prospector</td><td>27 - Defender</td></tr>
  −
<tr><td>4 - Artisan</td><td>10 - Mariner</td><td>16 - Botanist</td><td>22 - Excavator</td><td>28 - Acrobat</td></tr>
  −
<tr><td>5 - Agriculturist</td><td>11 - Luremaster</td><td>17 - Tracker</td><td>23 - Gemologist</td><td>29 - Desperado</td></tr></table>
   
}}
 
}}
{{/cmd
+
|}
  |command = showexperience
+
 
  |params  = {{t|I:skillID}}
+
===Player===
  |desc    = Outputs your total experience amount for the specified skill in the SMAPI console. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
+
====Appearance====
}}
  −
|}
  −
 
  −
====Statistics and achievements====
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 537: Line 645:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = achieve
+
   |command = customizemenu,customize,cmenu
  |params  = {{t|S:steamAchieveID}}
+
   |desc    = Opens the full character customization menu seen at the start of a new game which includes gender options and player/farm names. Changing the player name will cause the save file to change as well.
   |desc    = Awards the specified Steam achievement. Steam achievements which correspond to in-game achievements use the same numeric ID as listed in [[Modding:Achievement data|Achievement data]] with one exception: the ID for ''Greenhorn'' is <tt>a0</tt> instead of just <tt>0</tt>. Steam-only achievements have a much longer string ID; these are listed below.
  −
<table class="wikitable"><tr><td><tt>Achievement_SigularTalent</tt> - ''Singular Talent''</td><td><tt>Achievement_MasterOfTheFiveWays</tt> - ''Master Of The Five Ways''</td></tr>
  −
<tr><td><tt>Achievement_LocalLegend</tt> - ''Local Legend''</td><td><tt>Achievement_Joja</tt> - ''Joja Co. Member Of The Year''</td></tr>
  −
<tr><td><tt>Achievement_FullHouse</tt> - ''Full House''</td><td><tt>Achievement_Stardrop</tt> - ''Mystery Of The Stardrops''</td></tr>
  −
<tr><td><tt>Achievement_TheBottom</tt> - '' The Bottom''</td><td><tt>Achievement_KeeperOfTheMysticRings</tt> - ''Protector Of The Valley''</td></tr>
  −
<tr><td><tt>Achievement_PrairieKing</tt> - ''Prairie King''</td><td><tt>Achievement_FectorsChallenge</tt> - ''Fector's Challenge''</td></tr></table>
  −
|example = <code>debug achieve 17</code> will award the Steam achievement for ''Gourmet Chef''.;<code>debug achieve Achievement_Stardrop</code> will award the Steam achievement for ''Mystery of the Stardrops''.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = achievement
+
   |command = haircolor
   |params  = {{t|I:achieveID}}
+
   |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
   |desc    = Awards the specified in-game achievement. See [[Modding:Achievement data|Achievement data]] for a list of IDs. This will also award the associated Steam achievement if you don't have it.
+
   |desc    = Sets the player's hair color to the specified RGB values. Each has a range of 0-255.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = caughtfish,fishcaught
+
   |command = hairstyle
   |params  = {{t|I:value}}
+
   |params  = {{t|I:ID}}
   |desc    = Sets the <tt>FishCaught</tt> stat to the specified amount.
+
   |desc    = Sets the player's hair style to the specified ID. Note that these IDs are one less than the values shown in the character customization menu and have a range of 0-55 in the base game.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = changestat
+
   |command = pants
   |params  = {{t|S:statID}},{{t|I:value}}
+
   |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
   |desc    = Sets the specified stat to the specified value. These are different than the stats used in [[#getstat|getstat]]/[[#setstat|setstat]] (Technical note: they are entries in StardewValley.Stats.stat_dictionary). Known IDs as of version 1.4.3 are: <tt>trashCansChecked</tt>.
+
   |desc    = Sets the player's pants color to the specified RGB values. Each has a range of 0-255. This no longer has a noticeable effect since pants are now a clothing item; the [[#dyepants|dyepants]] command should be used instead.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = daysplayed,dap
+
   |command = shirtcolor
   |desc    = Shows a global message with the current value of the <tt>daysPlayed</tt> stat.
+
  |params  = {{t|I:ID}}
 +
   |desc    = Sets the player's shirt choice to the specified ID. This no longer has a noticeable effect since shirts are now a clothing item; the [[#clothes|clothes]] or [[#dyeshirt|dyeshirt]] commands should be used instead.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dp
+
   |command = skincolor
   |params  = {{t|I:value}}
+
   |params  = {{t|I:ID}}
   |desc    = Sets the <tt>daysPlayed</tt> stat to the specified amount.
+
   |desc    = Sets the player's skin color to the specified ID. Note that these IDs are one less than the values shown in the character customization menu and have a range of 0-23 in the base game.
 
}}
 
}}
 +
|}
 +
 +
====Health, stamina, buffs, and currency====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = getstat
+
   |command = buff
   |params  = {{t|S:statID}}
+
   |params  = {{t|I:buffID}}
   |desc    = Outputs value of specified stat to the SMAPI console. Some of these values are also accessible in-game by interacting with a machine in the [[Casino]].
+
   |desc    = Adds the specified buff to the player. Useful ID values are listed below. Also see the [[#speed|speed]] command.
  Stat IDs are case-sensitive (Technical note: they are the properties for the StardewValley.Stats class, but not all of them are actually tracked by the game.) Known IDs as of version 1.4.3 are: <tt>AverageBedtime</tt>, <tt>BarsSmelted</tt>, <tt>BeveragesMade</tt>, <tt>BouldersCracked</tt>, <tt>CaveCarrotsFound</tt>, <tt>CheeseMade</tt>, <tt>ChickenEggsLayed</tt>, <tt>CoalFound</tt>, <tt>CoinsFound</tt>, <tt>CopperFound</tt>, <tt>CowMilkProduced</tt>, <tt>CropsShipped</tt>, <tt>DaysPlayed</tt>, <tt>DiamondsFound</tt>, <tt>DirtHoed</tt>, <tt>DuckEggsLayed</tt>, <tt>FishCaught</tt>, <tt>GeodesCracked</tt>, <tt>GiftsGiven</tt>, <tt>GoatCheeseMade</tt>, <tt>GoatMilkProduced</tt>, <tt>GoldFound</tt>, <tt>GoodFriends</tt>, <tt>IndividualMoneyEarned</tt>, <tt>IridiumFound</tt>, <tt>IronFound</tt>, <tt>ItemsCooked</tt>, <tt>ItemsCrafted</tt>, <tt>ItemsForaged</tt>, <tt>ItemsShipped</tt>, <tt>MonstersKilled</tt>, <tt>MysticStonesCrushed</tt>, <tt>NotesFound</tt>, <tt>OtherPreciousGemsFound</tt>, <tt>PiecesOfTrashRecycled</tt>, <tt>PreservesMade</tt>, <tt>PrismaticShardsFound</tt>, <tt>QuestsCompleted</tt>, <tt>RabbitWoolProduced</tt>, <tt>RocksCrushed</tt>, <tt>SeedsSown</tt>, <tt>SheepWoolProduced</tt>, <tt>SlimesKilled</tt>, <tt>StarLevelCropsShipped</tt>, <tt>StepsTaken</tt>, <tt>SticksChopped</tt>, <tt>StoneGathered</tt>, <tt>StumpsChopped</tt>, <tt>TimesFished</tt>, <tt>TimesUnconscious</tt>, <tt>TrufflesFound</tt>, and <tt>WeedsEliminated</tt>.
+
<!-- Not really happy with the amount of room this takes up, but moving to 3 columns might be bad for those browsing on mobile -->
}}
+
<table class="wikitable"><tr><td>6 - Full (prevents eating) for 3 min</td><td>18 - Spooked (-8 attack) for 8 sec</td></tr>
{{/cmd
+
<tr><td>7 - Quenched (prevents drinking) for 1 min</td><td>19 - Frozen (-8 speed) for 2 sec</td></tr>
  |command = killmonsterstat,kms
+
<tr><td>12 - Goblin's Curse (-3 spd/def/att) for 6 sec</td><td>20 - Warrior Energy (+10 attack) for 5 sec</td></tr>
  |params  = {{t|S:monsterName}},{{t|I:value}}
+
<tr><td>13 - Slimed (-4 speed) for 2.5-3 sec</td><td>21 - Yoba's Blessing (Invincibility) for 5 sec</td></tr>
  |desc    = Sets the kill stats for the specified monster to the specified value. The monster name should be the same as the keys in <tt>Data/Monsters</tt> but with spaces replaced with zeros; it is case-sensitive. The command will output a buggy response to the console due to referencing the wrong string key, but the stats are correctly set.
+
<tr><td>14 - Jinxed (-8 defense) for 8 sec</td><td>22 - Adrenaline Rush (+2 speed) for 3 sec</td></tr>
  |example = <code>debug kms Dust0Spirit 499</code> will set the monster kill stats for [[Dust Sprite|Dust Sprites]] to 499 and output ''Drink Dust Spirit?''
+
<tr><td>17 - Tipsy (-1 speed) for 30 sec</td><td>23 - Oil of Garlic (prevents swarms) for 10 min</td></tr></table>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = mineinfo
+
   |command = clearbuffs
   |desc    = Outputs two mine-related stats to the SMAPI Console: <tt>MineShaft.lowestLevelReached</tt> and <tt>player.deepestMineLevel</tt>
+
   |desc    = Removes all active buffs (both positive and negative.)
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = resetachievements
+
   |command = die
   |desc    = Resets the Steam achievements.
+
   |desc    = Sets your [[health]] to zero, resulting in passing out and awakening in the [[Harvey's Clinic|Clinic]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = setstat
+
   |command = energize
   |params  = {{t|S:statID}},{{t|I:value}}
+
   |params  = {{o|I:amount}}
   |desc    = Sets the specified stat to the specified value. Stat IDs are case-sensitive; see [[#getstat|getstat]] more information.
+
   |desc    = Sets your [[energy]] to the specified amount. If no amount is specified, it will be set to maximum.
  |example = <code>debug setstat StepsTaken 99999</code> would set the ''Number of Steps Taken'' stat to 99999.
   
}}
 
}}
|}
  −
  −
===Collections and quests===
  −
====Cooking and crafting====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = addallcrafting
+
   |command = exhaust
   |desc    = Teaches you all crafting recipes. Basically the same as [[#crafting|crafting]], but this one does not check if you already know the recipe before adding so it may output some error messages to the console about duplicate keys.
+
   |desc    = Sets your [[energy]] to -15, resulting in passing out and ending the day.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = cooking
+
   |command = gem
   |desc    = Teaches you all cooking recipes.
+
  |params  = {{t|I:amount}}
 +
   |desc    = Gives you the specified number of [[Qi Gem|Qi Gems]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = cookingrecipe
+
   |command = gold
  |params  = {{t|S:recipeName}}
+
   |desc    = Gives you one million (1,000,000) [[gold]].
   |desc    = Teaches you the specified cooking recipe. Names are case-sensitive and may contain spaces.
  −
  |example = <code>debug cookingrecipe Seafoam Pudding</code> will give you the recipe to cook [[Seafoam Pudding]].
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = crafting
+
   |command = heal
   |desc    = Teaches you all crafting recipes.
+
   |desc    = Sets your [[health]] to maximum.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = craftingrecipe
+
   |command = invincible,inv,gm
  |params  = {{t|S:recipeName}}
+
   |desc    = Toggles invincibility. When on, you will not take any damage.
   |desc    = Teaches you the specified crafting recipe. Names are case-sensitive and may contain spaces.
  −
  |example = <code>debug craftingrecipe Ancient Seeds</code> will give you the recipe to craft plantable ancient seeds from the artifact.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = slimecraft
+
   |command = money
   |desc    = Teaches you the crafting recipes for [[Slime Incubator]] and [[Slime Egg-Press]].
+
  |params  = {{t|I:amount}}
 +
   |desc    = Sets your money to the specified amount. To use in a [[#Macros for multiple commands|macro]], make sure one or more of the letters in the command is capitalized.
 
}}
 
}}
|}
+
{{/cmd
 +
  |command = testnut
 +
  |desc    = Spawns a [[Golden Walnut]] at the upper left corner of the current map which will immediately start moving towards a player for collection.
 +
}}
 +
{{/cmd
 +
  |command = walnut
 +
  |params  = {{t|I:amount}}
 +
  |desc    = Gives your team the specified number of Golden Walnuts.
 +
}}
 +
|}
   −
====Fishing, museum, and secret notes====
+
====Movement and warping====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 645: Line 752:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = clearfishcaught
+
   |command = canmove,cm,c
   |desc    = Clears all records of which fish you have caught, resetting the collection. To also change the stat which tracks how many total fish have been caught, see [[#caughtfish|caughtfish]].
+
   |desc    = Attempts to force-enable player movement by resetting animations and dismounting the horse. Sometimes useful when the player becomes "stuck."
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearmuseum
+
   |command = minelevel
   |desc    = Removes all donated items from the museum, emptying the museum displays and causing all artifacts and minerals to have the ''Gunther can tell you more about this...'' description. Does not affect the records of which artifacts and minerals have been found (i.e. the collection pages).
+
  |params  = {{t|I:level}}
 +
   |desc    = Warps you to the specified level of the [[The Mines|Mines]]. Use level 77377 to warp to the [[Quarry Mine]], and to warp to a level in the [[Skull Cavern]], add 120 to your target level.
 +
  |example = <code>debug minelevel 219</code> will warp you to level 99 of the Skull Cavern.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = deletearch
+
   |command = printplayerpos,ppp
   |desc    = Clears all records of which artifacts and minerals you have found.<br/>'''Warning: Also clears all record of which fish you have caught and clears all received mail (including hidden progress flags).'''
+
   |desc    = Prints the player's current position in both tile and pixel coordinates to the console.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = museumloot
+
   |command = speed
   |desc    = Adds unfound artifacts and minerals to your inventory until it is full. Items added by this command will now be marked "found" on the collection pages.
+
  |params  = {{t|I:value}},{{o|I:duration}}
 +
   |desc    = Gives the player a speed buff of the specified amount for the specified duration. The duration is interpreted as in-game minutes and defaults to 30; multiplying this value by 0.7 will convert to real-time seconds. This buff has a unique source of "Debug Speed" and will stack with both food and drink speed buffs.
 +
  |example = <code>debug speed 5 600</code> will give you a +5 speed buff which lasts for 7 minutes (10 game hours).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = newmuseumloot
+
   |command = volcano
   |desc    = Adds undonated artifacts and minerals to your inventory until it is full. Items added by this command increment the "Total found" count on the collection pages.
+
  |params  = {{t|I:level}}
 +
   |desc    = Warps you to the specified level of the [[Volcano Dungeon]].  
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = note
+
   |command = warp
   |params  = {{t|I:bookID}}
+
   |params  = {{t|S:locationName}},{{o|I:X}},{{o|I:Y}}
   |desc    = Sets the count of [[Lost Books]] recovered to 18, even if you previously had found more, and brings up a window with the contents of the specified book. Book IDs above 18 will show the message ''There's a book missing here.''
+
   |desc    = Warps you to the specified location at the given coordinates. The location name is a fuzzy match, and if the coordinates are not supplied the game has a list of hardcoded defaults it will use for many locations (see <samp>Utility.getDefaultWarpLocation()</samp> for details.)
 +
  |example = <code>debug warp forest 33 99</code> will warp you near Hat Mouse's shop in the forest.; <code>debug warp sci</code> will warp you to Robin's House (internally <samp>ScienceHouse</samp>) just in front of where Robin tends the shop.
 +
}}
 +
{{/cmd
 +
  |command = warphome,wh
 +
  |desc    = Warps you directly to your bed in your farmhouse/cabin.
 +
}}
 +
{{/cmd
 +
  |command = warpshop,ws
 +
  |params  = {{t|S:npcName}}
 +
  |desc    = Warps you to the shop run by the specified NPC; if necessary will also warp the NPC to the shop location. NPC names are case-insensitive and can be one of the following: <samp>pierre</samp>, <samp>robin</samp>, <samp>krobus</samp>, <samp>sandy</samp>, <samp>marnie</samp>, <samp>clint</samp>, <samp>gus</samp>, <samp>willy</samp>, <samp>pam</samp>, <samp>dwarf</samp>, and <samp>wizard</samp>. The <samp>wizard</samp> option will also add Magic Ink to your wallet and mark the event where the ink is returned as already seen.
 +
  |example = <code>debug warpshop marnie</code> will warp both you and Marnie to her animal shop.
 +
}}
 +
{{/cmd
 +
  |command = warptocharacter,wtc
 +
  |params  = {{t|S:npcName}}
 +
  |desc    = Warps you to the specified character, wherever they are. This is a fuzzy match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = sn
+
   |command = warptoplayer,wtp
   |params  = {{o|I:noteID}}
+
   |params  = {{t|S:playerName}}
   |desc    = Adds specified secret note to your inventory. If no ID is specified, a random unseen note will be added. See <tt>Data/SecretNotes</tt> for a list of IDs.
+
   |desc    = Warps you to the specified player, wherever they are. The match is case-insensitive and any spaces should be removed from the name.
 
}}
 
}}
 
|}
 
|}
   −
====Mail====
+
====Skills and XP====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 684: Line 812:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = allmail
+
   |command = experience
   |desc    = Queues every letter defined in <tt>Data/mail</tt> for delivery tomorrow.
+
  |params  = {{t|I:skillID}},{{t|I:xpAmount}}
 +
   |desc    = Adds the specified amount of experience to the specified skill. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = allmailread
+
   |command = fishing
   |desc    = Marks every letter defined in <tt>Data/mail</tt> as already read. They will all be accessible in the letters tab of the collections menu.
+
  |params  = {{t|I:level}}
 +
   |desc    = Sets your fishing skill to the specified level. This does not unlock crafting recipes or allow profession choice, nor does it change the underlying experience amount. However it does count in terms of unlocking what Willy sells and enabling legendary fish to be hooked.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = broadcastmail
+
   |command = levelup
   |params  = {{t|S:mailID}}
+
   |params  = {{t|I:skillID}},{{t|I:level}}
   |desc    = Queues specified mail for delivery tomorrow for all players. The ID is case-sensitive; see <tt>Data/mail</tt> for valid IDs in the base game.
+
   |desc    = Shows the appropriate levelup window for the specified skill and level. This unlocks any associated crafting recipes and (if applicable) lets you choose a profession, but does not actually change the skill level or underlying experience amount. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearmail
+
   |command = profession
   |desc    = Clears records of all received mail (including hidden progress flags.) This also clears the letters tab in the collections menu.
+
  |params  = {{t|I:ID}}
 +
   |desc    = Gives you the specified profession. Note that this just hard adds the profession, it's not a way to switch skill trees. Valid profession IDs from the base game are shown below.
 +
<table class="wikitable"><tr><th>Farming</th><th>Fishing</th><th>Foraging</th><th>Mining</th><th>Combat</th></tr>
 +
<tr><td>0 - Rancher</td><td>6 - Fisher</td><td>12 - Forester</td><td>18 - Miner</td><td>24 - Fighter</td></tr>
 +
<tr><td>1 - Tiller</td><td>7 - Trapper</td><td>13 - Gatherer</td><td>19 - Geologist</td><td>25 - Scout</td></tr>
 +
<tr><td>2 - Coopmaster</td><td>8 - Angler</td><td>14 - Lumberjack</td><td>20 - Blacksmith</td><td>26 - Brute</td></tr>
 +
<tr><td>3 - Shepherd</td><td>9 - Pirate</td><td>15 - Tapper</td><td>21 - Prospector</td><td>27 - Defender</td></tr>
 +
<tr><td>4 - Artisan</td><td>10 - Mariner</td><td>16 - Botanist</td><td>22 - Excavator</td><td>28 - Acrobat</td></tr>
 +
<tr><td>5 - Agriculturist</td><td>11 - Luremaster</td><td>17 - Tracker</td><td>23 - Gemologist</td><td>29 - Desperado</td></tr></table>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = mailfortomorrow,mft
+
   |command = showexperience
   |params  = {{t|S:mailID}},{{o|noletter}}
+
   |params  = {{t|I:skillID}}
   |desc    = Queues specified mail for delivery tomorrow. The ID is case-sensitive, and any zeros in the given ID will be replaced with underscores. See <tt>Data/mail</tt> for valid IDs (after replacement) in the base game. Because of the zero replacement, some letters (e.g. <tt>quest10</tt>) are inaccessible with this command; [[#broadcastmail|broadcastmail]] may be a useful alternative in those cases. If the second parameter is present (with any value), the "noletter" flag is set, which will add the mail to your mail received list without showing a "new mail" indicator.
+
   |desc    = Outputs your total experience amount for the specified skill in the SMAPI console. Valid skill IDs are 0 (Farming), 1 (Fishing), 2 (Foraging), 3 (Mining), 4 (Combat), and 5 (Luck).
 
}}
 
}}
{{/cmd
+
|}
  |command = seenmail
+
 
  |params  = {{t|S:mailID}}
+
====Statistics and achievements====
  |desc    = Marks specified mail as already received. The ID is case-sensitive; see <tt>Data/mail</tt> for valid IDs in the base game.
+
{| class="wikitable"
}}
  −
{{/cmd
  −
  |command = showmail
  −
  |params  = {{t|S:mailID}}
  −
  |desc    = Brings up the letter-reading window with the specified mail. The ID is case-sensitive; see <tt>Data/mail</tt> for valid IDs in the base game. If a match cannot be found, a blank window will briefly display and an ArgumentOutOfRange error will be triggered. Does not set the letter as received or cause it to show in the letter tab of the collections menu.
  −
  |example = <code>debug showmail SeaAmulet</code> will show the letter Lewis sends about Mermaid's Pendants.
  −
}}
  −
|}
  −
 
  −
====Quests====
  −
{| class="wikitable"
   
|-
 
|-
 
! command
 
! command
Line 726: Line 853:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = clearquests
+
   |command = achieve
   |desc    = Removes all quests from your journal/quest log.
+
  |params  = {{t|S:steamAchieveID}}
 +
   |desc    = Awards the specified Steam achievement. Steam achievements which correspond to in-game achievements use the same numeric ID as listed in [[Modding:Achievement data|Achievement data]] with one exception: the ID for ''Greenhorn'' is <samp>a0</samp> instead of just <samp>0</samp>. Steam-only achievements have a much longer string ID; these are listed below.
 +
<table class="wikitable"><tr><td><samp>Achievement_SingularTalent</samp> - ''Singular Talent''</td><td><samp>Achievement_MasterOfTheFiveWays</samp> - ''Master Of The Five Ways''</td></tr>
 +
<tr><td><samp>Achievement_LocalLegend</samp> - ''Local Legend''</td><td><samp>Achievement_Joja</samp> - ''Joja Co. Member Of The Year''</td></tr>
 +
<tr><td><samp>Achievement_FullHouse</samp> - ''Full House''</td><td><samp>Achievement_Stardrop</samp> - ''Mystery Of The Stardrops''</td></tr>
 +
<tr><td><samp>Achievement_TheBottom</samp> - '' The Bottom''</td><td><samp>Achievement_KeeperOfTheMysticRings</samp> - ''Protector Of The Valley''</td></tr>
 +
<tr><td><samp>Achievement_PrairieKing</samp> - ''Prairie King''</td><td><samp>Achievement_FectorsChallenge</samp> - ''Fector's Challenge''</td></tr></table>
 +
|example = <code>debug achieve 17</code> will award the Steam achievement for ''Gourmet Chef''.;<code>debug achieve Achievement_Stardrop</code> will award the Steam achievement for ''Mystery of the Stardrops''.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = collectquest
+
   |command = achievement
   |desc    = Starts a new random resource Gathering quest. If used multiple times on the same game day, the quest will always be the same.
+
  |params  = {{t|I:achieveID}}
 +
   |desc    = Awards the specified in-game achievement. See [[Modding:Achievement data|Achievement data]] for a list of IDs. This will also award the associated Steam achievement if you don't have it.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = completequest
+
   |command = caughtfish,fishcaught
   |params  = {{t|I:questID}}
+
   |params  = {{t|I:value}}
   |desc    = Completes specified quest and removes it from your journal. See <tt>Data/Quests</tt> for a list of IDs.
+
   |desc    = Sets the <samp>FishCaught</samp> stat to the specified amount.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = deliveryquest
+
   |command = changestat
   |desc    = Starts a new random item Delivery quest. If used multiple times on the same game day, the quest will always be the same.
+
  |params  = {{t|S:statID}},{{t|I:value}}
 +
   |desc    = Sets the specified stat to the specified value. These are different than the stats used in [[#getstat|getstat]]/[[#setstat|setstat]] (Technical note: they are entries in StardewValley.Stats.stat_dictionary). Known IDs as of version 1.4.3 are: <samp>trashCansChecked</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = getallquests
+
   |command = daysplayed,dap
   |desc    = Starts every quest from <tt>Data/Quests</tt> that you don't already have.
+
   |desc    = Shows a global message with the current value of the <samp>daysPlayed</samp> stat.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = quest
+
   |command = dp
   |params  = {{t|I:questID}}
+
   |params  = {{t|I:value}}
   |desc    = Starts the specified quest. See <tt>Data/Quests</tt> for a list of IDs.
+
   |desc    = Sets the <samp>daysPlayed</samp> stat to the specified amount.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = quests
+
   |command = getstat
   |desc    = Starts every quest from <tt>Data/Quests</tt> that you don't already have as well as a random item Delivery quest and a random Slay Monster quest.
+
  |params  = {{t|S:statID}}
 +
   |desc    = Outputs value of specified stat to the SMAPI console. Some of these values are also accessible in-game by interacting with a machine in the [[Casino]].
 +
  Stat IDs are case-sensitive (Technical note: they are the properties for the StardewValley.Stats class, but not all of them are actually tracked by the game.) Known IDs as of version 1.4.3 are: <samp>AverageBedtime</samp>, <samp>BarsSmelted</samp>, <samp>BeveragesMade</samp>, <samp>BouldersCracked</samp>, <samp>CaveCarrotsFound</samp>, <samp>CheeseMade</samp>, <samp>ChickenEggsLayed</samp>, <samp>CoalFound</samp>, <samp>CoinsFound</samp>, <samp>CopperFound</samp>, <samp>CowMilkProduced</samp>, <samp>CropsShipped</samp>, <samp>DaysPlayed</samp>, <samp>DiamondsFound</samp>, <samp>DirtHoed</samp>, <samp>DuckEggsLayed</samp>, <samp>FishCaught</samp>, <samp>GeodesCracked</samp>, <samp>GiftsGiven</samp>, <samp>GoatCheeseMade</samp>, <samp>GoatMilkProduced</samp>, <samp>GoldFound</samp>, <samp>GoodFriends</samp>, <samp>IndividualMoneyEarned</samp>, <samp>IridiumFound</samp>, <samp>IronFound</samp>, <samp>ItemsCooked</samp>, <samp>ItemsCrafted</samp>, <samp>ItemsForaged</samp>, <samp>ItemsShipped</samp>, <samp>MonstersKilled</samp>, <samp>MysticStonesCrushed</samp>, <samp>NotesFound</samp>, <samp>OtherPreciousGemsFound</samp>, <samp>PiecesOfTrashRecycled</samp>, <samp>PreservesMade</samp>, <samp>PrismaticShardsFound</samp>, <samp>QuestsCompleted</samp>, <samp>RabbitWoolProduced</samp>, <samp>RocksCrushed</samp>, <samp>SeedsSown</samp>, <samp>SheepWoolProduced</samp>, <samp>SlimesKilled</samp>, <samp>StarLevelCropsShipped</samp>, <samp>StepsTaken</samp>, <samp>SticksChopped</samp>, <samp>StoneGathered</samp>, <samp>StumpsChopped</samp>, <samp>TimesFished</samp>, <samp>TimesUnconscious</samp>, <samp>TrufflesFound</samp>, and <samp>WeedsEliminated</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removequest
+
   |command = killmonsterstat,kms
   |params  = {{t|I:questID}}
+
   |params  = {{t|S:monsterName}},{{t|I:value}}
   |desc    = Silently removes specified quest from your journal. See <tt>Data/Quests</tt> for a list of IDs.
+
   |desc    = Sets the kill stats for the specified monster to the specified value. The monster name should be the same as the keys in <samp>Data/Monsters</samp> but with spaces replaced with zeros; it is case-sensitive. The command will output a buggy response to the console due to referencing the wrong string key, but the stats are correctly set.
 +
  |example = <code>debug kms Dust0Spirit 499</code> will set the monster kill stats for [[Dust Sprite|Dust Sprites]] to 499 and output ''Drink Dust Spirit?''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = slayquest
+
   |command = mineinfo
   |desc    = Starts a new random Slay Monster quest. If used multiple times on the same game day, the quest will always be the same.
+
   |desc    = Outputs two mine-related stats to the SMAPI Console: <samp>MineShaft.lowestLevelReached</samp> and <samp>player.deepestMineLevel</samp>
 
}}
 
}}
|}
  −
  −
===NPCs===
  −
====Children====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = child,kid
+
   |command = perfection
   |desc    = If you have children, advances the age of the first child to the next stage. Otherwise, spawns a new child named "Baby" with gender and skin tone randomly chosen; the child will start at stage 3 (crawling) and may initially spawn out of bounds. You do not need to be married or have an upgraded house to use this command.
+
   |desc    = Makes a variety of changes to qualify for [[Perfection]]. These include maxing all friendships, marking all fish as caught, awarding and marking complete all cooking and crafting recipes, marking all items as shipped, setting the flags for all stardrops, setting all skill levels to 10, awarding 500 kills for all monsters, forcibly placing all 4 obelisks and the gold clock in the upper left corner of the farm, and giving 130 walnuts.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = child2
+
   |command = resetachievements
   |desc    = If you have multiple children, advances the age of the second child to the next stage. Otherwise, spawns a new child named "Baby2" with gender and skin tone randomly chosen; the child will start at stage 3 (crawling) and may initially spawn out of bounds. You do not need to be married or have an upgraded house to use this command.
+
   |desc    = Resets the Steam achievements.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearchildren
+
   |command = setstat
   |desc    = Removes all your children.
+
   |params  = {{t|S:statID}},{{t|I:value}}
}}
+
   |desc    = Sets the specified stat to the specified value. Stat IDs are case-sensitive; see [[#getstat|getstat]] more information.
{{/cmd
+
  |example = <code>debug setstat StepsTaken 99999</code> would set the ''Number of Steps Taken'' stat to 99999.
  |command = pregnant
  −
   |desc    = Sets a new baby to be born/adopted the next day. You may need to be already married (and have a house with a nursery) for this to work.
   
}}
 
}}
 
|}
 
|}
   −
====Spawning and removal====
+
===Collections and quests===
 +
====Cooking and crafting====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 800: Line 928:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = addkent
+
   |command = addallcrafting
   |desc    = Spawns [[Kent]] if after year 1.
+
   |desc    = Teaches you all crafting recipes. Basically the same as [[#crafting|crafting]], but this one does not check if you already know the recipe before adding so it may output some error messages to the console about duplicate keys.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = characterinfo
+
   |command = cooking
   |desc    = Displays a global message listing how many NPCs are in the current location.
+
   |desc    = Teaches you all cooking recipes.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearcharacters
+
   |command = cookingrecipe
   |desc    = Removes all NPCs who are in the current location.
+
  |params  = {{t|S:recipeName}}
 +
   |desc    = Teaches you the specified cooking recipe. Names are case-sensitive and may contain spaces.
 +
  |example = <code>debug cookingrecipe Seafoam Pudding</code> will give you the recipe to cook [[Seafoam Pudding]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clone
+
   |command = crafting
  |params  = {{t|S:npcName}}
+
   |desc    = Teaches you all crafting recipes.
   |desc    = Clones specified NPC and places the copy in the current location. Name is a fuzzy match.<br/>'''Warning: cloning <tt>farmer</tt> will crash the game.'''
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = killall
+
   |command = craftingrecipe
   |params  = {{t|S:npcName}}
+
   |params  = {{t|S:recipeName}}
   |desc    = Removes all NPCs except for the specified character. Name is an exact match, and they are only spared from removal if they are in the current location.
+
   |desc    = Teaches you the specified crafting recipe. Names are case-sensitive and may contain spaces.
 +
  |example = <code>debug craftingrecipe Ancient Seeds</code> will give you the recipe to craft plantable ancient seeds from the artifact.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = killnpc
+
   |command = slimecraft
  |params  = {{t|S:npcName}}
+
   |desc    = Teaches you the crafting recipes for [[Slime Incubator]] and [[Slime Egg-Press]].
  |desc    = Removes specified NPC from the game, checking all game locations. Name is an exact match.
  −
}}
  −
{{/cmd
  −
  |command = removenpc
  −
  |params  = {{t|S:npcName}}
  −
   |desc    = Removes specified NPC from the game, checking all game locations and buildings. Name is an exact match. Command will output a message to the console stating whether or not the NPC was found and removed.
   
}}
 
}}
 
|}
 
|}
   −
====Relationships====
+
====Fishing, museum, and secret notes====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 841: Line 965:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = dating
+
   |command = clearfishcaught
  |params  = {{t|S:npcName}}
+
   |desc    = Clears all records of which fish you have caught, resetting the collection. To also change the stat which tracks how many total fish have been caught, see [[#caughtfish|caughtfish]].
   |desc    = Sets your relationship stauts with specified NPC to <tt>Dating</tt>; i.e. marks them as having been given a bouquet. Name is an exact match.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = divorce
+
   |command = clearmuseum
   |desc    = Queues your farmer to divorce their spouse overnight.
+
   |desc    = Removes all donated items from the museum, emptying the museum displays and causing all artifacts and minerals to have the ''Gunther can tell you more about this...'' description. Does not affect the records of which artifacts and minerals have been found (''i.e.,'' the collection pages).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = engaged
+
   |command = deletearch
  |params  = {{t|S:npcName}}
+
   |desc    = Clears all records of which artifacts and minerals you have found.<br />'''Warning: Also clears all record of which fish you have caught and clears all received mail (including hidden progress flags).'''
   |desc    = Increases your friendship with specified NPC by 2500 points (10 hearts) and sets relationship status to <tt>Engaged</tt> with a wedding for the next day. Name is an exact match.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = friendall
+
   |command = museumloot
  |params  = {{o|I:value}}
+
   |desc    = Adds unfound artifacts and minerals to your inventory until it is full. Items added by this command will now be marked "found" on the collection pages.
   |desc    = Increases [[friendship]] with all socializable NPCs by the specified amount. If no amount is given, the increase will be 2500 points (10 hearts). All normal point caps are in place, so a bachelor you aren't dating will not increase past 8 hearts. Previously unmet NPCs will also be marked as met and have friendship increased with the following exceptions:
  −
<ul><li>[[Dwarf]] will be marked as met but not change friendship if you don't have the ''Dwarven Translation Guide''.</li>
  −
<li>[[Kent]] will not be included if you are still in year 1.</li>
  −
<li>[[Krobus]] will not be included if they have not yet been met in game.</li></ul>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = friendship,friend
+
   |command = newmuseumloot
  |params  = {{t|S:npcName}},{{t|I:value}}
+
   |desc    = Adds undonated artifacts and minerals to your inventory until it is full. Items added by this command increment the "Total found" count on the collection pages.
   |desc    = Sets friendship with specified NPC to specified value. This is a fuzzy match, and they will be marked as met if previously unmet.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = invitemovie
+
   |command = note
   |params  = {{t|S:npcName}}
+
   |params  = {{t|I:bookID}}
   |desc    = Invites specified NPC to see a movie today. This is a fuzzy match and you will still need your own ticket to enter the theatre.
+
   |desc    = Sets the count of [[Lost Books]] recovered to 18, even if you previously had found more, and brings up a window with the contents of the specified book. Book IDs above 18 will show the message ''There's a book missing here.''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = makeex
+
   |command = sn
   |params  = {{t|S:npcName}}
+
   |params  = {{o|I:noteID}}
   |desc    = Sets your relationship status with specified NPC to <tt>Divorced</tt>, removing any marriage or bouquet flag and listing them as ''ex-husband'' or ''ex-wife.'' Name is an exact match.
+
   |desc    = Adds specified secret note to your inventory. If no ID is specified, a random unseen note will be added. See <samp>Data/SecretNotes</samp> for a list of IDs.
 
}}
 
}}
{{/cmd
+
|}
  |command = marry
+
 
  |params  = {{t|S:npcName}}
+
====Mail====
  |desc    = Increases your friendship with specified NPC by 2500 points (10 hearts) and sets relationship status to <tt>Married</tt> with an anniversary of today. Name is a fuzzy match.
  −
}}
  −
{{/cmd
  −
  |command = wedding
  −
  |params  = {{t|S:npcName}}
  −
  |desc    = Sets specified NPC as your spouse and queues a wedding for today. Name is an exact match.
  −
}}
  −
|}
  −
 
  −
====Dialogue====
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 897: Line 1,004:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = db
+
   |command = allmail
  |params  = {{t|S:npcName}}
+
   |desc    = Queues every letter defined in <samp>Data/mail</samp> for delivery tomorrow.
   |desc    = Shows a dialogue box with the current dialogue for the specified NPC. Name is a fuzzy match and will default to Pierre if not supplied. This does count as having spoken to that NPC today, and if they don't have any more dialogue right now, the message ''Stack empty'' will be output to the console.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dialogue
+
   |command = allmailread
  |params  = {{t|S:npcName}},{{t|S:dialogueString}}
+
   |desc    = Marks every letter defined in <samp>Data/mail</samp> as already read. They will all be accessible in the letters tab of the collections menu.
   |desc    = Sets the dialogue for the specified character to the specified string. Name is a fuzzy match. The dialogue string should start with a zero and everything after will be parsed. It can include tokens such as <tt>@</tt> for the farmer name and portrait commands; see [[Modding:Dialogue#Format|Dialogue]] for format specifics.
  −
  |example = <code>debug dialogue Abi 0Hi @! Modding is fun!$h</code> would set [[Abigail|Abigail's]] next dialogue to be ''Hi (FarmerName)! Modding is fun!'' with her happy portrait.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = loaddialogue
+
   |command = broadcastmail
   |params  = {{t|S:npcName}},{{t|S:dialogueKey}}
+
   |params  = {{t|S:mailID}}
   |desc    = Sets the dialogue for the specified character using the specified asset key. Name is a fuzzy match. Key format appears to be <tt>file:key</tt> but exact specifics are unknown. Curly braces in the key (<tt>{</tt>, <tt>}</tt>) will be converted to angle brackets (<tt>&lt;</tt>, <tt>&gt;</tt>).
+
   |desc    = Queues specified mail for delivery tomorrow for all players. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = question
+
   |command = broadcastmailbox
   |params  = {{t|I:questionID}}
+
   |params  = {{t|S:mailID}}
   |desc    = Marks the specified dialogue question as answered.
+
   |desc    = Immediately adds specified mail to all players' mailboxes. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = sb
+
   |command = clearmail
   |params  = {{t|S:npcName}}
+
  |desc    = Clears records of all received mail '''(including hidden progress flags)'''. This also clears the letters tab in the collections menu.
   |desc    = Shows a speech bubble saying ''"Hello! This is a test"'' above the specified NPC's head. Name is a fuzzy match.
+
}}
 +
{{/cmd
 +
  |command = mailfortomorrow,mft
 +
   |params  = {{t|S:mailID}},{{o|noletter}}
 +
   |desc    = Queues specified mail for delivery tomorrow. The ID is case-sensitive, and any zeros in the given ID will be replaced with underscores. See <samp>Data/mail</samp> for valid IDs (after replacement) in the base game. Because of the zero replacement, some letters (''e.g.,'' <samp>quest10</samp>) are inaccessible with this command; [[#broadcastmail|broadcastmail]] may be a useful alternative in those cases. If the second parameter is present (with any value), the "noletter" flag is set, which will add the mail to your mail received list without showing a "new mail" indicator.
 +
}}
 +
{{/cmd
 +
  |command = seenmail
 +
  |params  = {{t|S:mailID}}
 +
  |desc    = Marks specified mail as already received. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = speech
+
   |command = showmail
   |params  = {{t|S:npcName}},{{t|S:dialogueKey}}
+
   |params  = {{t|S:mailID}}
   |desc    = Displays a dialogue box for the specified character saying the specified string. Name is a fuzzy match. The dialogue string should start with a zero and everything after will be parsed. It can include tokens such as <tt>@</tt> for the farmer name and portrait commands; see [[Modding:Dialogue#Format|Dialogue]] for format specifics. Useful for testing dialogue changes.
+
   |desc    = Brings up the letter-reading window with the specified mail. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game. If a match cannot be found, a blank window will briefly display and an ArgumentOutOfRange error will be triggered. Does not set the letter as received or cause it to show in the letter tab of the collections menu.
   |example = <code>debug speech Abi 0Hi @! Modding is fun!$h</code> would open a dialogue box of [[Abigail]] saying ''Hi (FarmerName)! Modding is fun!'' with her happy portrait.
+
   |example = <code>debug showmail SeaAmulet</code> will show the letter Lewis sends about Mermaid's Pendants.
 
}}
 
}}
 
|}
 
|}
   −
====Movement and warping====
+
====Quests and Special Orders====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 938: Line 1,051:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = facedirection, face, fd
+
   |command = clearquests
   |params  = {{t|S:npcName}},{{t|I:direction}}
+
   |desc    = Removes all quests from your journal/quest log.
   |desc    = Sets specified character to face the specified direction. Name is a fuzzy match and also accepts <tt>farmer</tt>. See [[Modding:Event_data#Directions|Event data]] for the valid directions.
+
}}
 +
{{/cmd
 +
  |command = collectquest
 +
   |desc    = Starts a new random resource Gathering quest. If used multiple times on the same game day, the quest will always be the same.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = faceplayer
+
   |command = completespecialorder,cso
  |params  = {{t|S:npcName}}
+
   |desc    = Completes all objectives for all currently active Special Orders and Qi Challenges.
   |desc    = Sets specified character to face towards the player. Name is a fuzzy match.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = hurry
+
   |command = completequest
   |params  = {{t|S:npcName}}
+
   |params  = {{t|I:questID}}
   |desc    = Warps specified character to the endpoint of their current schedule entry. Name is a fuzzy match.
+
   |desc    = Completes specified quest and removes it from your journal. See <samp>Data/Quests</samp> for a list of IDs.
  |example = <code>debug hurry pam</code> would cause [[Pam]] to immediately warp to the bus if entered during her morning walk after the bus has been repaired.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = jump
+
   |command = deliveryquest
  |params  = {{t|S:npcName}},{{o|F:velocity}}
+
   |desc    = Starts a new random item Delivery quest. If used multiple times on the same game day, the quest will always be the same.
   |desc    = Makes specified character jump with the specified velocity. Name is a fuzzy match and also accepts <tt>farmer</tt>. Velocity is a float and defaults to 8.0 if not supplied, which results in a jump of about half the height of the player character.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warpcharacter, wc
+
   |command = getallquests
  |params  = {{t|S:npcName}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
+
   |desc    = Starts every quest from <samp>Data/Quests</samp> that you don't already have.
   |desc    = Warps specified character to the given coordinates on the current map. Name is a fuzzy match. See [[Modding:Event_data#Directions|Event data]] for the valid directions; the default is <tt>2</tt>. Note: if you do not include enough parameters, an error message will be printed to the console which incorrectly states the default facing direction is <tt>1</tt>.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = warpcharacterto, wct
+
   |command = ordersboard
  |params  = {{t|S:npcName}},{{t|S:locationName}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
+
   |desc    = Shows the [[Quests#List of Special Orders|Special Orders]] quest board.
   |desc    = Warps specified character to the given coordinates on the specified map. Character name is a fuzzy match, but location is exact. See [[Modding:Event_data#Directions|Event data]] for the valid directions; the default is <tt>2</tt>. Note: if you do not include enough parameters, an error message will be printed to the console which incorrectly states the default facing direction is <tt>1</tt>.
  −
  |example = <code>debug wct robin Farm 69 16</code> would warp [[Robin]] to just right of the mailbox on the Farm map, facing downwards.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = whereis,where
+
   |command = qiboard
  |params  = {{t|S:npcName}}
+
   |desc    = Shows the [[Qi's Walnut Room#Special Orders Board|Qi Challenges]] quest board.
   |desc    = Outputs the location and coordinates of the specified character to the SMAPI console. Name is a fuzzy match.
   
}}
 
}}
|}
  −
  −
====Farm animals====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = animal
+
   |command = quest
   |params  = {{t|S:type}}
+
   |params  = {{t|I:questID}}
   |desc    = Adds a new baby animal of the specified type to the Farm. The animal will have a random name and be assigned to the correct type of building (if there is room). Type is a case-sensitive match with spaces allowed. Valid types for the base game are listed below.
+
   |desc    = Starts the specified quest. See <samp>Data/Quests</samp> for a list of IDs.
<ul><li><tt>Chicken</tt> - Randomly chooses between white, brown, and blue (if unlocked). <tt>Brown Chicken</tt> can be explicitly specified, but the result will still be random if trying to specify other colors.</li>
  −
<li><tt>Cow</tt> - Randomly chooses between white and brown. Colors can be explicitly specified by using <tt>Brown Cow</tt> or <tt>White Cow</tt>.</li>
  −
<li><tt>Dinosaur</tt></li>
  −
<li><tt>Duck</tt></li>
  −
<li><tt>Goat</tt></li>
  −
<li><tt>Pig</tt></li>
  −
<li><tt>Rabbit</tt></li>
  −
<li><tt>Sheep</tt></li>
  −
<li><tt>Void Chicken</tt></li>
  −
</ul>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = animalinfo
+
   |command = quests
   |desc    = Displays a global message with the count of the total number of farm animals.
+
   |desc    = Starts every quest from <samp>Data/Quests</samp> that you don't already have as well as a random item Delivery quest and a random Slay Monster quest.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = befriendanimals
+
   |command = removequest
   |params  = {{o|I:amount}}
+
   |params  = {{t|I:questID}}
   |desc    = Sets friendship of all animals who live (and are currently present) in the current location to the given amount. Default is 1000 (max).
+
   |desc    = Silently removes specified quest from your journal. See <samp>Data/Quests</samp> for a list of IDs.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fixanimals
+
   |command = slayquest
   |desc    = Goes through all Farm buildings and removes entries for animals which no longer live in that building.
+
   |desc    = Starts a new random Slay Monster quest. If used multiple times on the same game day, the quest will always be the same.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = growanimals
+
   |command = specialorder
   |desc    = Sets all animals who live in the current building to day 1 of adulthood. Must be done in a building such as a Barn or Coop. May cause each of them to eat hay.  
+
  |params  = {{t|S:questID}}
 +
   |desc    = Starts the Special Order (either town or Qi Challenge) with the specified ID. See <samp>Data/SpecialOrders</samp> for a list of IDs.
 
}}
 
}}
 +
|}
 +
 +
===NPCs===
 +
====Children====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = growanimalsfarm
+
   |command = child,kid
   |desc    = Sets all animals who live in the current location to day 1 of adulthood. Must be done on the Farm; this would apply to animals that no longer have homes due to building destruction such as after using [[#removebuildings|removebuildings]].
+
   |desc    = If you have children, advances the age of the first child to the next stage. Otherwise, spawns a new child named "Baby" with gender and skin tone randomly chosen; the child will start at stage 3 (crawling) and may initially spawn out of bounds. You do not need to be married or have an upgraded house to use this command.
 +
}}
 +
{{/cmd
 +
  |command = child2
 +
  |desc    = If you have multiple children, advances the age of the second child to the next stage. Otherwise, spawns a new child named "Baby2" with gender and skin tone randomly chosen; the child will start at stage 3 (crawling) and may initially spawn out of bounds. You do not need to be married or have an upgraded house to use this command.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = pauseanimals
+
   |command = clearchildren
   |desc    = Pauses all farm animals in the current location indefinitely. Exiting and re-entering may cause them to be randomly moved to a new spot, but they will remain paused.
+
   |desc    = Removes all your children.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = unpauseanimals
+
   |command = pregnant
   |desc    = Unpauses all farm animals in the current location.
+
   |desc    = Sets a new baby to be born/adopted the next day. You may need to be already married (and have a house with a nursery) for this to work.
 
}}
 
}}
 
|}
 
|}
   −
====Pets, horses, and monsters====
+
====Spawning and removal====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,037: Line 1,142:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = cat
+
   |command = addkent
  |params  = {{t|I:X}},{{t|I:Y}},{{o|I:breed}}
+
   |desc    = Spawns [[Kent]] if after year 1.
   |desc    = Spawns a new [[Cat]] at the given coordinates of the current location. Breed can be <tt>0</tt>, <tt>1</tt>, or <tt>2</tt> and determines which texture to use. This is an additional pet and does not replace any current pet(s).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = createdino
+
   |command = characterinfo
   |desc    = Spawns a [[Pepper Rex]] just to the right of your farmer.
+
   |desc    = Displays a global message listing how many NPCs are in the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dog
+
   |command = clearcharacters
  |params  = {{t|I:X}},{{t|I:Y}},{{o|I:breed}}
+
   |desc    = Removes all NPCs who are in the current location.
   |desc    = Spawns a new [[Dog]] at the given coordinates of the current location. Breed can be <tt>0</tt>, <tt>1</tt>, or <tt>2</tt> and determines which texture to use. This is an additional pet and does not replace any current pet(s).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = horse
+
   |command = clone
   |params  = {{t|I:X}},{{t|I:Y}}
+
   |params  = {{t|S:npcName}}
   |desc    = Spawns a new [[Horse]] at the given coordinates of the current location. Horse may disappear after dismounting if there is no stable for it.
+
   |desc    = Clones specified NPC and places the copy in the current location. Name is a fuzzy match.<br />'''Warning: cloning <samp>farmer</samp> will crash the game.'''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = killallhorses
+
   |command = killall
   |desc    = Removes all horses from all locations.
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Removes all NPCs except for the specified character. Name is an exact match, and they are only spared from removal if they are in the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = monster
+
   |command = killnpc
   |params  = {{t|S:type}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
+
   |params  = {{t|S:npcName}}
   |desc    = Spawns a monster of the specified type at the given coordinates of the current location. Only certain monster types seem to work. Known valid types include <tt>Bat</tt>, <tt>DinoMonster</tt>, <tt>DustSpirit</tt>, <tt>Fly</tt>, <tt>Ghost</tt>, <tt>GreenSlime</tt>, <tt>Grub</tt>, <tt>LavaCrab</tt>, <tt>Mummy</tt>, <tt>RockCrab</tt>,  <tt>RockGolem</tt>,  <tt>Serpent</tt>,  <tt>ShadowBrute</tt>,  <tt>ShadowShaman</tt>,  <tt>Skeleton</tt>, and <tt>SquidKid</tt>. <tt>Duggy</tt> may also work depending on the terrain.
+
   |desc    = Removes specified NPC from the game, checking all game locations. Name is an exact match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = owl
+
   |command = removenpc
   |desc    = Spawns an Owl in the current location.
+
   |params  = {{t|S:npcName}}
}}
+
   |desc    = Removes specified NPC from the game, checking all game locations and buildings. Name is an exact match. Command will output a message to the console stating whether or not the NPC was found and removed.
{{/cmd
  −
  |command = pettofarm
  −
   |desc    = If it is not raining, warps your pet to the pet bowl location on the Farm (Tech note: Location is initially set by checking for tile 1938 on Building layer). If it is raining, warps pet to the FarmHouse. Only works for host in multiplayer.
  −
}}
  −
{{/cmd
  −
  |command = togglecatperson
  −
  |desc    = Toggles your farmer's chosen pet preference between cat and dog. If you already have a pet, the inventory graphic will switch but the pet themselves will not be affected.
   
}}
 
}}
 
|}
 
|}
   −
===Festivals and events===
+
====Relationships====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,086: Line 1,183:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = ee
+
   |command = dating
   |desc    = Ends (and restarts) the current event.
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Sets your relationship status with specified NPC to <samp>Dating</samp>; ''i.e.,'' marks them as having been given a bouquet. Name is an exact match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = event
+
   |command = divorce
  |params  = {{t|S:locationName}},{{t|I:index}},{{o|S:dontClearEvents}}
+
   |desc    = Queues your farmer to divorce their spouse overnight. The spouse room may not be fully removed until you have slept and/or returned to title.
   |desc    = Starts the specified event in the specified location. The location name is a fuzzy match, but the second parameter is an index rather than an ID. This is basically a zero-based count of the item definitions in the appropriate data file, and since these definitions can be altered by mods this a difficult command to use. Because of this and the warning below, [[#ebi|ebi]] is often the better choice.<br/>'''Warning: This will clear the eventsSeen list unless a third parameter is supplied.'''
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = eventbyid,ebi
+
   |command = engaged
   |params  = {{t|I:eventID}}
+
   |params  = {{t|S:npcName}}
   |desc    = Starts the specified event. This does take an event ID; events which have prerequisites of other events might not start if those prerequisites have not been seen.
+
   |desc    = Increases your friendship with specified NPC by 2500 points (10 hearts) and sets relationship status to <samp>Engaged</samp> with a wedding for the next day. Name is an exact match.
  |example = <code>debug ebi 992559</code> would trigger the event where Emily visits the farm and gives you access to her sewing machine.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = eventover
+
   |command = friendall
   |desc    = Ends (and restarts) the current event. Seems to be essentially equivalent to [[#ee|ee]].
+
  |params  = {{o|I:value}}
 +
   |desc    = Increases [[friendship]] with all socializable NPCs by the specified amount. If no amount is given, the increase will be 2500 points (10 hearts). All normal point caps are in place, so a bachelor you aren't dating will not increase past 8 hearts. Previously unmet NPCs will also be marked as met and have friendship increased with the following exceptions:
 +
<ul><li>[[Dwarf]] will be marked as met but not change friendship if you don't have the ''Dwarven Translation Guide''.</li>
 +
<li>[[Kent]] will not be included if you are still in year 1.</li>
 +
<li>[[Krobus]] will not be included if they have not yet been met in game.</li></ul>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = eventseen, seenevent
+
   |command = friendship,friend
   |params  = {{t|I:eventID}}
+
   |params  = {{t|S:npcName}},{{t|I:value}}
   |desc    = Marks specifid event as seen by your farmer. Useful for enabling access to event-dependent areas or events.
+
   |desc    = Sets friendship with specified NPC to specified value. This is a fuzzy match, and they will be marked as met if previously unmet.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = eventtest
+
   |command = invitemovie
   |params  = {{t|S:locationName}},{{t|I:eventIndex}}
+
   |params  = {{t|S:npcName}}
   |desc    = Calls <tt>Util.EventTest()</tt> with the specified arguments. Defaults are "" and 0 respectively. Actual details unknown.
+
   |desc    = Invites specified NPC to see a movie today. This is a fuzzy match and you will still need your own ticket to enter the theatre.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = eventtestspecific
+
   |command = makeex
   |params  = {{t|S:whichEvents}},{{o|...}}
+
   |params  = {{t|S:npcName}}
   |desc    = Calls <tt>Util.EventTest()</tt> with the specified arguments. Arguments are interpreted as an array of strings. Actual details unknown.
+
   |desc    = Sets your relationship status with specified NPC to <samp>Divorced</samp>, removing any marriage or bouquet flag and listing them as ''ex-husband'' or ''ex-wife.'' Name is an exact match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = festival
+
   |command = marry
   |params  = {{t|S:festivalID}}
+
   |params  = {{t|S:npcName}}
   |desc    = Starts the specified festival ID. The season, day, and time will be set to match the starting time, and you will be warped to the correct location. Valid IDs are listed below.
+
   |desc    = <p>Increases your friendship with the specified NPC by 2500 points (10 hearts), and sets your relationship status to <samp>Married</samp> with an anniversary of today. Name is a fuzzy match.</p>
<table class="wikitable"><tr><td><tt>spring13</tt> - Egg Festival</td><td><tt>fall16</tt> - Stardew Valley Fair</td></tr>
+
 
<tr><td><tt>spring24</tt> - Flower Dance</td><td><tt>fall27</tt> - Spirit's Eve</td></tr>
+
Notes:
<tr><td><tt>summer11</tt> - Luau</td><td><tt>winter8</tt> - Festival of Ice</td></tr>
+
* If you haven't upgraded your farmhouse, also run <code>debug houseUpgrade 1</code> to avoid errors.
<tr><td><tt>summer28</tt> - Moonlight Jellies</td><td><tt>winter25</tt> - Winter Star</td></tr></table>
+
* The spouse room generally appears empty on the first day and you'll need to sleep for it and your spouse to spawn properly.
 +
 
 +
For non-vanilla marriage candidates:
 +
<ul><li>Trying to <samp>debug marry Krobus</samp> will work, but will set him as a spouse rather than a roommate. Most of his dialogue and actions remain the same, but he will use some hardcoded spouse lines where he would otherwise have his own version, have a heart instead of a smiley face for his hug/kiss sprite, and the social menu will list him as your spouse. It's unclear if you're able to have children this way.</li>
 +
<li>For other non-marriageable villagers, an empty spouse room will spawn and the NPC will move in. They will follow a basic hardcoded spouse schedule and can be kissed (although they won't have a kiss sprite), but they will rarely have dialogue.</li></ul>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = festivalscore
+
   |command = wedding
   |params  = {{t|I:value}}
+
   |params  = {{t|S:npcName}}
   |desc    = Adds the specified value to the festival score. The festival score has different meanings depending on which festival is active and includes the egg count at the Egg Hunt, number of fish caught at the Ice Festival, and star token count at the fall Fair.
+
   |desc    = Sets specified NPC as your spouse and queues a wedding for today. Name is an exact match. If the specified NPC is not normally marriageable, the wedding will still occur but they will be invisible on the wedding day.
}}
  −
{{/cmd
  −
  |command = leaveevent,endevent
  −
  |desc    = Ends (and restarts) the current event.<br/>'''Warning: also clears all records of events seen, dialogue questions answered, and mail received (including hidden mail flags.)'''
   
}}
 
}}
 
|}
 
|}
   −
===Minigames and cutscenes===
+
====Dialogue====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,147: Line 1,247:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = crane
+
   |command = db
   |desc    = Starts the Crane Game minigame from the Movie Theater populated with prizes based on which movie is (or would be) showing for the current month.
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Shows a dialogue box with the current dialogue for the specified NPC. Name is a fuzzy match and will default to Pierre if not supplied. This does count as having spoken to that NPC today, and if they don't have any more dialogue right now, the message ''Stack empty'' will be output to the console.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fish
+
   |command = dialogue
   |params  = {{t|I:fishID}}
+
   |params  = {{t|S:npcName}},{{t|S:dialogueString}}
   |desc    = Starts the fishing minigame with the specified fish hooked and a treasure chest available. You must have a fishing line already cast into the water before entering the command in order to actually receive the fish after completing the minigame. Additional "hits" may trigger during the game, and none of the fishing pole animations will play. See [[Modding:Object data|Object data]] for a list of valid IDs. TODO - check if non-fish IDs can be used.
+
   |desc    = Sets the dialogue for the specified character to the specified string. Name is a fuzzy match. The dialogue string should start with a zero and everything after will be parsed. It can include tokens such as <samp>@</samp> for the farmer name and portrait commands; see [[Modding:Dialogue#Format|Dialogue]] for format specifics.
 +
  |example = <code>debug dialogue Abi 0Hi @! Modding is fun!$h</code> would set [[Abigail|Abigail's]] next dialogue to be ''Hi (FarmerName)! Modding is fun!'' with her happy portrait.
 +
}}
 +
{{/cmd
 +
  |command = loaddialogue
 +
  |params  = {{t|S:npcName}},{{t|S:dialogueKey}}
 +
  |desc    = Sets the dialogue for the specified character using the specified asset key. Name is a fuzzy match. Key format appears to be <samp>file:key</samp> but exact specifics are unknown. Curly braces in the key (<samp>{</samp>, <samp>}</samp>) will be converted to angle brackets (<samp>&lt;</samp>, <samp>&gt;</samp>).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = oldminegame
+
   |command = phone
   |desc    = Starts the pre-1.4 version of Junimo Kart.
+
   |desc    = Brings up the [[Telephone]] menu.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = minegame
+
   |command = question
   |params  = {{o|S:mode}}
+
   |params  = {{t|I:questionID}}
   |desc    = Starts the [[Junimo Kart]] minigame. If the second argument is <tt>infinite</tt> the game will play ''Endless'' mode; if it is anything else (or missing), the game will play ''Progress'' mode.
+
   |desc    = Marks the specified dialogue question as answered.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = minigame
+
   |command = sb
   |params  = {{t|S:which}}
+
   |params  = {{t|S:npcName}}
   |desc    = Starts the specified minigame or cutscene. Valid choices are listed below.
+
   |desc    = Shows a speech bubble saying ''"Hello! This is a test"'' above the specified NPC's head. Name is a fuzzy match.
<ul>
  −
<li><tt>blastoff</tt> - starts the ''Robot Blastoff'' cutscene which plays during [[Maru|Maru's]] 10-heart event.</li>
  −
<li><tt>cowboy</tt> - starts the [[Journey of the Prairie King]] minigame.</li>
  −
<li><tt>grandpa</tt> - starts the ''[[Grandpa]] Story'' cutscene of which plays at the start of a new game.</li>
  −
<li><tt>haleyCows</tt> - starts the ''Haley Cow Pictures'' cutscene which plays during [[Haley|Haley's]] 8-heart event.</li>
  −
<li><tt>marucomet</tt> - starts the ''Maru Comet'' cutscene which plays during [[Maru|Maru's]] 14-heart event.</li>
  −
<li><tt>minecart</tt> - starts the [[Junimo Kart]] minigame in ''Progress'' mode.</li>
  −
<li><tt>plane</tt> - starts the ''Plane Fly-by'' cutscene which plays during [[Harvey|Harvey's]] 8-heart event.</li>
  −
<li><tt>slots</tt> - starts the ''Calico Spin'' [[Slot Machine]] minigame.</li>
  −
<li><tt>target</tt> - starts the Slingshot minigame from the [[Stardew Valley Fair]].</li>
  −
</ul>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = test
+
   |command = speech
   |desc    = Starts the ''Test'' minigame. This brings up a window showing a variety of flooring textures; left-click closes the window.
+
  |params  = {{t|S:npcName}},{{t|S:dialogueKey}}
 +
   |desc    = Displays a dialogue box for the specified character saying the specified string. Name is a fuzzy match. The dialogue string should start with a zero and everything after will be parsed. It can include tokens such as <samp>@</samp> for the farmer name and portrait commands; see [[Modding:Dialogue#Format|Dialogue]] for format specifics. Useful for testing dialogue changes.
 +
  |example = <code>debug speech Abi 0Hi @! Modding is fun!$h</code> would open a dialogue box of [[Abigail]] saying ''Hi (FarmerName)! Modding is fun!'' with her happy portrait.
 
}}
 
}}
 
|}
 
|}
   −
===Locations===
+
====Movement and warping====
====Terrain, trees, and crops====
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,195: Line 1,292:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = addquartz
+
   |command = facedirection, face, fd
   |params  = {{t|I:number}}
+
   |params  = {{t|S:npcName}},{{t|I:direction}}
   |desc    = Spawns the specified amount of ''Quartz'' terrain features on the Farm. The locations are randomly chosen and no checking is done on the underlying tiles, so they may wind up in impassable areas.
+
   |desc    = Sets specified character to face the specified direction. Name is a fuzzy match and also accepts <samp>farmer</samp>. See [[Modding:Event_data#Directions|Event data]] for the valid directions.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearfarm
+
   |command = faceplayer
   |desc    = Removes nearly everything from the Farm map such as grass, trees, debris, paths, and placed objects (including working machines and filled chests.)
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Sets specified character to face towards the player. Name is a fuzzy match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = dayupdate
+
   |command = hurry
   |params  = {{o|I:number}}
+
   |params  = {{t|S:npcName}}
   |desc    = Runs the DayUpdate for the current location the specified number of times. If the number of updates is not specified, it will default to 1. This simulates days passing for some things such as grass and fruit trees growing or fish reproducing in ponds. Other things may not progress the full amount; for example crop growth only advances one day because sprinklers will not be triggered and the [[#growcrops|growcrops]] command should be used for that instead.
+
   |desc    = Warps specified character to the endpoint of their current schedule entry. Name is a fuzzy match.
 +
  |example = <code>debug hurry pam</code> would cause [[Pam]] to immediately warp to the bus if entered during her morning walk after the bus has been repaired.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fruittrees
+
   |command = jump
   |desc    = Adds a month of growth to all fruit trees in the current location, causing even newly-planted saplings to instantly mature.
+
  |params  = {{t|S:npcName}},{{o|F:velocity}}
 +
   |desc    = Makes specified character jump with the specified velocity. Name is a fuzzy match and also accepts <samp>farmer</samp>. Velocity is a float and defaults to 8.0 if not supplied, which results in a jump of about half the height of the player character.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = grass
+
   |command = pathspousetome,pstm
   |desc    = Spawns long grass on all available tiles on the farm.
+
   |desc    = Causes your spouse (NPC only) to start walking towards you if they are already on the current map or warp directly to you otherwise.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = growcrops
+
   |command = warpcharacter, wc
   |params  = {{t|I:number}}
+
   |params  = {{t|S:npcName}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
   |desc    = Grows all crops in the current location the specified number of days.
+
   |desc    = Warps specified character to the given coordinates on the current map. Name is a fuzzy match. See [[Modding:Event_data#Directions|Event data]] for the valid directions; the default is <samp>2</samp>. Note: if you do not include enough parameters, an error message will be printed to the console which incorrectly states the default facing direction is <samp>1</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = growgrass
+
   |command = warpcharacterto, wct
   |params  = {{t|I:number}}
+
   |params  = {{t|S:npcName}},{{t|S:locationName}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
   |desc    = Grows long grass the specified number of times in the current location. This will cause already-placed grass to spread but will not necessarily create grass in clear areas.
+
   |desc    = Warps specified character to the given coordinates on the specified map. Character name is a fuzzy match, but location is exact. See [[Modding:Event_data#Directions|Event data]] for the valid directions; the default is <samp>2</samp>. Note: if you do not include enough parameters, an error message will be printed to the console which incorrectly states the default facing direction is <samp>1</samp>.
 +
  |example = <code>debug wct robin Farm 69 16</code> would warp [[Robin]] to just right of the mailbox on the Farm map, facing downwards.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = growwildtrees
+
   |command = warpcharactertome,wctm
   |desc    = Grows all wild trees (such as Oak) in the current location to maturity.
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Warps the specified character directly to you; name is a fuzzy match.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = localinfo
+
   |command = whereis,where
   |desc    = Outputs counts of grass, trees, other terrain features, objects, and temporary sprites for the current location. May be broken.
+
  |params  = {{t|S:npcName}}
 +
   |desc    = Outputs the location and coordinates of the specified character to the SMAPI console. Name is a fuzzy match.
 
}}
 
}}
 +
|}
 +
 +
====Farm animals====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 
{{/cmd
 
{{/cmd
   |command = mushroomtrees
+
   |command = animal
   |desc    = Turns all wild trees in the current location into mushroom trees.
+
  |params  = {{t|S:type}}
 +
   |desc    = Adds a new baby animal of the specified type to the Farm. The animal will have a random name and be assigned to the correct type of building (if there is room). Type is a case-sensitive match with spaces allowed. Valid types for the base game are listed below.
 +
<ul><li><samp>Chicken</samp> - Randomly chooses between white, brown, and blue (if unlocked). <samp>Brown Chicken</samp> can be explicitly specified, but the result will still be random if trying to specify other colors.</li>
 +
<li><samp>Cow</samp> - Randomly chooses between white and brown. Colors can be explicitly specified by using <samp>Brown Cow</samp> or <samp>White Cow</samp>.</li>
 +
<li><samp>Dinosaur</samp></li>
 +
<li><samp>Duck</samp></li>
 +
<li><samp>Goat</samp></li>
 +
<li><samp>Pig</samp></li>
 +
<li><samp>Rabbit</samp></li>
 +
<li><samp>Sheep</samp></li>
 +
<li><samp>Void Chicken</samp></li>
 +
<li><samp>Ostrich</samp></li>
 +
</ul>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = r
+
   |command = animalinfo
   |desc    = Resets current location which essentially simulates the player leaving and reentering. Most noticeable effect is the restarting of music tracks.
+
   |desc    = Displays a global message with the count of the total number of farm animals.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removedebris
+
   |command = befriendanimals
   |desc    = Removes all dropped items from the current location.
+
  |params  = {{o|I:amount}}
 +
   |desc    = Sets friendship of all animals who live (and are currently present) in the current location to the given amount. Default is 1000 (max).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removedirt
+
   |command = fixanimals
   |desc    = Removes (i.e. untills) all tilled dirt in the current location.<br/>'''Warning: this includes removing any currently-planted crops (including fully-grown ones).'''
+
   |desc    = Goes through all Farm buildings and removes entries for animals which no longer live in that building.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removelargetf
+
   |command = growanimals
   |desc    = Removes all large terrain features (such as bushes) from the current location.
+
   |desc    = Sets all animals who live in the current building to day 1 of adulthood. Must be done in a building such as a Barn or Coop. May cause each of them to eat hay.  
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removeterrainfeatures,removetf
+
   |command = growanimalsfarm
   |desc    = Removes all (small) terrain features such as grass and tilled dirt from the current location.<br/>'''Warning: this includes removing any currently-planted crops (including fully-grown ones).'''
+
   |desc    = Sets all animals who live in the current location to day 1 of adulthood. Must be done on the Farm; this would apply to animals that no longer have homes due to building destruction such as after using [[#removebuildings|removebuildings]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = spawnweeds
+
   |command = pauseanimals
  |params  = {{t|I:number}}
+
   |desc    = Pauses all farm animals in the current location indefinitely. Exiting and re-entering may cause them to be randomly moved to a new spot, but they will remain paused.
   |desc    = Spawns weeds the specified number of times. This will cause already-placed weeds to spread but will not necessarily create new weeds in clear areas.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = spreaddirt
+
   |command = unpauseanimals
   |desc    = Tills all unoccupied diggable tiles on the farm.
+
   |desc    = Unpauses all farm animals in the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = spreadseeds
+
   |command = warpanimaltome,watm
   |params  = {{t|I:seedID}}
+
   |params  = {{t|S:animalName}}
   |desc    = Plants specified seed in all tilled dirt on the farm. The argument is the [[Modding:Object data|Object ID]] for the seed item. Out of season crops can be planted this way but will not survive outside of the greenhouse.<br/>'''Warning: this will replace any currently-planted crops (including fully-grown ones) with the new seeds.'''
+
   |desc    = Warps the specified farm animal to you; name is a case-insensitive fuzzy search but will only work in a location that allows animals.
  |example = <code>debug spreadseeds 472</code> would plant [[Parsnip|parsnips]] on all hoed dirt tiles.
+
}}
}}
  −
{{/cmd
  −
  |command = water
  −
  |desc    = Waters all tilled soil on the current map.
  −
}}
  −
{{/cmd
  −
  |command = watercolor
  −
  |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
  −
  |desc    = Tints the water color for the current location. The parameters are red, green, and blue components and the actual RGBA color used will be (R/2, G/2, B/2, 127). This affects fishing ponds as well as lakes, rivers, etc., but the effect is temporary and the color will reset to normal if you leave and re-enter the map.
  −
}}
  −
{{/cmd
  −
  |command = whereore
  −
  |desc    = Outputs (to the SMAPI console) the coordinates of any "shiny spots" suitable for panning on the current map. Will output <tt>{X:0 Y:0}</tt> if there are no active panning spots.
  −
}}
   
|}
 
|}
   −
====Objects and lights====
+
====Pets, horses, and monsters====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,296: Line 1,406:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = clearfurniture
+
   |command = cat
   |desc    = Removes all furniture from the current location. Must be in a farmhouse/cabin. Use [[#removefurniture|removefurniture]] instead for other locations such as sheds.
+
  |params  = {{t|I:X}},{{t|I:Y}},{{o|I:breed}}
 +
   |desc    = Spawns a new [[Animals#Cat or Dog|Cat]] at the given coordinates of the current location. Breed can be <samp>0</samp>, <samp>1</samp>, or <samp>2</samp> and determines which texture to use. This is an additional pet and does not replace any current pet(s).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = clearlightglows
+
   |command = createdino
   |desc    = Removes all light glows from the current location.
+
   |desc    = Spawns a [[Pepper Rex]] just to the right of your farmer.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fencedecay
+
   |command = dog
   |params  = {{t|I:amount}}
+
   |params  = {{t|I:X}},{{t|I:Y}},{{o|I:breed}}
   |desc    = Ages all fences in the current location the specified amount of days.
+
   |desc    = Spawns a new [[Animals#Cat or Dog|Dog]] at the given coordinates of the current location. Breed can be <samp>0</samp>, <samp>1</samp>, or <samp>2</samp> and determines which texture to use. This is an additional pet and does not replace any current pet(s).
  |example = <code>debug fencedecay 60</code> would age all fences by 60 days which would break any basic Wood Fences (their base health is 54-58 days).
+
}}
 +
{{/cmd
 +
  |command = horse
 +
  |params  = {{t|I:X}},{{t|I:Y}}
 +
  |desc    = Spawns a new [[Animals#Horse|Horse]] at the given coordinates of the current location. Horse may disappear after dismounting if there is no stable for it.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = fillwithobject
+
   |command = killallhorses
  |params  = {{t|I:itemID}},{{o|S:isBigCraftable}}
+
   |desc    = Removes all horses from all locations.
   |desc    = Places the specified item on all open tiles in the current location. The first argument is the [[Modding:Object data|Object ID]] or [[Modding:Big Craftables data|Craftable ID]]. If the second argument is "<tt>true</tt>", the ID will be interpreted as a craftable, but if it is anything else (or missing) the ID will be interpreted as an object. Note that many objects spawned this way cannot be easily removed.
  −
  |example = <code>debug fillwithobject 13 true</code> would fill the map with [[Furnace|furnaces]].
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = readyforharvest,rfh
+
   |command = monster
   |params  = {{t|I:X}},{{t|I:Y}}
+
   |params  = {{t|S:type}},{{t|I:X}},{{t|I:Y}},{{o|I:facingDirection}}
   |desc    = Sets the machine at the specified coordinates to finish processing at the next clock update. If used to target a rock in the mine, quarry, etc. the rock's health will be reduced such that it only needs 1 more hit to break. A mod such as [https://www.nexusmods.com/stardewvalley/mods/679 Debug Mode] may be useful for getting coordinates.
+
   |desc    = Spawns a monster of the specified type at the given coordinates of the current location. Only certain monster types seem to work. Known valid types include <samp>Bat</samp>, <samp>DinoMonster</samp>, <samp>DustSpirit</samp>, <samp>Fly</samp>, <samp>Ghost</samp>, <samp>GreenSlime</samp>, <samp>Grub</samp>, <samp>LavaCrab</samp>, <samp>Mummy</samp>, <samp>RockCrab</samp>,  <samp>RockGolem</samp>, <samp>Serpent</samp>, <samp>ShadowBrute</samp>,  <samp>ShadowShaman</samp>,  <samp>Skeleton</samp>,  and <samp>SquidKid</samp>.  <samp>Duggy</samp> may also work depending on the terrain.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removefurniture
+
   |command = owl
   |desc    = Removes all furniture from the current location. Similar to [[#clearfurniture|clearfurniture]] but will also work in other decoratable locations such as sheds.
+
   |desc    = Spawns an Owl in the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removelights
+
   |command = pettofarm
   |desc    = Removes all light sources from the current location. This is temporary and they will be restored if the location is reset or re-entered.
+
   |desc    = If it is not raining, warps your pet to the pet bowl location on the Farm (Tech note: Location is initially set by checking for tile 1938 on Building layer). If it is raining, warps pet to the FarmHouse. Only works for host in multiplayer.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removeobjects
+
   |command = togglecatperson
   |desc    = Removes all placed objects from the current location. This includes things like fences, machines, and chests, but does not include flooring or long grass.
+
   |desc    = Toggles your farmer's chosen pet preference between cat and dog. If you already have a pet, the inventory graphic will switch but the pet themselves will not be affected.
 
}}
 
}}
 
|}
 
|}
   −
====Farm buildings====
+
===Festivals and events===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,342: Line 1,455:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = build
+
   |command = ee
  |params  = {{t|S:Name}},{{o|I:X}},{{o|I:Y}}
+
   |desc    = Ends (and restarts) the current event.
   |desc    = Builds the specified building at the given coordinates. Names are exact but spaces should be replaced with "<tt>9</tt>". If the coordinates are not specified, it will build just to the right of your farmer. While higher-level farm buildings such as Deluxe Barns can be immediately built this way, the incubator will be missing from Big or Deluxe Coops.
  −
  |example = <code>debug build Stone9Cabin</code> would build a new Stone Cabin next to the player.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = buildcoop,bc
+
   |command = event
   |params  = {{t|I:X}},{{t|I:Y}}
+
   |params  = {{t|S:locationName}},{{t|I:index}},{{o|S:dontClearEvents}}
   |desc    = Builds a new basic Coop at the specified coordinates.
+
   |desc    = Starts the specified event in the specified location. The location name is a fuzzy match, but the second parameter is an index rather than an ID. This is basically a zero-based count of the item definitions in the appropriate data file, and since these definitions can be altered by mods this a difficult command to use. Because of this and the warning below, [[#ebi|ebi]] is often the better choice.<br />'''Warning: This will clear the eventsSeen list unless a third parameter is supplied.'''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = movebuilding
+
   |command = eventbyid,ebi
   |params  = {{t|I:sourceX}},{{t|I:sourceY}},{{t|I:destX}},{{t|I:destY}}
+
   |params  = {{t|I:eventID}}
   |desc    = Moves building from specified source coordinates to specified destination coordinates. The coordinates are the upper-left corner of the building's footprint. The [https://www.nexusmods.com/stardewvalley/mods/541 Lookup Anything] mod is one of the easier ways to get the source coordinates of a building; they are listed under <tt>tileX</tt> and <tt>tileY</tt> in the debug info (needs <tt>ShowDataMiningFields</tt> enabled.)
+
   |desc    = Starts the specified event. This does take an event ID; events which have prerequisites of other events might not start if those prerequisites have not been seen.  
 +
  |example = <code>debug ebi 992559</code> would trigger the event where Emily visits the farm and gives you access to her sewing machine.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = removebuildings
+
   |command = eventover
   |desc    = Destroys all farm buildings. Animals within any of the buildings will also be removed, but animals which are outside will not be.
+
   |desc    = Ends (and restarts) the current event. Seems to be essentially equivalent to [[#ee|ee]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = spawncoopsandbarns
+
   |command = eventseen, seenevent
   |params  = {{t|I:number}}
+
   |params  = {{t|I:eventID}}
   |desc    = Spawns the specified number of buildings. The game will randomly choose either a Deluxe Barn full of cows or a Deluxe Coop full of chickens for each (equal chance). Their locaions are also randomly chosen and the game will try 20 times to find a spot for each before giving up. The coops created by this command will not have incubators.
+
   |desc    = Marks specifid event as seen by your farmer. Useful for enabling access to event-dependent areas or events.
 
}}
 
}}
|}
+
{{/cmd
 +
  |command = eventtest
 +
  |params  = {{t|S:locationName}},{{t|I:eventIndex}}
 +
  |desc    = Calls <samp>Util.EventTest()</samp> with the specified arguments. Defaults are "" and 0 respectively. Actual details unknown.
 +
}}
 +
{{/cmd
 +
  |command = eventtestspecific
 +
  |params  = {{t|S:whichEvents}},{{o|...}}
 +
  |desc    = Calls <samp>Util.EventTest()</samp> with the specified arguments. Arguments are interpreted as an array of strings. Actual details unknown.
 +
}}
 +
{{/cmd
 +
  |command = festival
 +
  |params  = {{t|S:festivalID}}
 +
  |desc    = Starts the specified festival ID. The season, day, and time will be set to match the starting time, and you will be warped to the correct location. Valid IDs are listed below.
 +
<table class="wikitable"><tr><td><samp>spring13</samp> - Egg Festival</td><td><samp>fall16</samp> - Stardew Valley Fair</td></tr>
 +
<tr><td><samp>spring24</samp> - Flower Dance</td><td><samp>fall27</samp> - Spirit's Eve</td></tr>
 +
<tr><td><samp>summer11</samp> - Luau</td><td><samp>winter8</samp> - Festival of Ice</td></tr>
 +
<tr><td><samp>summer28</samp> - Moonlight Jellies</td><td><samp>winter25</samp> - Winter Star</td></tr></table>
 +
}}
 +
{{/cmd
 +
  |command = festivalscore
 +
  |params  = {{t|I:value}}
 +
  |desc    = Adds the specified value to the festival score. The festival score has different meanings depending on which festival is active and includes the egg count at the Egg Hunt, number of fish caught at the Ice Festival, and star token count at the fall Fair.
 +
}}
 +
{{/cmd
 +
  |command = leaveevent,endevent
 +
  |desc    = Ends (and restarts) the current event.<br />'''Warning: also clears all records of events seen, dialogue questions answered, and mail received (including hidden mail flags.)'''
 +
}}
 +
{{/cmd
 +
  |command = runtestevent,rte
 +
  |desc    = Runs an event from the file <code>test_event.txt</code> in the root game folder. The first line of the file should specify the location where the event takes place, and the rest of the file should be the same as a normal event script except that line breaks will be treated as <code>/</code> delimiters.<br />'''Note: this file must use CRLF (Windows-style) line breaks, or it will fail to parse.''' If you are on Mac or Linux, make sure you convert when saving (any text editor should be able to do this).
 +
}}
 +
|}
   −
====Farmhouse====
+
===Minigames and cutscenes===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,376: Line 1,520:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = floor
+
   |command = boatjourney
  |params  = {{o|I:textureID}}
+
   |desc    = Plays the extended cutscene of the first boat trip to [[Ginger Island]]. The player will be warped to the Island Docks when the cutscene ends.
   |desc    = Sets all floors of your farmhouse to the specified texture. Valid texture numbers are <tt>0 - 55</tt>; see [[Flooring]] for previews but note that the IDs used by the game are 1 less than the numbers used for the wiki filenames. If no texture is specified, the game will use the next ID after the current floor texture without checking for overflow which can create bugged textures.
  −
  |example = <code>debug floor 22</code> would set all flooring in the house to the white and grey checkerboard style.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = houseupgrade,house,hu
+
   |command = crane
  |params  = {{t|I:upgradeLevel}}
+
   |desc    = Starts the [[Movie Theater#Crane Game|Crane Game]] minigame from the Movie Theater populated with prizes based on which movie is (or would be) showing for the current month.
   |desc    = Sets upgrade level of your farmhouse/cabin to the specified value. Valid values are <tt>0 - 3</tt>. Furniture and placed items will not be automatically moved and may wind up out of bounds. If done while the player is inside the house, warp points may not immediately update.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = upgradehouse
+
   |command = darts
   |desc    = Increases the upgrade level of your farmhouse/cabin to the next level (max 3). Furniture and placed items will not be automatically moved and may wind up out of bounds. If done while the player is inside the house, warp points may not immediately update.
+
   |desc    = Starts the [[Darts]] minigame from the [[Ginger Island#Pirate Cove|Pirate Cove]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = wall,w
+
   |command = fish
   |params  = {{o|I:textureID}}
+
   |params  = {{t|I:fishID}}
   |desc    = Sets all walls of your farmhouse to the specified texture. Valid texture numbers are <tt>0 - 111</tt>; see [[Wallpaper]] for previews but note that the IDs used by the game are 1 less than the numbers used for the wiki filenames. If no texture is specified, the game will use the next ID after the current wallpaper texture without checking for overflow which can create bugged textures.
+
   |desc    = Starts the fishing minigame with the specified fish hooked and a treasure chest available. You must have a fishing line already cast into the water before entering the command in order to actually receive the fish after completing the minigame. Additional "hits" may trigger during the game, and none of the fishing pole animations will play. See [[Modding:Items|object data]] for a list of valid IDs; non-fish objects can be used and caught.
  |example = <code>debug wall 21</code> would set all wallpaper in the house to the Joja style.
   
}}
 
}}
|}
  −
  −
====Special farm setups====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = farmmap
+
   |command = oldminegame
  |params  = {{o|I:mapID}}
+
   |desc    = Starts the pre-1.4 version of Junimo Kart.
   |desc    = Removes the current farm map and farmhouse from the game and creates a new farm of the specified type. The farm will be named after the type (e.g. "Standard Farm"). Valid types are: <tt>0</tt> (Standard), <tt>1</tt> (Riverland), <tt>2</tt> (Forest), <tt>3</tt> (Hilltop), <tt>4</tt> (Wilderness), or <tt>5</tt> (Four Corners).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = setupbigfarm
+
   |command = minegame
   |desc    = Clears the farm and then does the following:
+
  |params  = {{o|S:mode}}
  <ul><li>Spawns 3 Deluxe Coops full of chickens, 2 Deluxe Barns full of cows, a mill, a stable, and a silo in specific spots.</li>
+
   |desc    = Starts the [[Junimo Kart]] minigame. If the second argument is <samp>infinite</samp> the game will play ''Endless'' mode; if it is anything else (or missing), the game will play ''Progress'' mode.
  <li>Spawns a large field of random spring crops (force-grown for 8 days) with a wooden path through it and 4 junimo huts to the south.</li>
  −
  <li>Spawns two large patches of grass and 18 random fruit trees (cherry and apricot)</li>
  −
  <li>Spawns large groups of torches, furnaces, preserve jars, cheese presses, and kegs; the kegs are full of ancient fruit to make wine</li></ul>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = setupfarm
+
   |command = minigame
   |params  = {{o|S:clearMore}}
+
   |params  = {{t|S:which}}
   |desc    = Removes all farm buildings and completely clears large areas of the current farm (the presence of a second parameter causes a larger area to be cleared.) After this, the following things are done:
+
   |desc    = Starts the specified minigame or cutscene. Valid choices are listed below.
  <ul><li>Spawns a coop, barn, and silo in specific spots</li>
+
<ul>
  <li>Your money is increased by 20000</li>
+
<li><samp>blastoff</samp> - starts the ''Robot Blastoff'' cutscene which plays during [[Maru|Maru's]] 10-heart event.</li>
  <li>All tools are upgraded to Iridium quality</li>
+
<li><samp>cowboy</samp> - starts the [[Journey of the Prairie King]] minigame.</li>
  <li>Shears, a milk pail, and full stacks of wood, stone, wood fence, parsnip seeds, and bean starter are added to your inventory</li></ul>
+
<li><samp>fishing</samp> - starts the fishing minigame from the [[Stardew Valley Fair]]. Score does not seem to be kept although the timer does count down; once the timer runs out the farmer will be warped to coordinates (24, 71) on the current map.</li>
 +
<li><samp>grandpa</samp> - starts the ''[[Grandpa]] Story'' cutscene of which plays at the start of a new game.</li>
 +
<li><samp>haleyCows</samp> - starts the ''Haley Cow Pictures'' cutscene which plays during [[Haley|Haley's]] 8-heart event.</li>
 +
<li><samp>marucomet</samp> - starts the ''Maru Comet'' cutscene which plays during [[Maru|Maru's]] 14-heart event.</li>
 +
<li><samp>minecart</samp> - starts the [[Junimo Kart]] minigame in ''Progress'' mode.</li>
 +
<li><samp>plane</samp> - starts the ''Plane Fly-by'' cutscene which plays during [[Harvey|Harvey's]] 8-heart event.</li>
 +
<li><samp>slots</samp> - starts the ''Calico Spin'' [[Slot Machine]] minigame.</li>
 +
<li><samp>target</samp> - starts the Slingshot minigame from the [[Stardew Valley Fair]]. When the game is over the farmer will be warped to coordinates (24, 63) on the current map.</li>
 +
</ul>
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = setupfishpondfarm
+
   |command = test
  |params  = {{o|I:population}}
+
   |desc    = Starts the ''Test'' minigame. This brings up a window showing a variety of flooring textures; left-click closes the window.
   |desc    = Clears farm and then builds up to 96 fish ponds randomly filled with various types of fish. The population of each of the ponds will be set to the specified value and defaults to 10. The ponds are built in a large 12 x 8 grid but will not be placed in a spot blocked by other buildings, animals, or map features.
   
}}
 
}}
 
|}
 
|}
   −
====Community center and bundles====
+
===Locations===
 +
====Terrain, trees, and crops====
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 1,442: Line 1,577:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = addjunimo,aj,j
+
   |command = clearfarm
  |params  = {{t|I:X}},{{t|I:Y}},{{t|I:area}}
+
   |desc    = Removes nearly everything from the Farm map such as grass, trees, debris, paths, and placed objects (including working machines and filled chests.)
   |desc    = Adds a junimo at the specified coordinates and assigned to the given Community Center area. Valid areas are <tt>0</tt> (Pantry), <tt>1</tt> (Crafts Room), <tt>2</tt> (Fish Tank), <tt>3</tt> (Boiler Room), <tt>4</tt> (Vault), or <tt>5</tt> (Bulletin Board).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = allbundles
+
   |command = dayupdate
   |desc    = Marks all bundles complete.
+
  |params  = {{o|I:number}}
 +
   |desc    = Runs the DayUpdate for the current location the specified number of times. If the number of updates is not specified, it will default to 1. This simulates days passing for some things such as grass and fruit trees growing or fish reproducing in ponds. Other things may not progress the full amount; for example crop growth only advances one day because sprinklers will not be triggered and the [[#growcrops|growcrops]] command should be used for that instead.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = bundle
+
   |command = fruittrees
  |params  = {{t|I:ID}}
+
   |desc    = Adds a month of growth to all fruit trees in the current location, causing even newly-planted saplings to instantly mature.
   |desc    = Marks the specified bundle as complete. Valid IDs are listed below.
  −
<table class="wikitable"><tr><th>Pantry</th><th>Fish Tank</th><th>Crafts Room</th><th>Boiler Room</th><th>Vault</th><th>Bulletin Board</th></tr>
  −
<tr><td>0 - Spring Crops</td><td>6 - River Fish</td><td>13 - Spring Foraging</td><td>20 - Blacksmith's</td><td>23 - 2,500g</td><td>31 - Chef's</td></tr>
  −
<tr><td>1 - Summer Crops</td><td>7 - Lake Fish</td><td>14 - Summer Foraging</td><td>21 - Geologist's</td><td>24 - 5,000g</td><td>32 - Field Research</td></tr>
  −
<tr><td>2 - Fall Crops</td><td>8 - Ocean Fish</td><td>15 - Fall Foraging</td><td>22 - Adventurer's</td><td>25 - 10,000g</td><td>33 - Enchanter's</td></tr>
  −
<tr><td>3 - Quality Crops</td><td>9 - Night Fishing</td><td>16 - Winter Foraging</td><td></td><td>26 - 25,000g</td><td>34 - Dye</td></tr>
  −
<tr><td>4 - Animal</td><td>10 - Specialty Fish</td><td>17 - Construction</td><td></td><td></td><td>35 - Fodder</td></tr>
  −
<tr><td>5 - Artisan</td><td>11 - Crab Pot</td><td>19 - Exotic Foraging</td><td></td><td></td><td></td></tr></table>
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = ccload
+
   |command = grass
  |params  = {{t|I:area}}
+
   |desc    = Spawns long grass on all available tiles on the farm.
   |desc    = Removes the junimo note from and restores the specified area. Valid areas are <tt>0</tt> (Pantry), <tt>1</tt> (Crafts Room), <tt>2</tt> (Fish Tank), <tt>3</tt> (Boiler Room), <tt>4</tt> (Vault), or <tt>5</tt> (Bulletin Board).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = ccloadcutscene
+
   |command = growcrops
   |params  = {{t|I:area}}
+
   |params  = {{t|I:number}}
   |desc    = Plays the full restoration cutscene for the specified area including junimo dance and star retrieval. Valid areas are <tt>0</tt> (Pantry), <tt>1</tt> (Crafts Room), <tt>2</tt> (Fish Tank), <tt>3</tt> (Boiler Room), <tt>4</tt> (Vault), or <tt>5</tt> (Bulletin Board).
+
   |desc    = Grows all crops in the current location the specified number of days.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = completecc
+
   |command = growgrass
   |desc    = Adds all of the appropriate flags for Community Center completion and restores all areas.
+
  |params  = {{t|I:number}}
 +
   |desc    = Grows long grass the specified number of times in the current location. This will cause already-placed grass to spread but will not necessarily create grass in clear areas.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = completejoja
+
   |command = growwildtrees
   |desc    = Adds all of the appropriate flags for Joja membership and Community Development purchases.
+
   |desc    = Grows all wild trees (such as Oak) in the current location to maturity.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = junimogoodbye
+
   |command = localinfo
   |desc    = Plays the animation where 6 junimos wave goodbye in front of the hut in the Community Center and then that corner of the Community Center gets restored.
+
   |desc    = Outputs counts of grass, trees, other terrain features, objects, and temporary sprites for the current location. May be broken.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = junimonote,jn
+
   |command = mushroomtrees
  |params  = {{t|I:area}}
+
   |desc    = Turns all wild trees in the current location into mushroom trees.
   |desc    = Adds a junimo note (bundle scroll) for the specified area. Valid areas are <tt>0</tt> (Pantry), <tt>1</tt> (Crafts Room), <tt>2</tt> (Fish Tank), <tt>3</tt> (Boiler Room), <tt>4</tt> (Vault), or <tt>5</tt> (Bulletin Board).
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = junimostar
+
   |command = r
   |desc    = Causes a junimo to run to the hut and retrieve a star which is then placed on the plaque above the fireplace. Must be done in the Community Center.
+
   |desc    = Resets current location which essentially simulates the player leaving and reentering. Most noticeable effect is the restarting of music tracks.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = plaque
+
   |command = removedebris
   |desc    = Adds a star to the plaque above the Community Center fireplace.
+
   |desc    = Removes all dropped items from the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = resetjunimonotes
+
   |command = removedirt
   |desc    = Resets all bundles.
+
   |desc    = Removes (''i.e.,'' untills) all tilled dirt in the current location.<br />'''Warning: this includes removing any currently-planted crops (including fully-grown ones).'''
 
}}
 
}}
|}
  −
  −
====Other location-specific functions====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = beachbridge
+
   |command = removelargetf
   |desc    = Toggles the state of the beach bridge between fixed and not fixed.
+
   |desc    = Removes all large terrain features (such as bushes) from the current location.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = ladder,shaft
+
   |command = removeterrainfeatures,removetf
  |params  = {{o|I:X}},{{o|I:Y}}
+
   |desc    = Removes all (small) terrain features such as grass and tilled dirt from the current location.<br />'''Warning: this includes removing any currently-planted crops (including fully-grown ones).'''
   |desc    = Creates a ladder or mineshaft at the specified coordinates. If no coordinates are given, it will spawn 1 tile north of the player. In the regular mines, both versions of the command will create a ladder. In the Skull Caverns, <tt>ladder</tt> will randomly spawn either a ladder or mineshaft while <tt>shaft</tt> will always spawn a mineshaft.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = movie
+
   |command = spawnweeds
   |params  = {{o|S:npcNameOrMovieID}},{{o|S:movieID}}
+
   |params  = {{t|I:number}}
   |desc    = Starts a movie; this command is a bit complex with its parameter handling so be sure to check the examples. Note that this command can create a group with up to 3 guests instead of just the single guest allowed in normal play. Valid movie IDs are listed after the parameter explanation.
+
   |desc    = Spawns weeds the specified number of times. This will cause already-placed weeds to spread but will not necessarily create new weeds in clear areas.
<ul><li>If both parameters are given, it will start the specified movie (second parameter) with the specified NPC (fuzzy match on first parameter) as a guest.</li>
  −
<li>If just one parameter is given, it is interpreted as the movie ID and the NPC guest(s) will be chosen randomly.</li>
  −
<li>If no parameters are given, the movie will default to <tt>fall_movie_1</tt> (''It Howls in the Rain'') and the NPC guest(s) will be chosen randomly.</li></ul>
  −
<table class="wikitable"><tr><td><tt>spring_movie_0</tt> - ''The Brave Little Sapling''</td><td><tt>spring_movie_1</tt> - ''Natural Wonders''</td></tr>
  −
<tr><td><tt>summer_movie_0</tt> - ''Journey of the Prairie King''</td><td><tt>summer_movie_1</tt> - ''Wumbus''</td></tr>
  −
<tr><td><tt>fall_movie_0</tt> - ''Mysterium''</td><td><tt>fall_movie_1</tt> - ''It Howls in the Rain''</td></tr>
  −
<tr><td><tt>winter_movie_0</tt> - ''Miracle at Coldstar Ranch''</td><td><tt>winter_movie_1</tt> - ''The Zuzu City Express''</td></tr></table>
  −
'''Warning: This command also increases the save's <tt>uniqueID</tt> by 1 each time it is used, which will cause the save filename to change and impact some random events.'''
  −
  |example = <code>debug movie</code> would show ''It Howls in the Rain'' with random NPC guests.;<code>debug movie spring_movie_1</code> would show ''Natural Wonders'' with random NPC guests.;<code>debug movie Abi summer_movie_0</code> would show ''Journey of the Prairie King'' with Abigail and possibly 1 or 2 additional random NPC guests.
   
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = resetmines
+
   |command = spreaddirt
   |desc    = Resets "permanent mine changes" such as coal carts and treasure chests. Does not affect mines level progress or monster eradication goals.
+
   |desc    = Tills all unoccupied diggable tiles on the farm.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = train
+
   |command = spreadseeds
   |desc    = Causes a train to spawn at the Railroad.
+
  |params  = {{t|I:seedID}}
 +
   |desc    = Plants specified seed in all tilled dirt on the farm. The argument is the [[Modding:Items|object ID]] for the seed item. Out of season crops can be planted this way but will not survive outside of the greenhouse.<br />'''Warning: this will replace any currently-planted crops (including fully-grown ones) with the new seeds.'''
 +
  |example = <code>debug spreadseeds 472</code> would plant [[Parsnip|parsnips]] on all hoed dirt tiles.
 
}}
 
}}
|}
  −
  −
===World===
  −
====Date and time====
  −
{| class="wikitable"
  −
|-
  −
! command
  −
! description
  −
! &nbsp;
  −
|-
   
{{/cmd
 
{{/cmd
   |command = addhour
+
  |command = water
   |desc    = Increases time by 1 hour.
+
  |desc    = Waters all tilled soil on the current map.
}}
+
}}
{{/cmd
+
{{/cmd
   |command = addminute
+
  |command = watercolor
   |desc    = Increases time by 10 minutes.
+
  |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
}}
+
  |desc    = Tints the water color for the current location. The parameters are red, green, and blue components and the actual RGBA color used will be (R/2, G/2, B/2, 127). This affects fishing ponds as well as lakes, rivers, etc., but the effect is temporary and the color will reset to normal if you leave and re-enter the map.
{{/cmd
+
}}
   |command = day
+
{{/cmd
   |params  = {{t|I:value}}
+
  |command = whereore
   |desc    = Changes day of the month to the specified value; stays in current season and adjusts <tt>daysPlayed</tt> statistic appropriately.
+
  |desc    = Outputs (to the SMAPI console) the coordinates of any "shiny spots" suitable for panning on the current map. Will output <samp>{X:0 Y:0}</samp> if there are no active panning spots.
}}
+
}}
{{/cmd
+
|}
   |command = pausetime
+
 
   |desc    = Toggles game pause state. This is different from the normal chat <tt>/pause</tt> command in that the player still has free movement during the pause.
+
====Objects and lights====
}}
+
{| class="wikitable"
{{/cmd
+
|-
   |command = season
+
! command
   |params  = {{t|S:name}}
+
! description
   |desc    = Sets season to the specified value. The season name is case-insensitive; valid names are <tt>spring</tt>, <tt>summer</tt>, <tt>fall</tt>, and <tt>winter</tt>.
+
! &nbsp;
}}
+
|-
{{/cmd
+
{{/cmd
   |command = sleep, newday, nd
+
  |command = clearfurniture
   |desc    = Forces end of day.
+
  |desc    = Removes all furniture from the current location. Must be in a farmhouse/cabin. Use [[#removefurniture|removefurniture]] instead for other locations such as sheds.
}}
+
}}
{{/cmd
+
{{/cmd
   |command = time
+
  |command = clearlightglows
   |params  = {{t|I:value}}
+
  |desc    = Removes all light glows from the current location.
   |desc    = Sets current time to the specified value. This is essentially 24-hour time without a colon, although the stardew clock keeps running until 2600. See examples.
+
}}
   |example = <code>debug tme 2040</code> would set the time to 20:40 or 8:40pm.; <code>debug tme 2550</code> would set the time to 1:50am.
+
{{/cmd
}}
+
  |command = fencedecay
{{/cmd
+
  |params  = {{t|I:amount}}
   |command = year
+
  |desc    = Ages all fences in the current location the specified amount of days.
   |params  = {{t|I:value}}
+
  |example = <code>debug fencedecay 60</code> would age all fences by 60 days which would break any basic Wood Fences (their base health is 54-58 days).
   |desc    = Sets the current year to the specified value.
+
}}
}}
+
{{/cmd
 +
  |command = fillwithobject
 +
  |params  = {{t|I:itemID}},{{o|S:isBigCraftable}}
 +
  |desc    = Places the specified item on all open tiles in the current location. The first argument is the [[Modding:Items|object or big craftable ID]]. If the second argument is "<samp>true</samp>", the ID will be interpreted as a craftable, but if it is anything else (or missing) the ID will be interpreted as an object. Note that many objects spawned this way cannot be easily removed.
 +
  |example = <code>debug fillwithobject 13 true</code> would fill the map with [[Furnace|furnaces]].
 +
}}
 +
{{/cmd
 +
  |command = readyforharvest,rfh
 +
  |params  = {{t|I:X}},{{t|I:Y}}
 +
  |desc    = Sets the machine at the specified coordinates to finish processing at the next clock update. If used to target a rock in the mine, quarry, etc. the rock's health will be reduced such that it only needs 1 more hit to break. A mod such as [https://www.nexusmods.com/stardewvalley/mods/679 Debug Mode] may be useful for getting coordinates.
 +
}}
 +
{{/cmd
 +
  |command = removefurniture
 +
  |desc    = Removes all furniture from the current location. Similar to [[#clearfurniture|clearfurniture]] but will also work in other decoratable locations such as sheds.
 +
}}
 +
{{/cmd
 +
  |command = removelights
 +
  |desc    = Removes all light sources from the current location. This is temporary and they will be restored if the location is reset or re-entered.
 +
}}
 +
{{/cmd
 +
  |command = removeobjects
 +
  |desc    = Removes all placed objects from the current location. This includes things like fences, machines, and chests, but does not include flooring or long grass.
 +
}}
 +
|}
 +
 
 +
====Farm buildings====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = bpm
 +
  |desc    = Shows the building painting menu for the building immediately North of the player, or for the farmhouse if no such building is found.
 +
}}
 +
{{/cmd
 +
  |command = build
 +
  |params  = {{t|S:Name}},{{o|I:X}},{{o|I:Y}}
 +
  |desc    = Builds the specified building at the given coordinates. Names are exact but spaces should be replaced with "<samp>9</samp>". If the coordinates are not specified, it will build just to the right of your farmer. While higher-level farm buildings such as Deluxe Barns can be immediately built this way, the incubator will be missing from Big or Deluxe Coops.
 +
  |example = <code>debug build Stone9Cabin</code> would build a new Stone Cabin next to the player.
 +
}}
 +
{{/cmd
 +
  |command = buildcoop,bc
 +
  |params  = {{t|I:X}},{{t|I:Y}}
 +
  |desc    = Builds a new basic Coop at the specified coordinates.
 +
}}
 +
{{/cmd
 +
  |command = movebuilding
 +
  |params  = {{t|I:sourceX}},{{t|I:sourceY}},{{t|I:destX}},{{t|I:destY}}
 +
  |desc    = Moves building from specified source coordinates to specified destination coordinates. The coordinates are the upper-left corner of the building's footprint. The [https://www.nexusmods.com/stardewvalley/mods/541 Lookup Anything] mod is one of the easier ways to get the source coordinates of a building; they are listed under <samp>tileX</samp> and <samp>tileY</samp> in the debug info (needs <samp>ShowDataMiningFields</samp> enabled.)
 +
}}
 +
{{/cmd
 +
  |command = removebuildings
 +
  |desc    = Destroys all farm buildings. Animals within any of the buildings will also be removed, but animals which are outside will not be.
 +
}}
 +
{{/cmd
 +
  |command = spawncoopsandbarns
 +
  |params  = {{t|I:number}}
 +
  |desc    = Spawns the specified number of buildings. The game will randomly choose either a Deluxe Barn full of cows or a Deluxe Coop full of chickens for each (equal chance). Their locaions are also randomly chosen and the game will try 20 times to find a spot for each before giving up. The coops created by this command will not have incubators.
 +
}}
 +
|}
 +
 
 +
====Farmhouse====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = crib
 +
  |params  = {{t|I:mapID}}
 +
  |desc    = Sets the current crib style to the specified value. In the base game, valid values are <samp>0</samp> (no crib) or <samp>1</samp> (default crib). Additional styles may be possible through modding as the ID is appended to the map filename. For example, crib style 1 is specified by the file <samp>Maps/FarmHouse_Crib_1</samp>.
 +
}}
 +
{{/cmd
 +
  |command = floor
 +
  |params  = {{o|I:textureID}}
 +
  |desc    = Sets all floors of your farmhouse to the specified texture. Valid texture numbers are <samp>0 - 55</samp>; see [[Flooring]] for previews but note that the IDs used by the game are 1 less than the numbers used for the wiki filenames. If no texture is specified, the game will use the next ID after the current floor texture without checking for overflow which can create bugged textures.
 +
  |example = <code>debug floor 22</code> would set all flooring in the house to the white and grey checkerboard style.
 +
}}
 +
{{/cmd
 +
  |command = houseupgrade,house,hu
 +
  |params  = {{t|I:upgradeLevel}}
 +
  |desc    = Sets upgrade level of your farmhouse/cabin to the specified value. Valid values are <samp>0 - 3</samp>. Furniture and placed items will not be automatically moved and may wind up out of bounds. If done while the player is inside the house, warp points may not immediately update.
 +
}}
 +
{{/cmd
 +
  |command = renovate
 +
  |desc    = Opens the [[Carpenter's Shop#House Renovations|farmhouse renovation]] menu.
 +
}}
 +
{{/cmd
 +
  |command = upgradehouse
 +
  |desc    = Increases the upgrade level of your farmhouse/cabin to the next level (max 3). Furniture and placed items will not be automatically moved and may wind up out of bounds. If done while the player is inside the house, warp points may not immediately update.
 +
}}
 +
{{/cmd
 +
  |command = wall,w
 +
  |params  = {{o|I:textureID}}
 +
  |desc    = Sets all walls of your farmhouse to the specified texture. Valid texture numbers are <samp>0 - 111</samp>; see [[Wallpaper]] for previews but note that the IDs used by the game are 1 less than the numbers used for the wiki filenames. If no texture is specified, the game will use the next ID after the current wallpaper texture without checking for overflow which can create bugged textures.
 +
  |example = <code>debug wall 21</code> would set all wallpaper in the house to the Joja style.
 +
}}
 +
|}
 +
 
 +
====Special farm setups====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = farmmap
 +
  |params  = {{o|I:mapID}}
 +
  |desc    = Removes the current farm map and farmhouse from the game and creates a new farm of the specified type. The farm will be named after the type (''e.g.,'' "Standard Farm"). Valid types are: <samp>0</samp> (Standard), <samp>1</samp> (Riverland), <samp>2</samp> (Forest), <samp>3</samp> (Hilltop), <samp>4</samp> (Wilderness), or <samp>5</samp> (Four Corners).
 +
}}
 +
{{/cmd
 +
  |command = setupbigfarm
 +
  |desc    = Clears the farm and then does the following:
 +
  <ul><li>Spawns 3 Deluxe Coops full of chickens, 2 Deluxe Barns full of cows, a mill, a stable, and a silo in specific spots.</li>
 +
  <li>Spawns a large field of random spring crops (force-grown for 8 days) with a wooden path through it and 4 junimo huts to the south.</li>
 +
  <li>Spawns two large patches of grass and 18 random fruit trees (cherry and apricot)</li>
 +
  <li>Spawns large groups of torches, furnaces, preserves jars, cheese presses, and kegs; the kegs are full of ancient fruit to make wine</li></ul>
 +
}}
 +
{{/cmd
 +
  |command = setupfarm
 +
  |params  = {{o|S:clearMore}}
 +
  |desc    = Removes all farm buildings and completely clears large areas of the current farm (the presence of a second parameter causes a larger area to be cleared.) After this, the following things are done:
 +
  <ul><li>Spawns a coop, barn, and silo in specific spots</li>
 +
  <li>Your money is increased by 20000</li>
 +
  <li>All tools are upgraded to Iridium quality</li>
 +
  <li>Shears, a milk pail, and full stacks of wood, stone, wood fence, parsnip seeds, and bean starter are added to your inventory</li></ul>
 +
}}
 +
{{/cmd
 +
  |command = setupfishpondfarm
 +
  |params  = {{o|I:population}}
 +
  |desc    = Clears farm and then builds up to 96 fish ponds randomly filled with various types of fish. The population of each of the ponds will be set to the specified value and defaults to 10. The ponds are built in a large 12 x 8 grid but will not be placed in a spot blocked by other buildings, animals, or map features.
 +
}}
 +
|}
 +
 
 +
====Community center and bundles====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = addjunimo,aj,j
 +
  |params  = {{t|I:X}},{{t|I:Y}},{{t|I:area}}
 +
  |desc    = Adds a junimo at the specified coordinates and assigned to the given Community Center area. Valid areas are <samp>0</samp> (Pantry), <samp>1</samp> (Crafts Room), <samp>2</samp> (Fish Tank), <samp>3</samp> (Boiler Room), <samp>4</samp> (Vault), or <samp>5</samp> (Bulletin Board).
 +
}}
 +
{{/cmd
 +
  |command = allbundles
 +
  |desc    = Marks all bundles complete.
 +
}}
 +
{{/cmd
 +
  |command = bundle
 +
  |params  = {{t|I:ID}}
 +
  |desc    = Marks the specified bundle as complete. Valid IDs are listed below.
 +
<table class="wikitable"><tr><th>Pantry</th><th>Fish Tank</th><th>Crafts Room</th><th>Boiler Room</th><th>Vault</th><th>Bulletin Board</th><th>Joja Ruins</th></tr>
 +
<tr><td>0 - Spring Crops</td><td>6 - River Fish</td><td>13 - Spring Foraging</td><td>20 - Blacksmith's</td><td>23 - 2,500g</td><td>31 - Chef's</td><td>36 - Missing</td></tr>
 +
<tr><td>1 - Summer Crops</td><td>7 - Lake Fish</td><td>14 - Summer Foraging</td><td>21 - Geologist's</td><td>24 - 5,000g</td><td>32 - Field Research</td><td></td></tr>
 +
<tr><td>2 - Fall Crops</td><td>8 - Ocean Fish</td><td>15 - Fall Foraging</td><td>22 - Adventurer's</td><td>25 - 10,000g</td><td>33 - Enchanter's</td><td></td></tr>
 +
<tr><td>3 - Quality Crops</td><td>9 - Night Fishing</td><td>16 - Winter Foraging</td><td></td><td>26 - 25,000g</td><td>34 - Dye</td><td></td></tr>
 +
<tr><td>4 - Animal</td><td>10 - Specialty Fish</td><td>17 - Construction</td><td></td><td></td><td>35 - Fodder</td><td></td></tr>
 +
<tr><td>5 - Artisan</td><td>11 - Crab Pot</td><td>19 - Exotic Foraging</td><td></td><td></td><td></td><td></td></tr></table>
 +
}}
 +
{{/cmd
 +
  |command = ccload
 +
  |params  = {{t|I:area}}
 +
  |desc    = Removes the junimo note from and restores the specified area. Valid areas are <samp>0</samp> (Pantry), <samp>1</samp> (Crafts Room), <samp>2</samp> (Fish Tank), <samp>3</samp> (Boiler Room), <samp>4</samp> (Vault), or <samp>5</samp> (Bulletin Board).
 +
}}
 +
{{/cmd
 +
  |command = ccloadcutscene
 +
  |params  = {{t|I:area}}
 +
  |desc    = Plays the full restoration cutscene for the specified area including junimo dance and star retrieval. Valid areas are <samp>0</samp> (Pantry), <samp>1</samp> (Crafts Room), <samp>2</samp> (Fish Tank), <samp>3</samp> (Boiler Room), <samp>4</samp> (Vault), or <samp>5</samp> (Bulletin Board).
 +
}}
 +
{{/cmd
 +
  |command = completecc
 +
  |desc    = Adds all of the appropriate flags for Community Center completion and restores all areas.
 +
}}
 +
{{/cmd
 +
  |command = completejoja
 +
  |desc    = Adds all of the appropriate flags for Joja membership and Community Development purchases.
 +
}}
 +
{{/cmd
 +
  |command = junimogoodbye
 +
  |desc    = Plays the animation where 6 junimos wave goodbye in front of the hut in the Community Center and then that corner of the Community Center gets restored.
 +
}}
 +
{{/cmd
 +
  |command = junimonote,jn
 +
  |params  = {{t|I:area}}
 +
  |desc    = Adds a junimo note (bundle scroll) for the specified area. Valid areas are <samp>0</samp> (Pantry), <samp>1</samp> (Crafts Room), <samp>2</samp> (Fish Tank), <samp>3</samp> (Boiler Room), <samp>4</samp> (Vault), or <samp>5</samp> (Bulletin Board).
 +
}}
 +
{{/cmd
 +
  |command = junimostar
 +
  |desc    = Causes a junimo to run to the hut and retrieve a star which is then placed on the plaque above the fireplace. Must be done in the Community Center.
 +
}}
 +
{{/cmd
 +
  |command = plaque
 +
  |desc    = Adds a star to the plaque above the Community Center fireplace.
 +
}}
 +
{{/cmd
 +
  |command = resetjunimonotes
 +
  |desc    = Resets all bundles.
 +
}}
 +
{{/cmd
 +
  |command = shufflebundles
 +
  |desc    = Regenerates bundles using remixed bundle logic and without a specific random seed.
 +
}}
 +
|}
 +
 
 +
====Other location-specific functions====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = beachbridge
 +
  |desc    = Toggles the state of the beach bridge between fixed and not fixed.
 +
}}
 +
{{/cmd
 +
  |command = ladder,shaft
 +
  |params  = {{o|I:X}},{{o|I:Y}}
 +
  |desc    = Creates a ladder or mineshaft at the specified coordinates. If no coordinates are given, it will spawn 1 tile north of the player. In the regular mines, both versions of the command will create a ladder. In the Skull Caverns, <samp>ladder</samp> will randomly spawn either a ladder or mineshaft while <samp>shaft</samp> will always spawn a mineshaft.
 +
}}
 +
{{/cmd
 +
  |command = minedifficulty,md
 +
  |params  = {{o|I:difficultyLevel}}
 +
  |desc    = Sets the difficulty of the mines to the specified level. In the base game, normal difficulty is <samp>0</samp> and the harder difficulty corresponding to the "Danger in the Deep" quest or [[The Mines#Shrine of Challenge|Shrine of Challenge]] activation is <samp>1</samp>. Higher numbers can be used. If no difficulty level is specified, command will simply print the current difficulty level to the console.
 +
}}
 +
{{/cmd
 +
  |command = movie
 +
  |params  = {{o|S:npcNameOrMovieID}},{{o|S:movieID}}
 +
  |desc    = Starts a movie; this command is a bit complex with its parameter handling so be sure to check the examples. Note that this command can create a group with up to 3 guests instead of just the single guest allowed in normal play. Valid movie IDs are listed after the parameter explanation.
 +
<ul><li>If both parameters are given, it will start the specified movie (second parameter) with the specified NPC (fuzzy match on first parameter) as a guest.</li>
 +
<li>If just one parameter is given, it is interpreted as the movie ID and the NPC guest(s) will be chosen randomly.</li>
 +
<li>If no parameters are given, the movie will default to <samp>fall_movie_1</samp> (''It Howls in the Rain'') and the NPC guest(s) will be chosen randomly.</li></ul>
 +
<table class="wikitable"><tr><td><samp>spring_movie_0</samp> - ''The Brave Little Sapling''</td><td><samp>spring_movie_1</samp> - ''Natural Wonders''</td></tr>
 +
<tr><td><samp>summer_movie_0</samp> - ''Journey of the Prairie King''</td><td><samp>summer_movie_1</samp> - ''Wumbus''</td></tr>
 +
<tr><td><samp>fall_movie_0</samp> - ''Mysterium''</td><td><samp>fall_movie_1</samp> - ''It Howls in the Rain''</td></tr>
 +
<tr><td><samp>winter_movie_0</samp> - ''Miracle at Coldstar Ranch''</td><td><samp>winter_movie_1</samp> - ''The Zuzu City Express''</td></tr></table>
 +
'''Warning: This command also increases the save's <samp>uniqueID</samp> by 1 each time it is used, which will cause the save filename to change and impact some random events.'''
 +
  |example = <code>debug movie</code> would show ''It Howls in the Rain'' with random NPC guests.;<code>debug movie spring_movie_1</code> would show ''Natural Wonders'' with random NPC guests.;<code>debug movie Abi summer_movie_0</code> would show ''Journey of the Prairie King'' with Abigail and possibly 1 or 2 additional random NPC guests.
 +
}}
 +
{{/cmd
 +
  |command = pgb
 +
  |desc    = Prints the [[Ginger Island#Gem Birds|Gem Bird Puzzle]] solution to the console.
 +
}}
 +
{{/cmd
 +
  |command = resetmines
 +
  |desc    = Resets "permanent mine changes" such as coal carts and treasure chests. Does not affect mines level progress or monster eradication goals.
 +
}}
 +
{{/cmd
 +
  |command = returneddonations
 +
  |desc    = Opens the "returned donations" menu of the Lost and Found box from the [[Mayor's Manor]].
 +
}}
 +
{{/cmd
 +
  |command = skullcavedifficulty,scd
 +
  |params  = {{o|I:difficultyLevel}}
 +
  |desc    = Sets the difficulty of the Skull Cavern to the specified level. In the base game, normal difficulty is <samp>0</samp> and the harder difficulty corresponding to the "Skull Cavern Invasion" quest is <samp>1</samp>. Higher numbers can be used. If no difficulty level is specified, command will simply print the current difficulty level to the console.
 +
  |example = <code>debug scd 1</code> would activate hard mode Skull Cavern outside of the "Skull Cavern Invasion" quest.
 +
}}
 +
{{/cmd
 +
  |command = train
 +
  |desc    = Causes a train to spawn at the Railroad.
 +
}}
 +
|}
 +
 
 +
===World===
 +
====Date and time====
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
   |command = addhour
 +
   |desc    = Increases time by 1 hour.
 +
}}
 +
{{/cmd
 +
   |command = addminute
 +
   |desc    = Increases time by 10 minutes.
 +
}}
 +
{{/cmd
 +
   |command = day
 +
   |params  = {{t|I:value}}
 +
   |desc    = Changes day of the month to the specified value; stays in current season and adjusts <samp>daysPlayed</samp> statistic appropriately.
 +
}}
 +
{{/cmd
 +
   |command = pausetime
 +
   |desc    = Toggles game pause state. This is different from the normal chat <samp>/pause</samp> command in that the player still has free movement during the pause.
 +
}}
 +
{{/cmd
 +
   |command = season
 +
   |params  = {{t|S:name}}
 +
   |desc    = Sets season to the specified value. The season name is case-insensitive; valid names are <samp>spring</samp>, <samp>summer</samp>, <samp>fall</samp>, and <samp>winter</samp>.
 +
}}
 +
{{/cmd
 +
   |command = sleep, newday, nd
 +
   |desc    = Forces end of day.
 +
}}
 +
{{/cmd
 +
   |command = time
 +
   |params  = {{t|I:value}}
 +
   |desc    = Sets current time to the specified value. This is essentially 24-hour time without a colon, although the stardew clock keeps running until 2600. See examples.
 +
   |example = <code>debug time 2040</code> would set the time to 20:40 or 8:40pm.; <code>debug time 2550</code> would set the time to 1:50am.
 +
}}
 +
{{/cmd
 +
   |command = year
 +
   |params  = {{t|I:value}}
 +
   |desc    = Sets the current year to the specified value.
 +
}}
 
|}
 
|}
   Line 1,599: Line 2,012:  
{{/cmd
 
{{/cmd
 
   |command = debrisweather
 
   |command = debrisweather
   |desc    = Toggles "debris" weather (i.e. windy weather with floating leaves) on and off. Does not change the weather icon on the HUD.
+
   |desc    = Toggles "debris" weather (''i.e.,'' windy weather with floating leaves) on and off. Does not change the weather icon on the HUD.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,612: Line 2,025:  
{{/cmd
 
{{/cmd
 
   |command = resetworldstate
 
   |command = resetworldstate
   |desc    = Clears all world state IDs which track map changes such as whether the beach bridge is fixed, whether Trash Bear has done his thing and various small changes from heart events.<br/>'''Warning: Also clears records of found artifacts and minerals, fish caught, events seen, and mail received (including hidden progress flags.)'''
+
   |desc    = Clears all world state IDs which track map changes such as whether the beach bridge is fixed, whether Trash Bear has done his thing and various small changes from heart events.<br />'''Warning: Also clears records of found artifacts and minerals, fish caught, events seen, and mail received (including hidden progress flags.)'''
 
}}
 
}}
 
|}
 
|}
Line 1,639: Line 2,052:  
   |command = inputsim,is
 
   |command = inputsim,is
 
   |params  = {{t|S:type}}
 
   |params  = {{t|S:type}}
   |desc    = Sets input simulator to the specified type. Valid types are <tt>spamtool</tt> and <tt>spamlr</tt>. Details unknown.
+
   |desc    = Sets input simulator to the specified type. Valid types are <samp>spamtool</samp> and <samp>spamlr</samp>. Details unknown.
 +
}}
 +
{{/cmd
 +
  |command = language
 +
  |desc    = Brings up the language selection menu.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = musicvolume, mv, m
 
   |command = musicvolume, mv, m
 
   |params  = {{t|D:value}}
 
   |params  = {{t|D:value}}
   |desc    = Sets music volume to the specified value. This is a double-precision float in the range of <tt>0 - 1</tt>.
+
   |desc    = Sets music volume to the specified value. This is a double-precision float in the range of <samp>0 - 1</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,653: Line 2,070:  
   |command = runmacro, rm
 
   |command = runmacro, rm
 
   |params  = {{t|S:filename}}
 
   |params  = {{t|S:filename}}
   |desc    = Runs the specified macro file. The given filename will have <tt>.txt</tt> appended to it. See [[#Macros|Macros]] for more details.
+
   |desc    = Runs the specified macro file. The given filename will have <samp>.txt</samp> appended to it. See [[#Macros|Macros]] for more details.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = save
 
   |command = save
 
   |desc    = Toggles end of day saving on or off. Similar to [[#nosave|nosave]] but does not output a status message.
 
   |desc    = Toggles end of day saving on or off. Similar to [[#nosave|nosave]] but does not output a status message.
 +
}}
 +
{{/cmd
 +
  |command = showplurals
 +
  |desc    = Prints (to the console) the plural forms of all items listed in <samp>Data/ObjectInformation</samp> and <samp>Data/BigCraftablesInformation</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,665: Line 2,086:  
{{/cmd
 
{{/cmd
 
   |command = version
 
   |command = version
   |desc    = Outputs the assembly version number to the console. Note this is different from the more user-friendly version that can be accessed from the credits screen. For example, running this command on Stardew Valley 1.4.3 for Windows will output <tt>1.3.7286.33936</tt>
+
   |desc    = Outputs the assembly version number to the console. Note this is different from the more user-friendly version that can be accessed from the credits screen. For example, running this command on Stardew Valley 1.4.3 for Windows will output <samp>1.3.7286.33936</samp>
 
}}
 
}}
 
|}
 
|}
Line 1,687: Line 2,108:  
{{/cmd
 
{{/cmd
 
   |command = netjoin
 
   |command = netjoin
   |desc    = Details unknown.
+
   |desc    = Calls up the farmhand menu. Details unknown.
 +
}}
 +
{{/cmd
 +
  |command = split
 +
  |params  = {{o|I:playerIndex}}
 +
  |desc    = Adds another split-screen multiplayer instance for the specified player index or starts split-screen mode otherwise.
 
}}
 
}}
 
|}
 
|}
Line 1,768: Line 2,194:  
{{/cmd
 
{{/cmd
 
   |command = animationpreviewtool,apt
 
   |command = animationpreviewtool,apt
   |desc    = Opens a menu allowing you to preview different farmer animations and change some appearance options.
+
   |desc    = Opens a menu allowing you to preview different farmer animations and change some appearance options. Useful for event modding. '''Warning: previewing the "passOutTired" animation will make your farmer pass out as if it's 2 am and start a new day.'''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,784: Line 2,210:  
{{/cmd
 
{{/cmd
 
   |command = framebyframe, fbf
 
   |command = framebyframe, fbf
   |desc    = Turns on "frame-by-frame" mode which pauses the game and allows you to advance time/animations one frame at a time by hitting the <tt>G</tt> key. Hit <tt>Escape</tt> key to exit.
+
   |desc    = Turns on "frame-by-frame" mode which pauses the game and allows you to advance time/animations one frame at a time by hitting the <samp>G</samp> key. Hit <samp>Escape</samp> key to exit.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = frameoffset, fo
 
   |command = frameoffset, fo
 
   |params  = {{t|I:frameID}},{{t|S:X}},{{t|S:Y}},{{t|S:??}}
 
   |params  = {{t|I:frameID}},{{t|S:X}},{{t|S:Y}},{{t|S:??}}
   |desc    = Sets frame offset for specified frame and specified X & Y values. The X and Y can be prefaced with <tt>s</tt> to flip the direction. Details unknown; reference <tt>FarmerRenderer.featureXOffsetPerFrame()</tt> and <tt>FarmerRenderer.featureYOffsetPerFrame()</tt>.
+
   |desc    = Sets frame offset for specified frame and specified X & Y values. The X and Y can be prefaced with <samp>s</samp> to flip the direction. Details unknown; reference <samp>FarmerRenderer.featureXOffsetPerFrame()</samp> and <samp>FarmerRenderer.featureYOffsetPerFrame()</samp>.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,798: Line 2,224:  
{{/cmd
 
{{/cmd
 
   |command = sprinkle
 
   |command = sprinkle
   |desc    = Shows an animation of a sprinkle effect around the farmer.
+
   |desc    = Shows an animation of a sprinkle effect around the farmer. (It's the animation used while fairy-dusting a machine).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = toss
 
   |command = toss
   |desc    = Shows an animation of a spinning vial/beaker which rises and then falls.
+
   |desc    = Shows an animation of a spinning vial/beaker which rises and then falls. Likely used in one of Maru's heart events.
 
}}
 
}}
 
|}
 
|}
Line 1,816: Line 2,242:  
   |command = ambientlight, al
 
   |command = ambientlight, al
 
   |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
 
   |params  = {{t|I:R}},{{t|I:G}},{{t|I:B}}
   |desc    = Sets the ambient light of the current location to the specified RGB values. This is a temporary change and the light will revert if the location is reset or re-entered.
+
   |desc    = Sets the ambient light of the current location to the inverse of the specified RGB values. This is a temporary change and the light will revert if the location is reset or re-entered. Ex. inputting <samp>255 0 0</samp> will set the lighting to aqua blue, <samp>0 255 255,</samp> rather than red.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = bloom
 
   |command = bloom
 
   |params  = {{t|D:BloomThreshold}},{{t|D:BlurAmount}},{{t|D:BloomIntensity}},{{t|D:BaseIntensity}},{{t|D:BloomSaturation}},{{t|D:BaseSaturation}},{{o|S:brightWhiteOnly}}  
 
   |params  = {{t|D:BloomThreshold}},{{t|D:BlurAmount}},{{t|D:BloomIntensity}},{{t|D:BaseIntensity}},{{t|D:BloomSaturation}},{{t|D:BaseSaturation}},{{o|S:brightWhiteOnly}}  
   |desc    = Changes the bloom settings to the specified parameters. Most are double-precision floats which are divided by 10. The last parameter will set the <tt>brightWhiteOnly</tt> flag to <tt>true</tt> if it is present and <tt>false</tt> if it is absent. Also sets the <tt>bloomDay</tt> flag.
+
   |desc    = Changes the bloom settings to the specified parameters. Most are double-precision floats which are divided by 10. The last parameter will set the <samp>brightWhiteOnly</samp> flag to <samp>true</samp> if it is present and <samp>false</samp> if it is absent. Also sets the <samp>bloomDay</samp> flag.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = bloomday
 
   |command = bloomday
   |desc    = Toggles the <tt>bloomDay</tt> flag on and off, essentially turning the bloom effects themselves on or off.
+
   |desc    = Toggles the <samp>bloomDay</samp> flag on and off, essentially turning the bloom effects themselves on or off.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = drawbounds
 
   |command = drawbounds
   |desc    = toggles the <tt>drawbounds</tt> flag on and off. Details unknown.
+
   |desc    = Toggles the <samp>drawbounds</samp> flag on and off. Details unknown.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = lsd
 
   |command = lsd
 
   |params  = {{t|D:howLongMilliseconds}},{{t|D:shiftRate}},{{t|D:shiftFade}},{{t|D:globalIntensityMax}},{{t|D:blurShiftLevel}},{{t|D:saturationShiftLevel}},{{t|D:contrastShiftLevel}},{{t|D:bloomIntensityShift}},{{t|D:brightnessShift}},{{t|D:globalIntensityStart}},{{t|D:offsetShift}}
 
   |params  = {{t|D:howLongMilliseconds}},{{t|D:shiftRate}},{{t|D:shiftFade}},{{t|D:globalIntensityMax}},{{t|D:blurShiftLevel}},{{t|D:saturationShiftLevel}},{{t|D:contrastShiftLevel}},{{t|D:bloomIntensityShift}},{{t|D:brightnessShift}},{{t|D:globalIntensityStart}},{{t|D:offsetShift}}
   |desc    = Starts a bloom shifting animation with the specified values. All parameters are double-precision floats; the third parameter is divided by 1000 and the fourth through tenth parameters are divided by 100. Details unknown; reference <tt>BloomComponent.startShifting()</tt>.
+
   |desc    = Starts a bloom shifting animation with the specified values. All parameters are double-precision floats; the third parameter is divided by 1000 and the fourth through tenth parameters are divided by 100. Details unknown; reference <samp>BloomComponent.startShifting()</samp>. '''Use caution when testing this command if you're photosensitive, as it triggers very intense screen flashes.'''
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = panmode, pm
 
   |command = panmode, pm
   |desc    = Turns on panmode. During panmode the screen can be panned with movement keys or mouse movements and <tt>debug panmode</tt> or <tt>debug exit</tt> will turn panmode off.
+
   |desc    = Turns on panmode. During panmode the screen can be panned with movement keys or mouse movements and <samp>debug panmode</samp> or <samp>debug exit</samp> will turn panmode off.
 +
}}
 +
{{/cmd
 +
  |command = tls
 +
  |desc    = Toggles between scaled and unscaled lighting.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,844: Line 2,274:  
   |params  = {{t|I:X}},{{t|I:Y}}
 
   |params  = {{t|I:X}},{{t|I:Y}}
 
   |desc    = Sets the viewport to the given values. Details unknown.
 
   |desc    = Sets the viewport to the given values. Details unknown.
 +
}}
 +
{{/cmd
 +
  |command = uiscale,us
 +
  |params  = {{t|I:value}}
 +
  |desc    = Sets the UI Scale level to the specified value. This is an integer interpreted as the scale percent. Can be used to go beyond the normal limits of 75 - 125 percent.
 +
  |example = <code>debug us 60</code> would set the UI scale level to 60%.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = zoomlevel,zl
 
   |command = zoomlevel,zl
 
   |params  = {{t|I:value}}
 
   |params  = {{t|I:value}}
   |desc    = Sets the zoom level to the specified value. This is an integer interpreted as the zoom percent. Can be used to go beyond the normal zoom limits of 75 - 125 percent.
+
   |desc    = Sets the game zoom level to the specified value. This is an integer interpreted as the zoom percent. Can be used to go beyond the normal limits of 75 - 125 percent.
 
   |example = <code>debug zl 60</code> would set the zoom level to 60%.
 
   |example = <code>debug zl 60</code> would set the zoom level to 60%.
 
}}
 
}}
Line 1,863: Line 2,299:  
   |command = playmusic
 
   |command = playmusic
 
   |params  = {{t|s:cueID}}
 
   |params  = {{t|s:cueID}}
   |desc    = Plays the specified music track. May not be able to play tracks which have a space in the cue name. Tracks played this way will be added to the <tt>songsHeard</tt> list and be available to play on the Jukebox afterwards. See the [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/ modder's resource spreadsheet] (Music Bank IDs tab) for a list of valid cue IDs.
+
   |desc    = Plays the specified music track. May not be able to play tracks which have a space in the cue name. Tracks played this way will be added to the <samp>songsHeard</samp> list and be available to play on the Jukebox afterwards. See the [https://docs.google.com/spreadsheets/d/1CpDrw23peQiq-C7F2FjYOMePaYe0Rc9BwQsj3h6sjyo/ modder's resource spreadsheet] (Music Bank IDs tab) for a list of valid cue IDs.
 
   |example = <code>debug playmusic spring2</code> would play the track ''Spring (The Valley Comes Alive)''.  
 
   |example = <code>debug playmusic spring2</code> would play the track ''Spring (The Valley Comes Alive)''.  
 
}}
 
}}
Line 1,881: Line 2,317:  
! &nbsp;
 
! &nbsp;
 
|-
 
|-
{{/cmd
  −
  |command = bluebook
  −
  |desc    = Adds a "Farmer's Catalogue" to your inventory which looks like an axe and opens up a partially-implemented menu when used.
  −
}}
  −
{{/cmd
  −
  |command = blueprint
  −
  |params  = {{t|s:ID}}
  −
  |desc    = Adds the specified blueprint to the "Farmer's Catalogue" menu. IDs seem to be buildings and animals from <tt>Data/Blueprints</tt>.
  −
}}
  −
{{/cmd
  −
  |command = end
  −
  |desc    = Attempts to warp the player to town and start the "Stardew Hero Celebration" event but appears to crash due to missing music cues.
  −
}}
   
{{/cmd
 
{{/cmd
 
   |command = lantern
 
   |command = lantern
Line 1,904: Line 2,327:  
{{/cmd
 
{{/cmd
 
   |command = stoprafting
 
   |command = stoprafting
   |desc    = Sets an internal <tt>isRafting</tt> flag to false. As rafting was not fully implemented, this doesn't do much.
+
   |desc    = Sets an internal <samp>isRafting</samp> flag to false. As rafting was not fully implemented, this doesn't do much.
}}
  −
{{/cmd
  −
  |command = upgradebarn, barn
  −
  |desc    = Increments an unused barn upgrade level variable (max 3).<br/>'''Warning: This feature was not completely implemented and the game will crash on new day due to missing textures after using it.'''
  −
}}
  −
{{/cmd
  −
  |command = upgradecoop, coop
  −
  |desc    = Increments an unused coop upgrade level variable (max 3).<br/>'''Warning: This feature was not completely implemented and the game will crash on new day due to missing textures after using it.'''
   
}}
 
}}
 
|}
 
|}
 +
 +
==See also==
 +
* [[Modding:Modder Guide/APIs/Console]] to add custom commands from a SMAPI mod.
    
[[Category:Modding]]
 
[[Category:Modding]]
 +
 +
[[ru:Модификации:Команды для отладки]]
translators
8,441

edits