Favorita
锁定你喜欢的物品栏槽位,防止意外掉落或移动它们。


功能说明
当鼠标悬停在物品栏中的某个槽位时,按下“收藏槽位”键(默认为 B)即可将其锁定。在物品栏外按下该键,则会锁定你当前手持快捷栏槽位的物品。再次按下则解锁。
被锁定的槽位会阻止你执行以下操作:掉落其中的物品、拾取物品、放入物品、通过 Shift+点击、数字键或副手键移动物品,以及通过双击收集物品。Shift+点击和拖拽的堆叠物品会跳过它并进入下一个可用槽位。此功能适用于快捷栏、主物品栏、盔甲栏和副手栏,在任何容器中均有效,且在生存模式和创造模式下均可使用。
每个世界和服务器各自保存其独立的锁定槽位设置。
Favorita 需要 OneConfig,其设置位于 OneConfig 菜单中。在那里你可以更改按键、禁止在非物品栏状态下解锁槽位、调整锁定的颜色、快捷栏锁定提示的显示时机,以及收到槽位锁定通知的方式。运行 /favorita 可打开设置界面,或运行 /favorita clear 以解锁当前世界或服务器中的所有已锁定槽位。
开发者信息
dev.deftu.favorita.api.FavoritedSlots 允许你的模组检查或修改已锁定的槽位,支持针对当前世界/服务器或指定名称的位置进行操作。
位置由服务器地址标识,或由 world: 加上单人世界的存档文件夹名称标识。槽位索引对应玩家物品栏:0 至 8 为快捷栏,9 至 35 为主物品栏,36 至 39 为盔甲栏,40 为副手栏。
锁定数据保存在 config/Favorita/favorites.json 文件中。

本项目基于 AGPL-3.0-or-later 许可证授权
© 2024 Deftu
Favorita
Lock your favorite inventory slots so you never drop or move them by accident.


What it does
Press the favorite slot key (B by default) while hovering a slot in your inventory to lock it. Press it outside an inventory to lock the hotbar slot you're holding. Press it again to unlock.
A locked slot stops you from dropping its item, picking it up, putting items into it, moving it with shift-click, number keys or the offhand key, and gathering from it with a double-click. Shift-clicked and dragged stacks skip it and go to the next free slot. It works on your hotbar, main inventory, armor and offhand, in any container, in survival and creative.
Each world and server keeps its own locked slots.
Favorita needs OneConfig, and its settings are in the OneConfig menu. There you can change the key, stop it from unlocking slots outside your inventory, the lock's color, when hotbar locks show, and how you're told that a slot is locked. Run /favorita to open them, or /favorita clear to unlock everything in the current world or server.
For developers
dev.deftu.favorita.api.FavoritedSlots lets your mod check and change locked slots, either for the current world or server or for a place you name.
A place is identified by a server's address, or by world: and a singleplayer world's save folder name. Slots are player inventory indices: 0 to 8 for the hotbar, 9 to 35 for the main inventory, 36 to 39 for armor and 40 for the offhand.
Locks are saved in config/Favorita/favorites.json.

This project is licensed under AGPL-3.0-or-later
© 2024 Deftu
评论 0
登录后参与评分
还没有评论,来抢沙发吧