Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
R2InventoryArtifact
A mod adds an active inventory management system.
| Last updated | 2 hours ago |
| Total downloads | 16 |
| Total rating | 0 |
| Categories | Artifacts |
| Dependency string | foxfen64-R2InventoryArtifact-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
Rune580-Risk_Of_Options
A convenient API for adding BepInEx ConfigEntry's to a option menu
Preferred version: 2.8.5RiskofThunder-R2API_Language
API for modifying the language localisation of the game
Preferred version: 1.1.0README
R2InventoryArtifact
A mod adds an active inventory management system.
Features

Grid Area
- When items are picked up, they are added to the
Inventory Gridif there is space. - [Configurable] Each item has a set number of stacks that can be maintained before a new element is created as well as a shape that it takes up on the grid.
- Items can be moved around the
Inventory Gridand rotated by pressing theRotate Itemkey. - When starting a run, a portion of the grid is locked. Gaining Slots can be unlocked by increasing the player level.
Hold Area
Droppableitems be moved bewteen theInventory Gridand theHold Area.- If there is no space in the inventory when an item is picked up, then the item is added to the hold and the
Inventory HUDis forcebly opened. - If the
Inventory HUDis closed with items in theHold Area, then they are forcebly dropped from the player.
Drop Area
Droppableitems may by dropped by dragging them from either theHold Areaor theGrid Areato theDrop Area.- Only
LunarTeir andVoidTier items are deemed notDroppable.
Non Equip Area
Non-equippable Itemswill appear in theNon-Equip Area.- Anything labled as
Consumedalong withRegenerating ScrapandSale Starare deemed non-equippable.
Keybindings
E: Open & Close / Toggle InventoryRight Click: Rotate Items in Inventory
All Keybindngs are re-bindable in Options
Item Configuration
- If there is a specific layout or stack amount for an item that is needed, you can edit
[plugin_folder]/Assets/item_data.json. - The below fields are currently used by the mod:
[Key]: This should match with the item name language token.Node Origin: This represents the nodes where the item is located on the grid. Each item has a relative root node at(0, 0). Each node is represented by the object{Row: [number], Count: [number]}.Max Stack Count: The maximum number of stacks before a new element is created in the grid.
ActiveOrigin is not currently used
- If the properties are not explicitly listed in the file, then it will be selected based off the item/equipment index and item tier. Below are the possible shape options:

Item Painter
- For easier bulk item configuration, visit the Item Painter site.
How to Use
- Enter the item's language token name in the search bar and select
Addor select an existing item from the dropdown. The name entered in the search bar will be the item's language token when refrenced by the mod. (for custom items). - Select the item from the sidebar
- Select a paint palette from the bottom and use
left clickto paint tiles on the grid. Useright clickto erase. Hitctrl+zandctrl+yto undo and redo. Note: The center of the area will always be set. - Enter the item label and Max Stack count values in the Properties sidebar.
- Export the items to your clipboard and paste them in the
item_data.jsonfile or copy them to the clipboard and paste them directly.
Mod Support
This mod was designed to work with the base game's (and DLCs') items. Ideally it should by compatable with other mods, if there are any issues, let me know...
Multiplayer
Ideally, this should work in multiplayer as each client has their own instance of the Inventory HUD.
References
As this is my first mod, I used the below mods as references:
- Better Command Menu - API Interfacing
- Level Up Choices - Codebase Structure, UI & Player API
- Looking Glass - UI API
- Pressure Drop - Player API
- RoR2-ForceItemsEqualShare - Potential Networking
Note
- There is only mouse support at the moment
- If there are any bugs or things you would like to see added, let me know:
@foxfen64on the Discord or open an issue on GitHub
Pending Tasks
Known Bugs
- Sometimes items in the Hold Area are dropped from the inventory, but not from the HUD, thus allowing items to be dropped multiple times
Item Painter returns nodes 'upside down'
Todo
- Add custom sprites for item slots when they are occupied to better identify item boundaries
- Controller support
- Allow some config options to update UI without Run restart
Brainstorming
- Player buffs depending on item orientation and adjacency to other items
- Drone Support
- Custom Inventory per Survivor