Open In Inventory
在背包界面中,只需单击即可打开指南书、背包、终端和手持工具。
再也不用为了找一个空的热键栏格子而四处寻找,或者在热键栏已满时手动交换物品了。在任何背包界面中将鼠标悬停在支持该功能的物品上并右键点击:Open In Inventory 会短暂地将它切换到你的手部槽位,使用它,并在你关闭界面后自动将其放回原位。
功能
- 在任何容器界面中只需一次右键点击:适用于你自己的背包、箱子、 barrels(木桶)、潜影盒、模组机器等,基本上只要玩家背包可见的地方都可以使用。
- 物品不会被永久移动:物品会被临时切换进来,使用完毕后再换回原来的位置。你的热键栏选中状态、光标上的物品以及背包中的其余物品都不会受到影响。
- 尊重 Shift 键:按住 Shift 的同时右键点击,模组将不会介入,因此正常的 Shift+点击行为仍然有效。
- 提示文本:当背包界面打开时,支持该功能的物品会在提示框中显示一行
Right Click to open(右键点击以打开),让你一目了然地知道哪些物品可以通过这种方式操作。 - 开箱即用,兼容多个流行模组,包括 Patchouli 指南书、Refined Storage 和 AE2 无线终端、Scannable、Extended Crafting、Crafting on a Stick,以及原版的书写书,截至版本 2.0.2。
- 易于扩展:通过游戏内命令添加任意你想要的物品,或在配置文件中通过模板批量添加一类物品,例如
example:{color}_backpack。
本模组为客户端侧运行:它不添加任何方块、物品或网络数据包,因此你可以在未安装该模组的服务器上正常加入。服务器也可以安装它;在这种情况下它会保持静默状态。
工作原理
当背包界面处于打开状态且你执行右键点击时,Open In Inventory 会检查你当前悬停的物品。如果该物品有内置或配置好的支持:
- 该物品会与当前选中的热键栏格子进行交换,
- 经过短暂的延迟(默认为 3 tick)后使用该物品,并且
- 当界面关闭时,重新打开你的背包并将物品换回其原始位置。
内置支持
以下物品无需额外配置即可直接使用:
| 来源 | 支持的物品 |
|---|---|
| Vanilla | 书写书、书与笔 |
| Patchouli | 所有指南书 |
| Refined Storage | 便携网格与无线网格(物品、流体、合成、自动合成),包括创造模式变体 |
| Applied Energistics 2 | 无线终端、无线合成终端、便携式物品/流体存储单元、切割刀(潜行时使用) |
| Scannable | 扫描仪(潜行时使用) |
| Extended Crafting | 手持工作台 |
| Crafting on a Stick | 工作台、织布机、砂轮、制图台、切石机、锻造台、铁砧(所有耐久状态) |
添加自定义物品
最简单的方法是使用游戏内命令。手持你想要支持的物品并运行:
/open-in-inventory add
这会将你主手持有的物品追加到 enabled_items 列表中。一些有用的变体命令如下:
| 命令 | 功能 |
|---|---|
/open-in-inventory add --hotbar |
一次性添加热键栏中所有有效的物品堆栈。 |
/open-in-inventory add --wildcard |
仅匹配物品类型,忽略 NBT/组件信息(例如任意一本书写书)。 |
/open-in-inventory add --sneak |
在潜行状态下使用该物品。 |
/open-in-inventory add --show |
打印生成的 JSON 内容而不是保存它。 |
/open-in-inventory hand |
预览主手条目而不保存它。 |
/open-in-inventory hotbar |
预览热键栏条目而不保存它们。 |
/open-in-inventory refresh |
重新加载配置文件并重建物品列表。 |
--wildcard 和 --sneak 也分别有简写形式 -w 和 -s。
注意:在使用 add 命令时可以添加任意数量的参数,例如:
/open-in-inventory add --hotbar --wildcard
许可证
Open In Inventory
Open guidebooks, backpacks, terminals and handheld tools with a single click in your inventory.
No more hunting for a free hotbar slot or manually swapping items when your hotbar is full, hover over a supported item in any inventory screen and right-click it: Open In Inventory briefly swaps it into your hand, uses it, and automatically puts it back when you close the screen.
Features
- One right-click in any container screen: Works in your own inventory, chests, barrels, shulker boxes, modded machines, basically anywhere the player inventory is visible.
- Nothing gets moved permanently: The item is swapped in, used, and swapped back to the exact same slot. Your hotbar selection, items on the cursor and the rest of the inventory are left untouched.
- Shift is respected: Hold shift while right-clicking and the mod stays out of the way, so normal shift-click behaviour still works.
- Tooltip: Supported items show a
Right Click to openline while the inventory screen is open, so you can tell at a glance what can be used this way. - Works out of the box with popular mods, including Patchouli guide books, Refined Storage and AE2 wireless terminals, Scannable, Extended Crafting, Crafting on a Stick, and vanilla written books, as of 2.0.2.
- Easy extension: Add any item you want with one in-game command, or bulk-add families of items with templates such as
example:{color}_backpackin config.
The mod is client-side: it adds no blocks, items or network packets, so you can join any server without it being installed there. Servers may install it too; it will simply stay inactive.
How it works
While an inventory screen is open and you right-clicked, Open In Inventory checks what you are hovering over. If there's builtin or configured support for it:
- the item is swapped with your currently selected hotbar slot,
- after a short delay (3 ticks by default) the item is used, and
- when the screen closes, your inventory is reopened and the item is swapped back to where it came from.
Built-in support
These are supported without any additional configuration:
| Source | Items |
|---|---|
| Vanilla | Written Book, Book and Quill |
| Patchouli | Every guide book |
| Refined Storage | Portable and wireless grids (item, fluid, crafting, autocrafting), including creative variants |
| Applied Energistics 2 | Wireless terminal, wireless crafting terminal, portable item/fluid cells, cutting knives (used while sneaking) |
| Scannable | Scanner (used while sneaking) |
| Extended Crafting | Handheld Table |
| Crafting on a Stick | Crafting Table, Loom, Grindstone, Cartography Table, Stonecutter, Smithing Table, Anvil (all damage states) |
Adding your own items
The easiest way is the in-game command. Hold the item you want to support and run:
/open-in-inventory add
This appends your main-hand item to enabled_items. Useful variants:
| Command | What it does |
|---|---|
/open-in-inventory add --hotbar |
Add every valid stack in your hotbar at once. |
/open-in-inventory add --wildcard |
Match by item only, ignoring NBT/components (e.g. any written book). |
/open-in-inventory add --sneak |
Use the item while sneaking. |
/open-in-inventory add --show |
Print the generated JSON instead of saving it. |
/open-in-inventory hand |
Preview the main-hand entry without saving it. |
/open-in-inventory hotbar |
Preview hotbar entries without saving them. |
/open-in-inventory refresh |
Reload the config and rebuild the item list. |
--wildcard and --sneak also have the short forms -w and -s.
NOTE: You can add arbitrarily many args when using add command, for example:
/open-in-inventory add --hotbar --wildcard
License
下载 Open In Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Open In Inventory
下载 Open In Inventory
下载 Open In Inventory
下载 Open In Inventory
下载 Open In Inventory
下载 Open In Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Open In Inventory
下载 Open In Inventory
下载 Open In Inventory
Open In Inventory 2.1.0 -> 2.1.1
- 修复 NeoForge 无法启动的问题
Open In Inventory 2.0.2 -> 2.1.0
- 支持 26.1.2
- 重写交换机制,使其更简洁、更通用
Open In Inventory 2.0.2 -> 2.1.0
- 支持 26.1.2
- 重写交换机制,使其更简洁且更通用
在物品栏中打开 2.0.1 -> 2.0.2
- 修复:
require_empty_main_hand配置项的注释未本地化 require_empty_main_hand现在默认为 false- 新增对原版《已撰写书》和《书与笔》的支持
- 修复:使用完一组物品后打开容器(例如箱子)会“再次交换该组物品”
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧