PorkChop
Planter
Hi everyone! Here are some commands to enter after installing SMAPI. ENJOY!!! (Instead of reading you could just go to https://stardewvalleywiki.com/Modding:Debug_commands)
Entering debug commands
Individual commands
To enter debug commands, you must install SMAPI (and not delete its bundled Console Commands mod). You can also install the 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 debug like this:
debug where Robin
> Robin is at Farm, 21,4
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
Multiple commands can be executed at once using the runmacro command:
/backpack 12
/Money 10000
/levelup 0 1
/weapon 5
Entering debug runmacro quickstart 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: Money is capitalized in this example because if it is all lowercase it triggers a special chat response instead of executing the command.)
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 speed <I:value> [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):
Items and inventory
General item search and spawning
Backpack and inventory
Entering debug commands
Individual commands
To enter debug commands, you must install SMAPI (and not delete its bundled Console Commands mod). You can also install the 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 debug like this:
debug where Robin
> Robin is at Farm, 21,4
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
Multiple commands can be executed at once using the runmacro command:
- Create a text file in the game folder (with a .txt extension).
- Type commands in this file, one command per line. Each command should start with a slash character (/), but should not include debug .
- To run the macro, type debug runmacro <filename> in the SMAPI console, replacing <filename> with the name of your command file without the .txt extension.
/backpack 12
/Money 10000
/levelup 0 1
/weapon 5
Entering debug runmacro quickstart 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: Money is capitalized in this example because if it is all lowercase it triggers a special chat response instead of executing the command.)
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 speed <I:value> [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):
- friend Abigail 500
- friend abi 500
- friend gail 500
Items and inventory
General item search and spawning
command | description | |
---|---|---|
bigitem, big, bi, b | Syntax: bigitem <I:itemID> Adds the specified craftable to your inventory. See big craftables data for a list of base game IDs. Example: debug bigitem 12 would give you a keg. | # |
createdebris, mainmenu | Syntax: createdebris <I:itemID> Spawns the specified object at your position. See 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: debug createdebris 24 would spawn a parsnip. | # |
everythingshop | Opens a shop menu containing a furniture catalogue, all objects, all craftables, and all weapons. All items are free. | # |
furniture, ff | Syntax: furniture [I:itemID] Adds the specified piece of furniture to your inventory. See 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: debug furniture 704 would give you an Oak Dresser. | # |
fuzzyitemnamed, fin, f | Syntax: fuzzyitemnamed <S:itemName> [I:amount] [I:quality] 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.) Examples:
| # |
getindex | Syntax: getindex <S:itemName> 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 fuzzyitemnamed command. Weapons, Boots, and Hats are recognized but will not return the correct ID. Examples:
| # |
item, i | Syntax: item <I:itemID> [I:amount] [I:quality] 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: debug item 74 would give you a Prismatic Shard. | # |
itemnamed, in | Syntax: itemnamed <S:itemName> [I:amount] [I:quality] 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.) Examples:
| # |
lookup, lu | Syntax: lookup <S:itemName> 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. Examples:
| # |
resource | Syntax: resource [I:type] [I:amount] 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). | # |
tv | Adds a TV furniture item to your inventory; this will be either a Budget TV or Plasma TV, randomly chosen with equal chances. | # |
wallpaper, wp | Syntax: wallpaper [I:itemID] 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. | # |
command | description | |
---|---|---|
backpack | Syntax: backpack <I:amount> Increases your inventory space by the specified amount; capped at 36 slots. | # |
clear, ci | Removes all items currently in your inventory. | # |
doesitemexist | Syntax: doesitemexist <I:itemID> [S:isCraftable] 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. Examples:
| # |
fillbackpack, fillbp, fill, fbp | 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. | # |
sl | 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. | # |
sr | 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. | # |
Last edited: