spawn Console Command
Syntaxspawn [entity name] [amount] [level] [radius] [p/e/i]· Cheat
Remove brackets [ ] when typing the command.
- Item ID
- The ID of the item or the character (NPC) you want to spawn. These are case-sensitive. End the ID with a star to spawn every entity containing that word, so Trophy* spawns the lot.
- AmountNumberOptional
- The amount of the item you want to spawn. If not specified, the default amount of 1 will be spawned.
- LevelNumberOptional
- The level of the character you want to spawn — the higher the level, the tougher the creature. Anything above 9 is capped at 9. On items this sets quality instead and is capped at 4. If not specified, the default level of 1 is used.
- RadiusNumberOptional
- How widely multiple spawns are scattered around the spawn point. Only has an effect when the amount is 2 or more — a single spawn always lands in the same place. Defaults to 0.5.
- p / e / iOptional
- Add p to pick the spawned items up, e to also use or equip them, or i to only spawn and pick up when you do not already have one. Type each as its own argument, in any position after the ID.
Fill in the arguments below to build a ready-to-paste spawn command.
Here are examples of how to use spawn.
This command will spawn 1 flint axe.
This command will spawn 5 flint axes.
This command will spawn 80 individual pieces of wood.
This command will spawn 4 Deer.
This command will spawn 4 level 3 Deer.
Spawns 80 wood scattered across a 3 metre radius instead of landing in a single pile. The level has to be given first, because the radius is the fourth value.
Spawns a flint axe and puts it straight into your inventory. Use e instead to also equip it.
Spawns every entity with 'trophy' in its name — the whole trophy set at once. Handy for filling a trophy wall, but it drops a lot of items in one go.
Spawns a Neck that hops non-stop. m_jumpInterval is the delay in seconds between jumps, so a near-zero value makes it jump constantly.
Spawns a nearly blind Greydwarf that cannot see you until you are about 5 metres away.
Spawns a Boar that spots you from 100 metres away and swims after you instead of stopping at the shoreline. Two fields set at once — add as many as you like.
Add one or more Component.field::value arguments to spawn and the creature arrives with those values already applied. This is how you get a Neck that never stops hopping: spawn Neck MonsterAI.m_jumpInterval::0.001.
The prefix is the component that creature actually carries, and it varies by creature — hostile creatures like Neck, Greydwarf and Boar use MonsterAI, while passive animals like Deer use AnimalAI. The values stick to the creature rather than your session, so they survive a save and reload, and everyone else on the server sees the same behaviour.
- m_jumpIntervalfloat
Seconds between jumps. A tiny value like
0.001makes it hop constantly;0stops it jumping at all.- m_viewRangefloat
How far away it can see you. Drop it to
5.0and it stays effectively blind until you are almost on top of it.- m_viewAnglefloat
How wide its cone of vision is, in degrees. Widen it and flanking stops working.
- m_hearRangefloat
How far away it can hear you moving.
- m_alertRangefloat
How close a target has to get before it reacts. Sneaking shrinks this, so a lower value makes the creature far easier to slip past.
- m_avoidWaterbool
Whether it keeps out of deep water. Set it to
falseand a land creature will swim after you.- m_afraidOfFirebool
Whether fire frightens it into running away. Set it to
trueand a campfire becomes a working deterrent.
The value has to match the field's type. A decimal field needs a decimal point:
MonsterAI.m_jumpInterval::1is read as a whole number and quietly does nothing, whileMonsterAI.m_jumpInterval::1.0works.Entity names are case-sensitive —
spawn Neckworks,spawn neckdoes not.Use the component the creature actually carries:
MonsterAIfor hostile creatures,AnimalAIfor passive animals like Deer. A component name it does not have is ignored.Set as many fields as you like in one command — add one
Component.field::valueargument for each.Anything the creature tracks for itself — whether it is asleep, alerted, aggravated or patrolling — cannot be pinned this way. It gets overwritten the moment the creature wakes up.
The "spawn" command in Valheim is primarily used to create or generate objects, creatures, or items within the game world. In other words, it lets you create something out of thin air. You can use the spawn command followed by the respective item or character ID and quantity you need. For example, if you need 10 bronze nails, you would use this command: spawn BronzeNails 10.
A note on character spawning: you can also specify a difficulty level (although it only affects spawned characters). The higher the level, the more powerful the creature. The game caps spawned creatures at level 9, so anything higher is treated as 9.
There is also a caution for item spawning: Items spawned using this command will appear one by one. Therefore, spawning thousands of items all at once could overload the game and cause it to freeze or crash.
Overall, the "spawn" command is useful when you need a particular item, creature, or character quickly for testing purposes or specific scenarios. It is often used in creative gameplay or troubleshooting to circumvent normal resource gathering and progression to save time. However, over-reliance on this command can detract from the intended game experience.
- addstatusThis command will add the specified status effect.
- aggravateThis command aggravates neutral entities within a 20-meter radius.
- beardThis command permanently changes your beard. If used without an argument, it removes your beard.
- clearstatusThis command removes all active status effects, both positive and negative.
- dpsdebugThis command toggles the dps debug print on and off.
- envThis command sets a debug environment using given variables. View all environment IDs here: [valheimcheats.com/environment](/environment).
- eventThis command triggers the specified event. View all event IDs here: [valheimcheats.com/event](/event).
- exploremapThis command reveals the entire game map.
- ffsmoothThis command toggles the smoothing filter on the freefly camera. `1` enables smoothing for cinematic captures; `0` returns to the snappy default.
- findThis command finds and pings matching objects on the map, placing pins if required.
- flyThis command toggles flight mode.
- forcedeleteThis command removes objects within a specified radius, as well as optionally specific objects if a name is provided.
- freeflyThis command enables or disables the free camera mode.
- gcThis command displays garbage collection information.
- genlocThis command redistributes all unplaced game locations.
- ghostThis command toggles ghost mode where enemies ignore the player.
- godThis command activates god mode.
- gotoThis command teleports the player to given coordinates.
- hairThis command permanently alters your hairstyle. If used without an argument, it removes your hair.
- healThis command restores your health to maximum.
- itemsetThis command spawns a premade set of items. View all sets below. Include the `keep` flag to keep current items; if not included, current items will be dropped.
- killallThis command kills all nearby enemies and tamed creatures.
- killenemiesThis command kills all nearby enemies.
- killtameThis command eliminates all nearby tamed creatures.
- listkeysThis command lists all global keys in the game.
- locationThis command spawns a game location instance; however, saving is permanently disabled. To spawn a location instance and still keep saving enabled, append the `SAVE` flag after the location ID — see the second example below. View all Location IDs here: [valheimcheats.com/location](/location).
- modelThis command switches the player's character model from masculine to feminine.
- nextseedThis command forces the next dungeon to generate based on a new seed, disabling game saving.
- nocostThis command toggles no-cost mode.
- playersThis command modifies the game difficulty scale. Use `0` to reset the difficulty.