Stardew Valley

Stardew Valley

View Stats:
Stardew Valley Edit Inventory Slots to get Items
I have been looking around in my SDV files, and have been wanting to find a way to give myself items by editing the files. Would anyone know where and how I can find the string to edit inventory slots?
< >
Showing 1-5 of 5 comments
Jinkros ✓ Aug 14, 2021 @ 3:18pm 
Just install CJB Item Spawner mod
lizardmang Aug 14, 2021 @ 3:22pm 
I haven't quite been able make sense of the inventory data myself. I can't find any explanation of it online either. I've been able to find specific items in my inventory by searching the item name, but there appear to be so many variables stored for each item that I wouldn't know where to begin adding a new item without potentially causing issues. The only thing that seems simple enough is changing the amount of an existing item. You may be able to figure it out with some trial and error though; I admittedly didn't spend much time with it, as I was only looking out of curiosity.

That said, it would be much simpler to use a mod:
https://www.nexusmods.com/stardewvalley/mods/93
https://www.nexusmods.com/stardewvalley/mods/127

Or the item spawn cheat:
Naming your character using an internal object ID number in brackets will give you the item that corresponds with the number whenever an NPC mentions you by your name. For example, entering [645][499][163] will give you an Iridium Sprinkler, Ancient Seeds, and a Legend. (This exploit also works with naming children and animals.)
Object IDs can be found at either of the following pages:
https://stardewcommunitywiki.com/Modding:Object_data#Raw_data
https://stardewcommunitywiki.com/Modding:Object_data/Sprites
Duke Bradford Aug 16, 2021 @ 10:32am 
Originally posted by silentprotagonistsays:
I haven't quite been able make sense of the inventory data myself. I can't find any explanation of it online either. I've been able to find specific items in my inventory by searching the item name, but there appear to be so many variables stored for each item that I wouldn't know where to begin adding a new item without potentially causing issues. The only thing that seems simple enough is changing the amount of an existing item. You may be able to figure it out with some trial and error though; I admittedly didn't spend much time with it, as I was only looking out of curiosity.

That said, it would be much simpler to use a mod:
https://www.nexusmods.com/stardewvalley/mods/93
https://www.nexusmods.com/stardewvalley/mods/127

Or the item spawn cheat:
Naming your character using an internal object ID number in brackets will give you the item that corresponds with the number whenever an NPC mentions you by your name. For example, entering [645][499][163] will give you an Iridium Sprinkler, Ancient Seeds, and a Legend. (This exploit also works with naming children and animals.)
Object IDs can be found at either of the following pages:
https://stardewcommunitywiki.com/Modding:Object_data#Raw_data
https://stardewcommunitywiki.com/Modding:Object_data/Sprites

Thanks very much, I just installed a mod loader and mods. It works fine.

Duke Bradford Aug 16, 2021 @ 10:32am 
Originally posted by Jinkros ✓:
Just install CJB Item Spawner mod

Thanks. Tried it and it works fine.
Jinkros ✓ Aug 16, 2021 @ 11:01am 
Originally posted by notjoesnachos:
Originally posted by Jinkros ✓:
Just install CJB Item Spawner mod

Thanks. Tried it and it works fine.
No problem, if you dont mind please mark my other answer as the correct one, it will make it easier for other users to find the right answer when looking for information about the topic.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Aug 14, 2021 @ 8:04am
Posts: 5