FavoriteItems
Mark inventory stacks as favorites with Alt-click. Includes a public API, with integrations for major inventory mods in development.
About this mod Author’s original text
FavoriteItems for Valheim
Keep important inventory stacks safe from automatic movement with a simple favorite marker.
Features
- Mark or unmark a stack with Alt + left-click.
- See favorites at a glance with a subtle golden star.
- Keep favorite items out of supported automatic inventory actions.
- Optionally protect supported special-slot inventories without favoriting their items.
- Preserve favorites when saving, moving, splitting, or merging stacks.
- Provide a public API for compatible inventory and quick-stack mods.
- Use the mod client-side without requiring it on the server.
How to use
- Open your inventory.
- Hold the left or right Alt key.
- Left-click an item stack.
The golden star means that the stack is protected. Repeat the same action to remove the favorite.
Installation
Mod Manager or r2modman
Install FavoriteItems from the Valheim community and launch the game through your mod manager.
Manual installation
Install BepInEx 5, then place FavoriteItems.dll at:
\BepInEx\plugins\ronaldoniz-FavoriteItems\FavoriteItems.dll
The configuration file is created at:
BepInEx\config\com.ronaldo.valheim.favoriteitems.cfg
Compatibility
- GorilaChestMod 2.4.0: favorite stacks are not moved during quick stack.
- EquipmentAndQuickSlots 3.x: equipment and quick-slot cells can be protected automatically,
even without a favorite marker, when the compatibility option is enabled.
- ExtraSlots 1.2.3: manual favorites work in regular and special slots. Special-slot items can
also be protected automatically, even without a favorite marker, when its compatibility option is enabled.
- All listed mods are optional. FavoriteItems continues to work when they are absent.
Favorites are currently guaranteed to block automatic movement only in the supported
GorilaChestMod integration. Other inventory and quick-stack mods require their own integration.
Configuration
- Enable or disable the favorite system.
- Show or hide the golden star.
- Show or hide favorite notifications.
- Enable optional automatic EquipmentAndQuickSlots protection. This is disabled by default for new
installations so that unmarked items behave predictably.
- Enable optional automatic ExtraSlots protection. This is also disabled by default.
For mod authors
FavoriteItems provides a small public API to query or change favorites, block automatic movement,
and register protected-slot providers. The API reference
includes direct-reference and optional-integration examples.
Known limitations
- The shortcut currently supports keyboard and mouse only.
- Quick-stack protection is currently specific to GorilaChestMod.
- EquipmentAndQuickSlots protection depends on its current public IsSlotCell API.
- ExtraSlots protection depends on its current public IsItemInSlot API.
Source and support
FavoriteItems is open source under the MIT License. Source code, releases, and issue reporting are
available on GitHub.
Tip jar
Liked the mod? You can leave a small tip on Ko-fi — completely
optional, always appreciated.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: