Favorita
by deftu
Favorita is a Library mod that lets players mark inventory slots as favorited so the items in them cannot be discarded by accident.
What it does
A favorited slot refuses drop actions, quick moves and swaps, so an important item stays where it was placed. The protection covers the player inventory, the hotbar container and the offhand slot, and a favorited hotbar slot cannot be cleared by the usual inventory controls. Players can still move an item within its slot or remove the protection later.
Developers can build on the mod through the FavoritedSlots class in dev.deftu.favorita.api, which exposes functions to check whether a slot is favorited, to mark it and to unmark it. Identifier strings describe the current environment a player is in, with a constant for singleplayer and an address value for the server entry currently being played. Favorita needs Fabric API, Fabric Language Kotlin, Kotlin for Forge, OmniCore, Textile and Textualizer, and Mod Menu is optional.
The mod is client-side only, so servers need nothing installed and players alone run it. It is released under the GNU Lesser General Public License v3.0 or later and is open source. Files cover 1.8.9 – 1.21 across Fabric, Forge and NeoForge, with 12 release versions, and the latest Fabric file is 0.5.1+1.21-fabric for 1.21, released 2024-07-26 on the beta channel.
Key features
Favorited item slots
Marking a slot as favorited prevents the item inside from being dropped or discarded by mistake.
Protected inventory areas
Protection applies to the player inventory, the hotbar container and the offhand slot.
Blocked slot actions
Drop, quick move, swap and bin-slot wipe actions are stopped for favorited slots, while moving within the slot stays possible.
Developer API
The FavoritedSlots class checks, marks and unmarks slots for other mods that need the same protection.
Environment identifiers
Identifier strings report the current environment, including singleplayer and the server address being played.
Compatibility
Latest build for each game version and loader.
1.21.x1 of 1 version with builds
1.20.x4 of 4 versions with builds
1.19.x2 of 2 versions with builds
1.18.x1 of 1 version with builds
1.17.x1 of 1 version with builds
1.16.x1 of 1 version with builds
1.12.x1 of 1 version with builds
1.8.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 5
Optional 1
Use cases
Who it’s for: Players who often drop items by accident in survival or modded worlds, and mod developers who want to check or set slot protection through the API.
Questions
Does Favorita need to be installed on the server?
Which dependencies must be installed with Favorita?
Which loaders and versions does Favorita support?
Can another mod check whether a slot is favorited?
In the catalog
Favorita is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.
More from deftu
Similar mods
What the author says
If the (hotbar) slot is favorited, you can't: - Move the item within it - Drop the item - Wipe that slot using the bin slot - Quick move items into or out of that slot - Swap an item into or out of that slot An API is exposed via dev.deftu.favorita.api.FavoritedSlots which allows you to check if a slot is favorited…
Official listing
- Modrinth page
- modrinth.com/mod/favorita
- Owner
- deftu
- Published
- 2024-06-25
- Updated on Modrinth
- 2024-07-26
- Facts verified
- 2026-10-15
