Modding:Console commands

From Stardew Valley Wiki
Revision as of 17:46, 30 September 2017 by Sabi (talk | contribs)
Jump to navigation Jump to search

Index

Stardew Valley's developers added several hidden debug commands to test the game. This page documents them.

Accessing debug commands

These are for advanced users only. These commands may crash or break your save if used incorrectly.

You can run debug commands in the SMAPI console (the terminal window that opens alongside the game) through the debug command, assuming you have the bundled TrainerMod installed:

debug where Robin
> Robin is at Farm, 21,4

Commands

Axe.png
Article Stub

This article is a stub and is missing information. You can help Stardew Valley Wiki by expanding it!

Many commands that ask for an NPC (such as faceDirection) can take 'farmer' as well.

Items, tools, loot, debris, inventory
removeObjects - Clears all objects from the current location.
mainMenu, mainmenu, removeDebris - Removes all debris (such as dropped items).
pick, pickax, pickaxe - Adds a new basic pickaxe to your inventory.
museumloot - Marks artifacts as found and adds minerals to inventory. Stops when the inventory is full.
shears - Gives the player shears
TV - Adds a TV to your inventory.
skullkey - Adds the Skull Key to the player's wallet.
pole - Gives a Bamboo Pole to the player.
weapon <weapon ID> - Gives the weapon corresponding to the <ID> to the player. (Example: weapon 12 spawns a Wooden Blade.)
darkTalisman - Adds the Dark Talisman to the player's wallet.
pan - adds the [[panning]] pan to player inventory
in, itemnamed <ITEM> <AMT> - add 1 (or AMT) items (not tools) to player inventory. <ITEM> format: punctuation included, no spaces, e.g. "miner'streat"
slingshot - Gives a Slingshot to the player.
wand - Adds [[Return Scepter]] to player inventory.
can, wateringcan - adds the basic watering can to player inventory.
gold - Adds a large sum of money to the player.
hoe - Adds the basic hoe to player inventory.
NPCs, NPC actors, relationships
friendAll - Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).
clone <S:NPC> - Clones <NPC> and adds them to the current location.
sb <S:NPC> - Puts "Hello! This is a test" in a bubble above <NPC>'s head.
pregnant - Sets the amount of days until child birth to 1. Also, removes all previous children.
fd, face, faceDirection <S:NPC> <I:dir> - Sets <NPC> to face in <direction>
jump <S:NPC> - makes the given NPC/player actor jump once.
Events
leaveEvent, endEvent - Ends the current event, but also clears all previous events seen, dialogue questions answered, and mail received. Clarify: For that day or entirely?
busDriveBack - BusStop.busDriveBack()
wedding - 
eventOver - 
train - Makes a train pass through Stardew Valley.
ccloadcutscene - 
Quests, world objectives, achievements
quest <I:ID> - Adds quest the ID <ID>.
bundle <I:ID> - Marks bundle <ID> as completed.
completeCC - Sets the Community Centre as complete.
completeQuest <I:ID> - Marks quest <ID> as complete.
caughtFish, fishCaught <I:AMT> - Sets the number of fish caught to <AMT>.
Information
where, whereis <S:NPC> - Prints the location and coordinates of <NPC> in the console.
dap, daysPlayed - Displays the number of game-days played on the save.
pm, panmode, panMode, - On/off toggle for map-panning view; pan map with WASD when toggled on.
version - Prints the SDV version number in console.
localInfo - Prints a bunch of debug information about the current location in the console.
characterInfo - Displays number of characters on the current map.
Player character stats, skills, recipes, and player actor properties
heal - Sets player health to maximum.
speed <I> - sets player actor speed temporarily to given integer.
cooking - Teaches the player all cooking recipes.
energize - Sets player energy to maximum.
die - Sets the player's health to minimum, making them pass out.
money <I> - Set player money to given integer.
Map and terrain features
removeLights - Disables light effects on the current map.
clearLightGlows - Removes light glow textures on current map.
cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
bloomDay - The game's bloom. Doesn't work.
cat <I:X> <I:Y> - Adds a cat at (<X>, <Y>) in the current location.
question - Marks a particular dialogue question as answered.
house, houseUpgrade, hu <level> - Upgrades your house to a particular level.
growgrass <number> - Adds <number> grass to your current location. May freeze the game if used outside of the farm.
petToFarm - Moves the player's pet to the farm at (54, 8) if it isn't raining.
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
growAnimals - Makes all animals in the current location (must be an animal house) grow up.
stoprafting - `player.isRafting = false;`
bluebook - Adds a blueprint to your inventory.
removeTF, removeTerrainFeatures - Removes all terrain features from the current location.
removeFurniture - Removes all furniture from the current location.
rfh, readyForHarvest <I:X> <I:Y> - Sets the object at (<X>, <Y>) to be ready in one minute. Also sets stones to 1 health.
dayUpdate [I:AMT] - Progresses the game either 1 or [AMT] days.
resource <I:ID> <I:AMT> - Marks some debris as collected, useful for quests. 0=copper, 2=iron, 4=coal, 6=gold, 8=money (somewhat random amount), 10=iridium, 12=wood, 28=lantern fuel
craftingrecipe <S:str> - Adds the recipe for <str> to your known items.
setstat <S:stat> <I:num>- Sets the stat <stat> to <num>. (<stat> is property in StardewValley.Stats)
c, cm, canmove - Forces the player to be able to move.
growCrops <I:amt> - Advances all crops in the current location <amt> days.
upgradebarn, barn - player.BarnUpgradeLevel += 1 (or 3)?
conventionMode - Toggles Game1.conventionMode
jn, junimoNote <I:ID> - Adds junimo note <ID>.
resetJunimoNotes - presumably resets all JunimoNotes to not-seen status.
ee - 
hurry - 
sf, setFrame - 
bc, buildcoop - 
makeInedible - Makes the item the player is holding inedible.
fenceDecay - presumably sets the rate of fence decay
toss - 
al, ambientLight - 
completeJoja - presumably set completeJoja value to true (or input value)
zl, zoomlevel - 
eventseen, seenevent <I:ID> - adds given event's ID to the list of Seen Events. Useful for enabling access to event-dependent areas or events.
sl - 
specials - 
shirt - 
b, bi, big, bigitem - 
facePlayer - presumably makes given NPC actor face player actor
j, aj, addJunimo - 
deleteArch - 
sr - 
ns, nosave, noSave - 
dp - 
water - Irrigate all tilled land on the current map.
festivalScore - presumably overrides Farmer's grange display score at Stardew Valley Fair
growAnimalsFarm - 
wp, wallpaper - 
seenmail - 
tool - 
mp - 
ax - 
db - 
refuel - probably refuels the lantern (unimplemented feature)
fo, frameOffset - 
resetAchievements - Reset the achievements.
m, mv, musicvolume - 
emote - 
remoteLargeTF - 
spawnweeds <number> - Spawns <number> weeds in your current location. May freeze or crash the game if used outside of the farm.
lu, lookup - 
speech - 
time <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
ps, playSound - 
wc, warpCharacter - 
fruitTrees - 
toggleCatPerson - 
fb, fillbin - 
coop, upgradecoop - 
animalInfo - 
end - 
ff, furniture - 
pixelZoom <LVL> - sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size).
achieve - 
sdkinfo, steaminfo - 
morepollen - 
specialItem - 
levelup - 
kms, killMonsterStat - 
fixAnimals - 
backpack - 
child, kid - 
allbundles - 
divorce - Makes the player divorce from the "currently married" NPC.
spreadDirt - 
movebuilding - 
rain - Changes the weather to rain.
mft, mailForTomorrow - 
minelevel <LVL> - Warps Farmer to given [[Mines]] level.
warp - 
cclod - 
minigame - 
fbp, fill, fillbp, fillbackpack - 
addOtherFarmer - 
addAllCrafting - possibly adds the achievement for having crafted every item
plaque - 
horse - 
sprinkle - 
i, item - 
owl - 
removeQuest - 
w, wall - 
KillAllHorses - 
lantern - Gives a Lantern to the player. However, when trying to use it, the game freezes.
skinColor - 
debrisWeather - presumably changes the current weather to windy.
clearMail - 
cookingrecipe - 
clearCharacters - 
fishing - 
dialogue - possibly initiate dialogue by ID
test - changes game display to a swatch list of floorings, which can be clicked once to return to normal game display
fish - 
year - 
crafting - Teaches the player all crafting recipes.
f, floor - 
killAll - possibly abort all operations on machines. Does not affect monsters on farm or in mines.
beachBridge - presumably fixes the bridge separating the beach parts
achievement - 
slimecraft - 
LSD - 
build - 
farmMap - 
blueprint - 
upgradeBarn - 
season - presumably timeskips to the 1st day of the given season.
friend, friendship,  - presumably sets the friendship point value with the given character to the given value.
save - Saves the game. Doesn't work.
gamePad - 
coopDweller - 
hairStyle - 
spreadSeeds - 
removeBuildings - 
addKent - Adds Kent to the game.
getstat - 
doesItemExist - 
clearSpecials - 
pants - 
gamemode - 
barnDweller - 
marry <NPC> - Marries the player to <NPC>.
bloom - 
viewport - 
day - 
upgradeCoop - 
dog -  Presumably adds a dog at (<X>, <Y>) on the current map.
busDriveOff - 
child2 - 
playMusic - 
resetMines - 
hat - 
r - 
hairColor - 
waterColor - 
ring - 
clearFurniture - 
removeDirt - 
boots - 
event -