Hotbar Pockets
Hotbar Pockets 在每个快捷栏槽位后方增加最多三个额外的槽位,称为“口袋”(pockets)。通过按键循环切换快捷栏槽位与其口袋中的物品,这样在一个快捷栏槽位中即可存放镐、铲、斧和第二把镐,而无需占用任何背包空间。
该模组需要在服务端和客户端都安装。在单人游戏中,你的游戏既是服务端也是客户端。
功能特性
口袋(Pockets)
- 将鼠标悬停在背包中的快捷栏槽位上,可在其上方一行查看该槽位的口袋。
- 使用加号按钮可为任意快捷栏槽位添加最多三个口袋,使用减号按钮可移除它们。
- 每个世界拥有独立的口袋布局。
- Shift+点击、双击收集以及拖拽填充操作绝不会将物品放入口袋中。
循环切换(Cycling)
- 按下右箭头或左箭头键,可将选中的快捷栏槽位在其口袋之间进行循环切换。
- 当背包界面打开时,按键会循环切换鼠标所在列的口袋。
迷你快捷栏(Mini hotbar)
- 在主快捷栏旁边显示一个小型快捷栏,展示当前循环状态下的物品,并在每次按键时随之滑动。
- 该迷你快捷栏可以关闭。
与 Inventory Plus 配合
- 当手持工具损坏时,若安装了 Inventory Plus,Restock 功能可从该槽位口袋中取出备用工具并自动装入手中。
- Inventory Plus 的锁定(Locks)和 Reach 功能同样适用于口袋,由你决定哪些操作可以使用这些功能。
- 相关设置位于 Inventory Plus 设置菜单中的 Pockets 选项卡内。
依赖项
- Fabric API
- MenuKit 7.5.0 或更高版本(低于 8.0.0),用于绘制口袋、加减按钮以及迷你快捷栏。
- SlotKit 2.3.0 或更高版本(低于 3.0.0),用于在背包中添加口袋槽位、在服务端随玩家数据保存口袋内容,并检查加入游戏的玩家是否已安装本模组。
良好搭配
- Inventory Plus 3.3.0 或更高版本,这是我为补货、整理和锁定槽位制作的模组。配合使用时,Restock 和 Auto Tool Switch 可从你的口袋中取物,其锁定和 Reach 功能作用于口袋,且 Hotbar Pockets 会获得一个专属的设置选项卡。旧版本的 Inventory Plus 无法与本模组共存。
兼容性
本模组支持 Minecraft 26.3 及 Fabric 加载器。需在客户端和服务端均安装。安装了 Hotbar Pockets 的服务端会拒绝未安装该模组的玩家连接,并提示所需安装的模组名称。
口袋中的物品不会因经验值而修复。
Hotbar Pockets 曾名为 Inventory Max。首次加入世界时,Inventory Max 口袋、鞘翅槽或图腾槽中遗留的物品会被移回你的背包,无法容纳的部分则会掉落至脚边。
使用方法
添加口袋
打开背包并将鼠标悬停在某个快捷栏槽位上。此时在该槽位下方会出现两个小按钮:左侧为减号,右侧为加号。
- 点击加号以添加口袋。一个快捷栏槽位最多可拥有三个口袋。口袋排列在快捷栏槽位上方的一行中,位于凸起的方块区域内。
- 点击减号以移除最右侧的口袋。其中的物品将被移入你的背包;若无空间,则掉落至脚边。
- 当槽位没有口袋时,减号按钮呈灰色禁用状态;当已有三个口袋时,加号按钮呈灰色禁用状态。
- 只要鼠标停留在快捷栏槽位、其按钮、口袋或它们之间的空白区域,该行口袋就会保持显示。
- 口袋不仅在你的背包中显示,在所有容器界面中也会显示,且加减按钮在这些界面中同样可用。
每个世界以及每个服务器都为每个快捷栏槽位独立记录口袋数量,新建世界默认没有任何口袋。口袋的数量及其中的物品会随玩家数据在服务端保存。如果你从旧版本升级,首次加入更新后的世界时,该世界原有的口袋数量将会保留。
使用口袋
口袋像其他槽位一样存放物品。你可以照常点击、拖拽并向其中放置物品。
- Shift+点击背包中的物品绝不会将其放入口袋。双击收集和拖拽填充操作也会跳过口袋。
- Shift+点击口袋可将其中的物品移至背包。
- 死亡时,口袋中的物品会与其他背包物品一同掉落;若开启了
keepInventory游戏规则,则予以保留。
循环切换
一个快捷栏槽位及其口袋构成一个循环组。
- 按下右箭头键,可将最左侧口袋中的物品移入手持位置。其他所有口袋中的物品向左移动一位,而你原本手持的物品则移入最右侧的口袋。
- 按下左箭头键则反向操作:最右侧口袋中的物品移入手持位置,而你原本手持的物品移入最左侧口袋。
- 在无屏幕界面(如主界面)时,按键循环切换选中的快捷栏槽位。
- 在背包界面中(包括创造模式下的生存物品标签页),将鼠标悬停在快捷栏槽位或其口袋上并按下按键,即可循环切换该列。
- 没有口袋的快捷栏槽位无法进行循环切换。
这两个按键均位于 Minecraft 的 Controls(控制)设置中,归类于 Hotbar Pockets 下。
| 按键 | 默认值 |
|---|---|
| Pocket Cycle Forward(口袋向前循环) | Right arrow(右箭头) |
| Pocket Cycle Backward(口袋向后循环) | Left arrow(左箭头) |
迷你快捷栏
当选中的快捷栏槽位拥有口袋时,主快捷栏旁的小型快捷栏会依次显示你手中的物品以及从左到右各口袋中的物品。这正是按下右箭头键时物品进入手中的顺序。该迷你快捷栏会在每次按键时随之滑动。
若已安装 Inventory Plus,可在 Pockets 选项卡的 “Beside the hotbar” 设置中将其关闭。
与 Inventory Plus 配合
- 自动补货(Restock)。 当你手中的工具损坏,且快捷栏某个格子的口袋里有备用工具时,自动补货功能会将备用工具切换到你手中。
- 自动工具切换(Auto Tool Switch)。 在为你正在挖掘的方块选择工具时,它也可以使用你口袋里的工具。
- 锁定(Locks)。 将鼠标悬停在口袋上并按 L 键即可将其锁定,操作方式与任意其他格子相同。
- 范围控制(Reach)。 默认情况下,口袋仅对以下操作开放:你自己的点击、Shift+点击以及口袋自身的旋转操作(包括通过旋转由自动补货和自动工具切换拉入替换工具的过程)。在“移动”设置中,口袋显示为一个复选框“Pockets”,勾选该选项后,“排序”或“移动匹配项”等功能也可以操作口袋。
- 口袋循环器(Pocket Cycler)。 循环功能在“其他模组”分类下列为“口袋循环器”。默认情况下,锁定不会阻止循环功能。如果在“口袋循环器”中清除“槽位锁定”,则当循环中的任意一个槽位被锁定时,该槽位将停止循环。
设置
设置位于 Inventory Plus 设置菜单中的“Pockets”标签页。按住 Ctrl 键并点击加号或减号按钮(Mac 系统为 Cmd 键)可在此处打开设置页面。如果没有安装 Inventory Plus,则没有设置菜单,所有设置将使用默认值。
| Pockets 标签页中的设置 | 默认值 |
|---|---|
| Pockets(开关) | 开启 |
| 显示 Pockets 按钮 | 关闭 |
| 位置 | 迷你快捷栏旁 |
| 口袋向前循环 | 右箭头 |
| 口袋向后循环 | 左箭头 |
- 关闭 Pockets 会隐藏所有口袋、加号和减号按钮以及迷你快捷栏,并且相关按键将失效。物品仍保留在各自的口袋中,在重新开启 Pockets 之前,自动补货和自动工具切换功能不会对它们产生影响。
- “显示 Pockets 按钮”会在背包右侧的列中添加一个 Pockets 开关。左键单击可开启或关闭 Pockets,按住 Ctrl 键单击可打开对应标签页。
- “重置为默认值”会先进行确认,然后将该标签页中的所有设置和两个按键恢复为默认状态。Inventory Plus 的“重置所有内容”也会执行此操作。
许可证
MIT。
Hotbar Pockets
Hotbar Pockets adds up to three extra slots, called pockets, behind each hotbar slot. A key cycles the hotbar slot through its pockets, so one hotbar slot can hold a pickaxe, a shovel, an axe, and a second pickaxe without using any room in your inventory.
It has to be installed on the server as well as the client. In singleplayer, your game is both.
Features
Pockets
- Hover a hotbar slot in your inventory to see its pockets in a row above it.
- Give any hotbar slot up to three pockets with the plus button, and take them away with the minus button.
- Each world has its own layout of pockets.
- Shift-clicks, double-click collecting, and drag filling never put items into a pocket.
Cycling
- Press the Right or Left arrow to cycle the selected hotbar slot through its pockets.
- With your inventory open, the keys cycle the column under your mouse.
Mini hotbar
- A small hotbar beside your hotbar shows what's in the cycle and slides with each press.
- It can be turned off.
With Inventory Plus
- When a tool in your hand breaks, Restock can cycle a spare from that slot's pockets into your hand.
- Inventory Plus's locks and Reach work on pockets, so you decide which moves may use them.
- The settings are on a Pockets tab in Inventory Plus's settings menu.
Requirements
- Fabric API
- MenuKit 7.5.0 or newer, below 8.0.0, which draws the pockets, the plus and minus buttons, and the mini hotbar.
- SlotKit 2.3.0 or newer, below 3.0.0, which adds the pocket slots to your inventory, saves them with your player on the server, and checks that a joining player has the mod.
Pairs well with
- Inventory Plus 3.3.0 or newer, my mod for restocking, sorting, and locking slots. With it, Restock and Auto Tool Switch can take from your pockets, its locks and Reach work on pockets, and Hotbar Pockets gets a settings tab. Older versions can't be installed alongside it.
Compatibility
It runs on Minecraft 26.3 with Fabric. Install it on both the client and the server. A server with Hotbar Pockets turns away players who don't have it, with a message naming the mods to install.
Items in pockets don't mend from XP.
Hotbar Pockets used to be Inventory Max. Anything left in Inventory Max's pockets, elytra slot, or totem slot is put back in your inventory the first time you join a world, and whatever doesn't fit drops at your feet.
How to use
Adding pockets
Open your inventory and hover a hotbar slot. Two small buttons appear just under it, minus on the left and plus on the right.
- Click plus to add a pocket. A hotbar slot can have up to three. The pockets sit in a row above the hotbar slot, on a raised box.
- Click minus to remove the rightmost pocket. Its item goes into your inventory, or drops at your feet if there's no room.
- Minus is grayed when the slot has no pockets, and plus is grayed when it has three.
- The row stays open while your mouse is on the hotbar slot, its buttons, its pockets, or the space between them.
- Pockets show on every container screen, not only your inventory, and the plus and minus buttons work there too.
Each world, and each server, has its own number of pockets for each hotbar slot, and a new world starts with none. The number of pockets, and the items in them, are saved with your player on the server. If you're updating from an older version, a world's existing count carries over the first time you join it after updating.
Using pockets
A pocket holds items like any slot. Click, drag, and place items in it as usual.
- Shift-clicking an item in your inventory never sends it into a pocket. Double-click collecting and drag filling skip pockets too.
- Shift-click a pocket to move its item into your inventory.
- When you die, items in pockets drop with the rest of your inventory, and they're kept when the keepInventory game rule is on.
Cycling
A hotbar slot and its pockets make a cycle.
- Press the Right arrow to bring the leftmost pocket's item into your hand. Every other pocket's item moves one place left, and the item you were holding goes into the rightmost pocket.
- Press the Left arrow to go the other way. The rightmost pocket's item comes into your hand, and the item you were holding goes into the leftmost pocket.
- With no screen open, the keys cycle the selected hotbar slot.
- In your inventory, including the creative inventory's Survival Inventory tab, hover a hotbar slot or its pockets and press a key to cycle that column.
- A hotbar slot with no pockets doesn't cycle.
Both keys are in Minecraft's Controls, under Hotbar Pockets.
| Key | Default |
|---|---|
| Pocket Cycle Forward | Right arrow |
| Pocket Cycle Backward | Left arrow |
Mini hotbar
While the selected hotbar slot has pockets, a small hotbar beside your hotbar shows the item in your hand, then each pocket's item from left to right. That's the order the Right arrow brings them to your hand. It slides with each press.
With Inventory Plus installed, Beside the hotbar on the Pockets tab turns it off.
With Inventory Plus
- Restock. When a tool in your hand breaks and a spare is in one of that hotbar slot's pockets, Restock cycles the spare into your hand.
- Auto Tool Switch. It can also use tools in your pockets when it picks a tool for the block you're mining.
- Locks. Press L over a pocket to lock it, the same as any slot.
- Reach. By default, a pocket is closed to everything but your own clicks, shift-click out, and the pocket turn itself, which includes Restock and Auto Tool Switch pulling a replacement through a turn. The pockets show as one checkbox, Pockets, under each other move, so ticking it under Sort or Move Matching lets that move use them too.
- Pocket Cycler. Cycling is listed in Reach as Pocket Cycler, under Other mods. Locks don't stop it by default. Clearing Slot lock under Pocket Cycler stops a slot from cycling while any slot in its cycle is locked.
Settings
The settings are on the Pockets tab in Inventory Plus's settings menu. Ctrl-click (Cmd on a Mac) the plus or minus button to open it there. Without Inventory Plus there's no settings menu, and the defaults apply.
| Setting on the Pockets tab | Default |
|---|---|
| Pockets (the switch) | On |
| Show the Pockets button | Off |
| Beside the hotbar | Mini hotbar |
| Pocket Cycle Forward | Right arrow |
| Pocket Cycle Backward | Left arrow |
- Turning Pockets off hides every pocket, the plus and minus buttons, and the mini hotbar, and the keys stop working. Items stay in their pockets, and Restock and Auto Tool Switch leave them alone until Pockets is back on.
- Show the Pockets button adds a Pockets switch to the column on the right of your inventory. Left-click it to turn Pockets on or off, or Ctrl-click it to open the tab.
- Reset to Defaults asks first, then puts every setting and both keys on the tab back. Inventory Plus's Reset everything resets them too.
License
MIT.
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
下载 Hotbar Pockets
2.1.1
修复
- 口袋现在会显示在所有容器界面中,而不仅仅是你的物品栏,其中的加号和减号按钮也能正常工作。
- 在创造模式下缩小口袋不再删除其中的物品。
更改
- 口袋计数现在由服务器保存,而不是保存在你的电脑上;更新后首次加入世界时,该世界的现有计数会保留。
- 按住 Shift 键点击将物品放入口袋时,现在遵循 Inventory Plus 的「范围」设置(默认关闭),而不是一直被阻止。
- 需要 SlotKit 2.3.0 或更高版本。
2.1.0
更改
- 需要 MenuKit 7.4.0 或更高版本以及 SlotKit 2.1.0 或更高版本。
- 循环按键现在可以在创造模式物品栏的「生存物品栏」标签页中使用。在该标签页中悬停快捷栏槽位或其口袋,然后按下按键,就像在生存物品栏中一样。
- 兼容 Inventory Plus 3.3.0 或更高版本。旧版本无法与其共存安装。
- 口袋现在默认受到 Reach 的保护:除了你自己的点击、Shift 键拖拽移出以及口袋自身的旋转操作外,其他交互均被阻止。
2.1.0
更改
- 需要 MenuKit 7.4.0 或更高版本,以及 SlotKit 2.1.0 或更高版本。
- 循环键现在可以在创造模式物品的“生存物品栏”标签页中使用。悬停在该处的快捷栏槽位或其口袋上并按下按键,效果如同在生存物品栏中一样。
- 兼容 Inventory Plus 3.3.0 或更高版本。旧版本无法与其共存安装。
- 口袋现在默认在 Reach 模式下受到保护:仅允许你自己的点击、Shift+点击移出操作以及口袋自身的旋转功能。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧