项目详情 · Description English SH-Common-Lib (SHCLIB) is a shared Minecraft mod library by dishanhai. It provides reusable APIs for mod and modpack authors, along with a Sealed Crate, a configurable player HUD, and shortcuts for JEI.
- Sealed Crate — Pack up to nine item stacks into one crate. Sneak and right-click to seal it, then use it to unpack its contents. Hold Shift while hovering over a sealed crate to expand its contents preview. Mod and modpack authors can create prefilled crates for rewards or trades using the Parcels API or KubeJS ShParcels.
- SHCLIB Control Center — Press F9 in-game or open the mod’s configuration screen to manage the player HUD and view usage tips.
- Player Info HUD — View FPS, ping, coordinates, biome, light levels, and more. Press F8 in-game to move the HUD by dragging it or using the arrow keys.
- JEI shortcuts — Hover over an item or fluid to copy its name, tag, registry ID, or data, or insert its name and ID into the chat input. Ctrl+A copies NBT on Forge 1.20.1 and data component changes on NeoForge 1.21.1.
- ME Infinity Cell · NeoForge 1.21.1 — With Applied Energistics 2 installed and JEI cheat mode enabled, use Ctrl+Shift+Left Click on an item or fluid to request a cell bound to that material. An ME Drive can supply unlimited amounts of the bound material. JEI and the server control who can obtain the cell. 简体中文 山海公用库(SHCLIB) 为 Minecraft 模组和整合包提供共用 API,也包含密封货匣、玩家信息 HUD 和 JEI 快捷键。
- 密封货匣可装入最多 9 组物品。潜行右键封存,使用已封存的货匣即可拆封。悬停时按住 Shift 可展开内容预览。模组和整合包作者可通过 Parcels API 或 KubeJS 的 ShParcels 为奖励和交易生成预装货匣。
- SHCLIB 主控中心可通过游戏内 F9 或模组配置入口打开。玩家信息 HUD 可显示帧率、延迟、坐标、群系和光照等信息。在世界中按 F8,可拖动或用方向键调整 HUD 位置。
- JEI 快捷键可复制悬停物品或流体的名称、标签、注册 ID 和数据,也可将名称与 ID 填入聊天输入框。Forge 1.20.1 的 Ctrl+A 复制 NBT,NeoForge 1.21.1 复制数据组件改动。
- ME 无限元件适用于 NeoForge 1.21.1。安装 AE2 并开启 JEI 作弊模式后,悬停目标并按 Ctrl+Shift+左键 即可请求发放。每张元件固定绑定一种物品或流体,装入 ME 驱动器后可无限取出该材料。发放由 JEI 和服务端权限控制。

