Don't Starve is an open-world survival game developed by Canadian company Core Entertainment. The game was first released via Steam on April 23, 2013. The game revolves around a scientist named Wilson who finds himself in a dark and gloomy world and must survive as long as possible. The following will bring you a collection of command codes that can be used in both the stand-alone version of Don’t Starve and online.
Press ctrl+F to quickly find content
Press the "~" key to bring up the console and enter,
Press "ctrl" to switch "local/remote" (online version switches to remote)
c_give("item name")
The item will appear in the inventory. If the package is full, it will automatically fall to the ground;
c_give("item name", quantity)
Multiple items of this item will appear in the inventory. If the package is full, it will automatically fall to the ground;
Example: c_give("eyebrellahat",40)
c_spawn("item name")
The items will appear where the mouse points according to the number;
c_spawn ("item name", quantity) multiple items will appear at the mouse pointer according to the number;
Example: c_spawn(""hound",2)
c_select()c_sel():Remove()
c_godmode()
God mode: c_godmode()
Hunger limit: GetPlayer().components.hunger:SetMax(500)
Upper limit of mental value: GetPlayer().components.sanity:SetMax(500)
Maximum health value: GetPlayer().components.health:SetMaxHealth(300)
All items are manufactured directly: GetPlayer().components.builder:GiveAllRecipes()
Remove items: TheInput:GetWorldEntityUnderMouse():Remove()
Transmission: GetPlayer().Transform:SetPosition (coordinates, example: 0,0,0)
cut grass: cutgrass
Twigs: twigs
Wood: log
Charcoal: charcoal
Ash: ash
Collected reeds: cutreeds
Petals: petals
Nightmare Petals: petals_evil
living wood: livinglog
Leaves: foliage
Fluorescent fruit: lightbulb
Glowing Berry: wormlight
Ice:ice
flint: flint
Saltpeter: nitre
rocks: rocks
Marble:marble
Moonstone: moonrocknugget
Gold: goldnugget
Thulium ore: thulecite
Thulium Ore Fragments: thulecite_pieces
Ruby:redgem
Sapphire: bluegem
Purple gemstone: purple gem
Emerald: greengem
Orange gem: orangegem
Topaz: yellowgem
Colored gemstones: opalpreciousgem
Rope: rope
Boards: boards
Stone brick: cutstone
papyrus: papyrus
nightmare fuel: nightmarefuel
Beeswax: beeswax
wax paper:waxpaper
Electrical components: transistor
Dog tooth: houndstooth
spider silk: silk
spider glands: spidergland
beard: beardhair
Beef hair: beefalowool
horn: horn
poop: poop
Honeycomb: honeycomb
bee sting: stinger
Pigskin: pigskin
Rabbit tail: manrabbit_tail
Cat tail: coontail
Walrus Tusk: walrus_tusk
beard: beardhair
Rotten eggs: rottenegg
Crow Feather: feather_crow
Cardinal Feather: feather_robin
Snowbird Feather: feather_robin_winter
Canary feather:feather_canary
guano: guano
Tentaclespots: tentaclespots
Slime Slime: slurtleslime
Broken back shell: slurtle_shellpieces
Mosquito blood bag: mosquitosack
Slurper Pelt: slurper_pelt
Ancient Guardian Horn: minotaurhornDropped Feather: goose_feather
Scales: dragon_scales
thick fur:bearger_fur
Giant deer eyeball: deerclops_eyeball
Toadstool skin: shroom_skin
lightninggoathorn: lightninggoathorn
glomerwings:glommerwings
Glommerflower (the flower dies instantly): glomerflower
glommerfuel:glommerfuel
Frozen eggs: lavae_cocoon
Shadowheart: shadowheart
Deer Antler: deer_antler
klaussackkey:klaussackkey
Gears: gears
Boneshard: boneshard
Fossil fragments (it is said that there are many types, but only one type exists): fossil_piece
Ax: ax
golden axe: goldenaxe
lucy ax: lucy
pickaxe
golden pickaxe: goldenpickaxe
Shovel: shovel
Golden shovel (to be honest, it can be called a shovel if it is made of gold): goldenshovel
Pickaxe: multitool_axe_pickaxe
Hammer: hammer
Pitchfork: pitchfork
razor: razor
Bug net: bugnet
Fishing rod: fishingrod
Trap: trap
bird trap: birdtrap
Pumpkin lantern:pumpkin_lantern
lantern: lantern
Beautiful sun umbrella: grass_umbrella
Umbrella: umbrella
Insulation stone: heatrock
Water polo: waterballoon
Compass: compass
Empty package: bundlewrap
Colored paper: giftwrap
Straw roll: bedroll_straw
Fur bedding: bedroll_furry
Goose feather fan: featherfan
Dog tooth trap: trap_teeth
Maxwell's Teeth Trap: trap_teeth_maxwell
Backpack: backpack
Pigskin bag: piggyback
Insulation pack: icepack
Krampus backpack: krampus_sack
candy bag: candybag
Featherpencil: featherpencil
Poop blue: fertilizer
Saddle remover: saddlehorn
Saddle: saddle_basic
Bloody War Saddle: saddle_war
Shining Saddle: saddle_race
brush: brush
Salt licker: saltlick
Spear: spear
Vathgrith Spear: spear_wathgrithr
Balloons (blown up, you can decorate your own nest~): balloon
ham bat: hambat
tentacle spike: tentaclespike
Morning Star: nightstick
The teachings of the three-legged cat: whip
Shadow Sword:nightsword
Bat ax stick: batbat
Thulium ore rod: ruins_bat
Ice wand (blue): icestaff
Fire wand (red): firestaff
Teleport wand (purple): telestaff
Lazy Explorer (orange): orangestaff
Star Caller (yellow): yellowstaff
Scepter of Destruction (green): greenstaff
Magic wand (the one used to find parts on a single machine): divinerod
Mooncaller's staff: opalstaff
boomerang: boomerang
Blowdart: blowdart_pipe
Burning blowdart: blowdart_fire
Blowdart: blowdart_sleep
Electromagnetic blowdart: blowdart_yellow
Tornado: staff_tornado
Pan flute: panflute
Solo instrument:onemanband
Gunpowder: gunpowder
bee mine: beemine
Hendius Shutius (eye turret): eyeturret
Placeable eye turret: eyeturret_item
Sewing Kit (categorized for convenience): sewing_kit
pigskin helmet: footballhat
wathgrithrhat: wathgrithrhat
Queen's crown: hivehat
Back shell helmet: slurtlehat
Ancient Crown: ruinshat
Miner hat: minerhat
Gopher hat: molehat
spider hat: spiderhat
top hat: tophat
rain hat: rainhat
Eyeball umbrella: eyebrellahat
beekeeper hat: beehat
feather hat: featherhat
Jungle hat: bushhat
beret: walrushat
Ice cubes: icehat
watermelon hat: watermelonhat
Cat hat: catcoonhat
Green mushroom hat: green_mushroomhat
Blue mushroom hat: blue_mushroomhat
Red mushroom hat: red_mushroomhat
Grass armor: armorgrass
Wood armor: armorwood
marble armor: armormarble
Shadow Armor: armor_sanity
Scale armor: armordragonfly
Round shell slug shell: armorsnurtleshell
Ancient Armor: armorruins
Compact vest: sweatervest
Patterned shirt: hawaiianshirt
Summer vest: reflectivevest
Summer vest: trunkvest_summer
Winter vest: trunkvest_winter
Bearskin vest: beargervest
Raincoat: raincoat
Hungry Belt: armorslurper
Refreshing amulet (red): amulet
Ice amulet (blue): blueamulet
Talisman (purple): purplemulet
Magic light (yellow): yellowamulet
Lazy robber (orange): orangeamulet
Build amulet (green): greenamulet
Thulium Ore Medal: nightmare_timepiece
walking stick: cane
Heart of redemption:reviver
Healing Salve: healingsalve
Bee ointment: bandage
AGV experimental drug (cardiac injection): lifeinjector
jelly beans: jellybean
Carrot: carrot
Roasted Carrots:carrot_cooked
Corn: corn
Popcorn: corn_cooked
Pumpkin:pumpkin
Hot pumpkin:pumpkin_cooked
Eggplant: eggplant
Grilled eggplant: eggplant_cooked
Red mushroom: red_cap
Grilled red mushrooms: red_cap_cooked
Green mushroom: green_cap
Grilled green mushrooms: green_cap_cooked
Blue mushroom: blue_cap
Grilled blue mushrooms: blue_cap_cooked
Meat skewers: kabobs
Meatballs: meatballs
Honey ham: honeyham
Broth: bonestew
Turkey dinner: turkeydinner
Frog bun sandwich: frogglebunwich
Fried fish in tortillas: fishtacos
Fish sticks: fishsticks
Dragon fruit pie: dragonpie
Toffee: taffy
Pumpkin Cookies:pumpkincookie
Butterfly muffin: butterflymuffin
Cheesecake: powcake
Mandrake soup: mandrakesoup
Eggs and ham: baconeggs
Sweet Nuggets: honeynuggets
Semi-circular shortbread cookies: perogies
crappy stew: ratatouille
Pomegranate: pomegranate
Roasted Pomegranate: pomegranate_cooked
Durian: durian
Grilled durian: durian_cooked
Dragon fruit: dragonfruit
Delicate dragon fruit (roasted): dragonfruit_cooked
berries:berries
Grilled berries: berries_cooked
Watermelon: watermelon
Grilled watermelon: watermelon_cooked
Cactus meat: cactus_meat
Cactus flower: cactus_flower
Collected moss: cutlichen
Meat:meat
Large cooked meat: meat_cooked
Big jerky: meat_dried
small meat: smallmeat
Cooked meat: cookedsmallmeat
Chicken drumstick: drumstick
Grilled chicken drumsticks: drumstick_cooked
frog legs: froglegs
Cooked frog legs: froglegs_cooked
monster meat: monstermeat
Grilled monster meat: cookedmonstermeat
Monster meat jerky: monstermeat_dried
leafy meat: plantmeat
Cooked leafy meat: plantmeat_cooked
Egg: bird_egg
Cooked eggs: bird_egg_cooked
Fried tallbird eggs: tallbirdegg_cooked
fish: fish
Cooked fish: fish_cooked
eel: eel
Cooked eel: eel_cooked
Roasted nuts: acorn_cooked
butterfly wings: butterflywings
Butter: butter
Honey: honey
Royal jelly: royal_jelly
Mandrake: mandrake
Cooked mandrake: cookedmandrake
bat wings: batwing
Cooked bat wings: batwing_cooked
Summer Elephant Trunk: trunk_summer
Winter trunk: trunk_winter
Cooked elephant trunk: trunk_cooked
Fruit platter: fruitmedley
Flower salad: flowersalad
Waffles: waffles
Jam Preserves: jammypreserves
Crispy eggplant box: stuffedeggplant
Ice cream:icecream
Watermelon Ice: watermelonicle
Fruit Chowder: trailmix
Chili sauce: hotchili
Guacamole: guacamole
Electric goat milk: goatmilk
Monster Lasagna: monsterlasagna
Eel cuisine: unagi
Wet, greasy and burnt: wetgoop
Rotten food: spoiled_food
Christmas food (4 shapes): winter_food1/2/3/4
Halloween candy (11 types): halloweencandy_1/..../11
Pigman: pigman
Pig guard: pigguard
Pig King: pigking
Murloc: merm
Bunnyman: bunnyman
Rabbit: rabbit
Bison (baby): babybeefalo
Bison (Youth):
Bison (adult): beefalo
walrus: walrus
little walrus: little_walrus
Summer elephant: koalefant_summer
Winter elephant: koalefant_winter
Lightning Goat: lightninggoat
Steel Sheep: spat
Eyeless deer: deer
spider: spider
Spider warrior: spider_warrior
Cave spider: spider_hider
Spray spider: spider_spitter
White spider: spider_dropper
hound: hound
firedog: firehound
ice dog: icehound
Tallbird (egg): tallbirdegg
Tallbird Egg (hatched): tallbirdegg_cracked
Tallbird (baby): smallbird
Tall bird (youth): teenbird
Tallbird (adult): tallbird
Crow: crow
Cardinal: robin
Snowbird: robin_winter
Canary: canary
Turkey: perd
Penguin: penguin (the penguin will eat Graeme’s slime!!!)
Frog: frog
mole: mole
Grom:glommer
Cat Bear: catcoon
Grassgekko: grassgekko
Bee: bee
killer bee: killerbee
Fireflies: fireflies
mosquito:mosquito
Flies: flies (seriously, this can only be used for decoration, but who would like it?)
Butterfly: butterfly
Magma bug: lavae (there is no useful code, but if you are fast enough, you may be able to generate a firework)
Slurtle: slurtle
Stickyworm: snurtle
chester: chester
Chester Eyebone: chester_eyebone
Hutch:hutch
Starry Sky: hutch_fishbowl
Krampus: krampus
Abigail: abigail
Ghost: ghost
Piranha:lureplant
Piranha eyes: eyeplant
Piranha seeds:lureplantbulb
Clockwork Knight: knight
Bishop:bishop
Chariot: root
Crawling Nightmare (normal version): crawlinghorror
Crawling Nightmare (immediate attack version): crawlingnightmare
Terrorbeak Nightmare (normal version): terrorbeak
Giant beak nightmare (immediate attack version): nightmarebeak
Shadow Chariot: shadow_rook
Shadow Bishop: shadow_bishop
Shadow Knight: shadow_knight
Tentacle: tentacle
Bat: bat
Lobster: rocky
monkey:monkey
sluroer
Ancient bug: worm
Damaged elephant (this series really wants to have its own robot): bishop_nightmare
Damaged tank: rook_nightmare
Damaged Knight: knight_nightmare
spider queen: spiderqueen
Dryad Guard: leif
Dryad Guard (rare): leif_sparse
Nut extract: birchnutdrake
birch essence: deciduous tree
Ancient Guardian: minotaur
Antler goose: moose
Antlers and goose eggs: mooseegg
Gosling: mossling
dragonfly: dragonfly
Bear badger: bearger
giant deer: deerclops
giant hive: beequeenhivegrown
queen bee: beequeen
Drone: beegurd
Toadstool (mushroom clam): toadstool
Toadstool tree mushroom: mushroomsprout
Klaus: klaus
Klaus package: klaus_sack
Gem deer (blue/red): deer_blue/red
Forest Guardian: DebugSpawn "stalker_forest"
Ancient Hunter: DebugSpawn "stalker"
Ancient Shadowweaver: DebugSpawn "stalker_atrium"
Seeds: seeds
Pine cone: pinecone
Nuts: acorn
Flower: flower
Nightmare flower: flower_evil
Carrots growing on the ground: carrot_planted
Grass:grass
Grassroots: depleted_grass
Long grass tufts (plantable grass): dug_grass
sapling: sapling
Sapling (plantable): dug_sapling
Berry bush: berrybush
Berry bush (plantable): dug_berrybush
Berry Bush 2: berrybush2
Berry Bush 2 (Plantable): dug_berrybush2
Honeyberry Bush: berrybush_juicy
Spiked Bush: marsh_bush
Spiky Bush (Plantable): dug_marsh_bush
Reeds: reeds
Cave moss: lichen
Ferns: cave_fern
Evergreen: evergreen
Stout evergreen: evergreen_sparse
birch: deciduoustree
Branchy tree species:
Multi-branched tree (4 forms from small to large): twiggy_short/normal/(?)/old
Conifer: marsh_tree
marble tree:marbletree
Marble magic beans:marblebean
marble shrub:marbleshrub_tall
Fluorescent grass (single flower): flower_cave
Fluorescent grass (double): flower_cave_double
Tumbleweed: tumbleweed
Cactus: cactus
Water plants beside the pond: marsh_plant
Algae: pond_algae
Tumbleweed: tumbleweed
Red mushrooms (grown on the ground): red_mushroom
Green mushrooms (grown on the ground): green_mushroom
Blue mushrooms (grown on the ground): blue_mushroom
Red Mushroom Tree:mushtree_medium
Green Mushroom Tree:mushtree_small
Blue Mushroom Tree:mushtree_tall
Blue Mushroom Tree with Webbed: mushroomtree_tall_webbed
Banana tree: cave_banana_tree
Completely normal tree (living tree): livingtree
Pebble (rock only): rock_flintless
Pebble (with saltpeter): rock1
Pebble (with gold): rock2
Meteorite: rock_moon
Stalagmite (high): stalagmite_full
Stalagmite (medium): stalagmite_med
Stalagmite (low): stalagmite_low
Pointed stalagmite (tall): stalagmite_tall_full
Pointed stalagmite (middle): stalagmite_tall_med
Pointed stalagmite (low):stalagmite_tall_low
Mini glacier: rock_ice
Basalt: basalt
Basalt pillar: basalt_pillar
Petrified tree (four forms): petrified_tree/short/tall/old (?)
Campfire: campfire
stone bonfire: firepit
Torch: torch
Pig Torch: pigtorch
Endothermic campfire: coldfire
Heat-absorbing campfire: coldfirepit
Scientific machine: researchlab
Alchemy Engine: researchlab2
Magic hat: researchlab4
Shadow Manipulator: researchlab3
Ancient ruins: ancient_altar
Damaged ancient ruins: ancient_altar_broken
Treasure chest: treasurechest
Skull Chest: skullchest
decorative box: pandoraschest
Large luxury box: minotaurchest
Scale Chest: dragonflychest
Basic farm: slow_farmplo
Advanced Farm: fast_farmplot
Mushroom farm: mushroom_farm
Meat drying rack: meatrack
beehive: beebox
Cooking pot: cookpot
Refrigerator:icebox
Tent: tent
Simple wooden shed: siestahut
Street sign: homesign
Small wooden sign: minisign_item
wooden fence: fence
Wooden fences can be placed: fence_item
Wooden door: fence_gate
Wooden doors can be placed: fence_gate_item
Hay wall: wall_hay
Hay wall can be placed: wall_hay_item
wooden wall wall_wood
Wooden walls can be placed: wall_wood_item
Stone wall: wall_stone
Stone walls can be placed: wall_stone_item
Moonstone wall: wall_moonrock
Moonstone wall can be placed: wall_moonrock_item
Thulium Mine Walls: wall_ruins
Thulium ore walls can be placed: wall_ruins_item
Wardrobe: Wardrobe
pig house: pighouse
rabbit hole: rabbithole
mermaid house: mermhouse
birdcage: birdcage
Meat Statue:resurrectionstatue
Temperature measuring instrument: winterometer
rain gauge: rainometer
Lightning rod: lightning_rod
Snowball launcher: firesuppressor
Transport core: telebase
Gem Stand: gemsocket
Cartography Desk: cartographydesk
Pottery turntable: sculptingtable
Moonstone base: moonbase
Moon phase disk: moondial
Sentryward
Fluorescent mushroom light: mushroom_light
Mushroom light: mushroom_light2
Dark night lighting: nightlight
Dragon Scale Furnace: dragonflyfurnace
rock cave: critterlab
Pebble road: turf_road
Tombstone: gravestone (needs testing)
grave mound: mound
Skeleton: skeleton
hound bones: houndbone
Suspicious mound: dirtpile
Pond:pond
Cave Pond:pond_cave
pig head: pighead
Mermhead: mermhead
rabbit hole: rabbithole
honeycomb: beehive
Killer Beehive: wasphive
Spiderhole: spiderhole
Walrus Nest: walrus_camp
Tallbirdnest: tallbirdnest
hound mound: houndmound
Slurtlehole: slurtlehole
batcave: batcave
monkey barrel: monkeybarrel
spider lair: spiderden
molehill: molehill
hollow tree stump: catcoonden
Ancient avatar: ruins_statue_head
Ancient Mage Statue: ruins_statue_mage
Maxwell statue:statuemaxwell
marble pillars:marblepillar
Upright statue: statueharp
Statueglommer:statueglommer
Broken Clock 1/2/3: chessjunk 1/2/3
Wormhole: wormhole
Limited edition wormhole: wormhole_limited_1
Portal: multiplayer_portal(?)
Little raccoon cat: critterlab_kitten
Little Warg: critterlab_puppy
Little Steel Sheep: critterlab_lamb
Little Dragon Fly: critterlab_dragonling
Critterlab_glomling: critterlab_glomling
Artificially bred magma bug: lavae_pet (?)