Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 19:50, 25 August 2018
253 bytes added
,
19:50, 25 August 2018
→Add an item to an inventory
Line 88:
Line 88:
===Add an item to an inventory===
===Add an item to an inventory===
−
//
todo
+
<source lang='c#'>
+
//
You can add items found in ObjectInformation using:
+
Game1.player.addItemByMenuIfNecessary((Item)new StardewValley.Object(int parentSheetIndex, int initialStack, [bool isRecipe = false], [int price = -1], [int quality = 0]));
+
</source>
===Remove an item from an inventory===
===Remove an item from an inventory===
RennyFTW
14
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version