Gestorage
Gestorage 是一个模块化的 Fabric 模组(适用于 Minecraft 1.21.1),旨在改善玩家存储和物品栏管理。它是一个由独立模块组成的生态系统,可以单独启用或禁用,因此你只需安装真正需要的功能。
所有模块默认均为禁用状态,可通过游戏内配置界面(/gestorage config)、按键绑定或编辑 config/gestorage/ 目录来激活。
功能特性
| 模块 |
功能说明 |
| Expanded Ender Chest |
将末影箱的容量从 27 格扩展至 54 格(大型)或 228 格(超大型),可通过游戏规则在全服范围内选择设定,支持按玩家保留溢出物品的持久化存储,并支持通过按键绑定访问。 |
| Shulker Restock |
自动补货:将物品栏中的某个槽位与潜影盒绑定,当该槽位物品不足时,会自动从绑定的潜影盒中补充。 |
| Stackable Shulkers |
空的潜影盒可堆叠至 64 个,适用于玩家物品栏及所有容器场景(漏斗、发射器等)。服务器权威校验,可切换开关。 |
| Storage Overlay |
信息面板:显示在任何打开的物品栏旁边,包括物品栏名称、物品名称、堆叠数量、物品总数以及剩余空槽数。 |
| Inventory Sorting |
为容器、潜影盒、末影箱和玩家物品栏提供排序按钮和按键绑定,支持配置合并堆叠、按名称排序和排序方向等选项。 |
| Careful Break |
服务器权威的挖掘套件:小心破坏至手中、小心掉落至物品栏、树冠砍伐器、优化收获(仙人掌/甘蔗/竹子和海带链)以及树木和作物的自动重植。 |
| Tool Wheel |
径向工具选择器,绑定按键使用:一个持久的 9 格轮盘,可在轮盘和主手之间交换真实物品,并可选地配备服务器端自动工具功能,在挖掘时瞬间切换至最佳工具。 |
模块详情
Expanded Ender Chest
- 三种存储层级,通过
gestorage:enderChestSize 游戏规则在全服范围内选择:普通(27 格)、大型(54 格)和超大型(228 格)。
- 超出原版 27 格的溢出物品会按玩家单独存储,并在会话间保持持久化(NBT 状态,带有版本控制的备份)。
- 可配置的按键绑定允许你在任何位置打开自己的末影箱,无需手持物品。
- 也可通过
/gestorage endersize [normal|large|extra_large] 命令访问(需要 OP 等级 2)。
Shulker Restock
- 使用配置的标记键标记两个槽位(源潜影盒和目标槽位),以创建持久的跨世界链接。
- 当目标槽位的物品低于配置的阈值时,会从潜影盒中自动补充至默认堆叠大小,并具有自适应退避机制。
- 链接保存在
config/gestorage/links.json 中,重启后依然有效;这些链接在所有玩家之间共享。
Stackable Shulkers
- 空的潜影盒像其他物品一样行为(可堆叠至 64 个),而非空的潜影盒保持其通常的堆叠上限为 1。
- 服务器权威校验:配置界面中的切换开关会写入服务器配置,并且在连接到远程服务器时会禁用。
Storage Overlay
- 在打开的物品栏旁边渲染一个面板,显示物品栏名称、悬停物品名称、图标、堆叠数量和物品数量,以及剩余的空槽数。
- 每个元素都可以单独显示或隐藏,并且每个元素都有各自的可分配切换按键绑定。
Inventory Sorting
- 一键排序:适用于玩家物品栏(仅限主物品栏;快捷栏和护甲不受影响)、箱子、末影箱和潜影盒。
- 选项:合并堆叠、按名称排序、排序顺序(升序/降序)以及针对每种物品栏类型的屏蔽。
- 服务器会验证排序范围,因此无论谁作为主机,效果都是一致的。
Careful Break
服务器端标志,同步给所有客户端,并通过 OP 等级 2(或作为单人游戏主机)进行切换:
- Careful Break — 挖掘的方块直接进入你的物品栏(潜行以激活)。
- Careful Drop / Always Careful — 方块和实体掉落物(物品、战利品表、穿戴装备、矿车内容物)会被收集到你的物品栏中,而不是散落在地上。
- Tree Capitator — 通过破坏基座原木来砍倒整棵树(带有树木/树叶限制)。
- Better Harvesting — 一次性破坏整个仙人掌、甘蔗、竹子或海带链。
- Auto Replant — 收获后自动重新种植树木和作物。
Tool Wheel
- 径向 HUD 轮盘(9 格),通过按键绑定打开;点击可将真实物品在轮盘和主手之间交换。轮盘内容按玩家保存,并在会话和维度之间跟随你。
- Auto Tool(按玩家的服务器权威功能):在
START_DESTROY_BLOCK 时,轮盘中最好的工具会瞬间切换到你手中,在你开始挖掘每个方块时重新评估,并在挖掘停止一秒钟后恢复到你原来的工具。
- 按玩家存储的数据保存在主世界(
gestorage_tool_wheel_<uuid>),并在加入游戏及每次更改后同步给所有者。
依赖要求
- Minecraft 1.21.1
- Fabric Loader >= 0.16.10
- Fabric API
- owo-lib 已随模组捆绑(如果缺失会发出警告)
安装步骤
- 为 Minecraft 1.21.1 安装 Fabric Loader。
- 安装对应版本的 Fabric API。
- 从 Releases 页面 下载最新的 Gestorage 发布版。
- 将
.jar 文件放入 .minecraft/mods 目录。
- 启动游戏。模块默认关闭——通过
/gestorage config(或 Mod Menu)打开配置界面以启用它们。
配置
所有配置均位于 config/gestorage/ 目录下:
| 文件 |
用途 |
ender_chest.json |
末影箱访问快捷键及模块启用标志 |
shulker_refill.json |
填充阈值、标记快捷键及模块启用标志 |
shulker_stack.json |
服务器权威的堆叠潜影盒开关 |
storage_overlay.json |
覆盖层元素可见性及切换快捷键 |
inventory_sorting.json |
整理选项及切换快捷键 |
careful_break.json |
服务器权威的谨慎破坏标志(仅由服务器写入) |
careful_break_keybinds.json |
客户端的谨慎破坏快捷键 |
tool_wheel.json |
工具轮盘按键及模块启用标志 |
links.json |
潜影盒链接定义 |
命令与游戏内规则
/gestorage config — 打开游戏内配置界面。
/gestorage endersize [normal|large|extra_large] — 设置 gestorage:enderChestSize 游戏内规则(需要 OP 等级 2)。
- 游戏内规则
gestorage:enderChestSize — 接受 0(普通)、1(大型)或 2(超大型);该游戏内规则是服务器上末影箱大小的唯一权威来源。
反馈与贡献
Gestorage 正在积极开发中。如果遇到任何问题、有功能建议或希望为代码做出贡献,请提交 Issue 或 Pull Request。
许可证
依据 MIT License 发布。
Gestorage
Gestorage is a modular Fabric mod (Minecraft 1.21.1) that improves player storage and inventory management. It is an ecosystem of independent modules that can be enabled and disabled individually, so you only install the mechanics you actually want.
All modules ship disabled by default and are activated from the in-game config screen (/gestorage config), by keybind, or by editing config/gestorage/.
Features
| Module |
What it does |
| Expanded Ender Chest |
Grows the ender chest from 27 to 54 (Large) or 228 (Extra Large) slots, selectable server-wide via a game rule, with per-player overflow persistence and keybind access. |
| Shulker Restock |
Auto-refill for inventories: bind a hotbar/inventory slot to a shulker box and it is topped up automatically when it runs low. |
| Stackable Shulkers |
Empty shulker boxes stack up to 64, in the player inventory and in every container context (hoppers, droppers, etc.). Server-authoritative, toggleable. |
| Storage Overlay |
Informational panel shown next to any open inventory: inventory name, item name, stack counts, item counts and free-slot count. |
| Inventory Sorting |
Sort button and keybind for containers, shulker boxes, ender chests and the player inventory, with configurable merge, name and direction options. |
| Careful Break |
Server-authoritative mining suite: careful break to hand, careful drop to inventory, tree capitator, better harvesting (cactus/sugarcane/bamboo/kelp chains) and auto replant for trees and crops. |
| Tool Wheel |
Radial tool selector bound to a key: a persistent 9-slot wheel that swaps real items between the wheel and your hand, with an optional server-side Auto Tool that instantly swaps the best tool while mining. |
Module details
Expanded Ender Chest
- Three storage tiers, chosen server-wide with the
gestorage:enderChestSize game rule: Normal (27), Large (54) and Extra Large (228 slots).
- Overflow items beyond the vanilla 27 slots are stored per player and persist across sessions (NBT state, versioned with backups).
- A configurable keybind opens your ender chest from anywhere, without needing an item.
- Also accessible with
/gestorage endersize [normal|large|extra_large] (requires OP level 2).
Shulker Restock
- Mark two slots (source shulker and target) with the configured marking key to create a persistent per-world link.
- The target slot is refilled from the shulker up to default stack size whenever it falls below the configured threshold, with adaptive back-off.
- Links are saved per world in
config/gestorage/links.json and survive restarts; they are shared across players.
Stackable Shulkers
- Empty shulker boxes behave like any other item (stack to 64) while non-empty ones keep their usual stack limit of 1.
- Server-authoritative: the toggle in the config screen writes the server config and is disabled while connected to a remote server.
Storage Overlay
- Renders a panel adjacent to the open inventory showing inventory name, hovered item name, icon, stack and item counts, and remaining free slots.
- Every element can be shown or hidden individually, each with its own assignable toggle keybind.
Inventory Sorting
- One-click sort for player inventory (main inventory only; hotbar and armor untouched), chests, ender chests and shulker boxes.
- Options: merge stacks, sort by name, sort order (ascending/descending), and per-inventory-type blocking.
- The server validates the sorted range, so this works consistently regardless of who is hosting.
Careful Break
Server-side flags, synced to all clients and toggleable with OP level 2 (or as the singleplayer host):
- Careful Break — mined blocks go straight into your inventory (sneak to activate).
- Careful Drop / Always Careful — block and entity drops (items, loot tables, worn equipment, minecart contents) are collected into your inventory instead of being scattered.
- Tree Capitator — fell whole trees by breaking the base log (with tree/leaf caps).
- Better Harvesting — break entire cactus, sugarcane, bamboo and kelp chains in one swing.
- Auto Replant — automatically replant trees and crops after harvesting.
Tool Wheel
- A radial HUD wheel (9 slots) opened with a keybind; click to swap a real item between the wheel and your main hand. The wheel contents are saved per player and follow you across sessions and dimensions.
- Auto Tool (server-authoritative per player): on
START_DESTROY_BLOCK the best tool in the wheel is instantly swapped into your hand, re-evaluated on every block you start mining, and reverted to your original tool one second after mining stops.
- Per-player storage is persisted in the overworld (
gestorage_tool_wheel_<uuid>) and synced to the owner on join and after every change.
Requirements
- Minecraft 1.21.1
- Fabric Loader >= 0.16.10
- Fabric API
- owo-lib is bundled with the mod (warns you if it is missing)
Installation
- Install Fabric Loader for Minecraft 1.21.1.
- Install the matching Fabric API version.
- Download the latest Gestorage release from the Releases page.
- Drop the
.jar file into your .minecraft/mods directory.
- Launch the game. Modules are off by default — open the config screen with
/gestorage config (or Mod Menu) to enable them.
Configuration
All configuration lives in config/gestorage/:
| File |
Purpose |
ender_chest.json |
Ender chest access keybind and module enabled flag |
shulker_refill.json |
Refill threshold, marking key and module enabled flag |
shulker_stack.json |
Server-authoritative Stackable Shulkers toggle |
storage_overlay.json |
Overlay element visibility and toggle keybinds |
inventory_sorting.json |
Sorting options and toggle keybinds |
careful_break.json |
Server-authoritative Careful Break flags (written by the server only) |
careful_break_keybinds.json |
Client-side Careful Break keybinds |
tool_wheel.json |
Tool Wheel keys and module enabled flag |
links.json |
Shulker link definitions |
Commands and game rules
/gestorage config — opens the in-game config screen.
/gestorage endersize [normal|large|extra_large] — sets the gestorage:enderChestSize game rule (OP level 2).
- Game rule
gestorage:enderChestSize — accepts 0 (normal), 1 (large) or 2 (extra large); the game rule is the single authority for the ender chest size on the server.
Feedback & Contributions
Gestorage is actively developed. If you run into an issue, have a feature idea, or want to contribute to the code, open an Issue or submit a Pull Request.
License
Released under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧