Spawn Item (c_give)
dont-starve — Cheat Codes
Spawns a specified number of items directly into your inventory or at your feet.
Syntax
c_give("prefabname", count)
Example
c_give("meat", 5) gives 5 pieces of meat.
💡 Notes
Use exact prefab names (e.g., 'log', 'flint', 'twigs'). Count is optional; defaults to 1. [verify] for DLC-specific items.
🎯 Tips & Tricks
Find item IDs
Use the Don't Starve wiki or the debug console's c_listallitems() to see all prefab names.
Spawn to ground
Use c_spawn("prefab", count) to place items on the ground instead of inventory.
🔧 Troubleshooting
Item not appearing
Check for typos in the prefab name; use quotes around the string.
Game crashes
Avoid spawning massive counts (e.g., 1000+) at once; spawn in batches.
⚠️ Common Mistakes
- Using display names instead of prefab IDs
- Spawning invalid items like 'test'
👍 Pros
- Instantly get rare resources
- Great for testing builds
- Works with any item prefab
👎 Cons
- Requires knowing prefab IDs
- Can clutter inventory if overused
- May crash if invalid prefab