项目简介
![]()
Show My Item 是一款轻量级的 Minecraft Fabric 模组,专为服务器设计。它允许玩家通过简单的占位符(如 [item]、[inventory] 或 [enderchest])在聊天中分享他们手持的物品、整个背包或末影箱。其他玩家可以悬停在物品名称上查看完整的工具提示,或者点击链接以只读方式查看共享的容器内容。
它解决了什么问题?
- 不再需要手动输入复杂的物品名称,也不用让朋友猜你手里拿的是什么。
- 无需复杂指令,即可即时分享你的背包或末影箱。
- 悬停查看详情,点击查看完整库存——沟通变得直观且可视化。
- 纯粹用于分享和炫耀,没有任何作弊或破坏游戏平衡的元素。
为什么选择它?
- 简单:使用自然语言占位符,支持英文和中文。
- 强大:支持主手、副手、背包(包括护甲和副手)以及末影箱。
- 可配置:提供类似 Carpet 的聊天菜单,可实时调整过期时间、最大快照数量和语言设置。
- 轻量:仅服务端运行;客户端无需安装该模组。
- 兼容:基于 Fabric API 构建,与大多数模组兼容。
当然,没有哪个模组能满足所有人的需求。如果你有任何建议,欢迎提交 Issue 或 Pull Request。
(返回顶部)
技术栈
- Minecraft 1.21.4
- Fabric Loader (>=0.16.9)
- Fabric API (>=0.119.4)
- Java 21
(返回顶部)
快速开始
要在你的服务器(或单人游戏中)使用该模组,请遵循以下步骤。
前置要求
- Minecraft 1.21.4 服务器或客户端(如果是单人游戏)。
- Fabric Loader 0.16.9 或更高版本。
- Fabric API(服务器必需;客户端非必需,但拥有它也无妨)。
安装
-
下载模组
从 Modrinth 或 GitHub Releases 下载最新的 JAR 文件。 -
放置模组
将 JAR 文件放入服务器的mods文件夹中。
对于单人游戏,也将其放入客户端的mods文件夹中(它将在集成服务器上正常工作)。 -
启动游戏/服务器
无需额外配置——模组将自动工作,并在config/showmyitem.json处创建配置文件。
(返回顶部)
使用方法
占位符
模组支持以下可以直接在聊天中使用的占位符(这些是英文版本的占位符;请参阅中文文档以获取中文占位符):
| 占位符 | 描述 |
|---|---|
[item] |
主手物品 |
[offhand] |
副手物品 |
[inventory] |
分享你的整个背包(包括护甲和副手);生成一个可点击的链接 |
[enderchest] |
分享你的末影箱;生成一个可点击的链接 |
[!NOTE] 占位符与服务端语言无关。你可以在任何语言环境中使用这些英文占位符。如果你偏好中文,也可以使用对应的中文占位符
[物品]、[副手]、[背包]、[末影箱]。
基本用法
- 确保你手中持有物品。
- 输入包含占位符的消息,例如:
Check this out! [item] My inventory: [inventory] My ender chest: [enderchest] - 发送后,占位符将被替换为物品名称或可点击的链接。
- 其他玩家可以悬停在物品名称上查看工具提示,或点击
[Player's Inventory]/[Player's Ender Chest]以打开只读视图。
交互详情
- 悬停:将鼠标悬停在物品名称上会显示其完整工具提示(附魔、耐久度、自定义名称等)。
- 点击背包/末影箱链接:打开一个安全、只读的容器,显示目标的主要背包、盔甲栏、副手或末影箱。物品无法移动或拿走,防止物品复制漏洞。
- 权限:只有快照创建者或 OP(管理员)可以打开链接;其他人将收到错误消息。
(回到顶部)
配置
该模组提供了一个类似 Carpet 的聊天菜单,可通过 /showmyitem 命令访问。
命令
| 命令 | 描述 | 权限 |
|---|---|---|
/showmyitem |
显示所有设置和版本信息 | 所有人 |
/showmyitem category <category> |
显示特定类别的设置 | 所有人 |
/showmyitem find <query> |
模糊搜索设置 | 所有人 |
/showmyitem viewinv <snapshotID> |
查看背包快照 | 创建者或 OP |
/showmyitem viewender <snapshotID> |
查看末影箱快照 | 创建者或 OP |
/showmyitem set <key> <value> |
修改配置选项 | OP (等级 2) |
/showmyitem reloadconfig |
从文件重新加载配置 | OP (等级 2) |
配置选项
配置文件位于 config/showmyitem.json。您可以直接编辑它,或使用游戏内菜单/命令更改值:
snapshotExpiryMs: 快照过期时间(毫秒),默认值为 300000(5 分钟)。maxSnapshots: 同时存储的最大快照数量,默认值为 100。defaultLanguage: 服务器默认语言,可选en_us或zh_cn。
编辑后,使用 /showmyitem reloadconfig 应用更改而无需重启服务器。
(回到顶部)
路线图
- 主手物品显示 (
[item]) - 副手物品显示 (
[offhand]) - 与盔甲和副手共享背包 (
[背包]/[inventory]) - 共享末影箱 (
[末影箱]/[enderchest]) - 仅服务端架构
- 多语言支持(英文 / 中文),自动检测占位符
- 类似 Carpet 的配置菜单,支持可点击的设置项
- 配置热重载
- 安全只读容器,防止物品复制
- 共享更多信息:生命值、饥饿值等
- 共享指定方块/实体
- 更多语言支持
有关请求的功能和已知问题的完整列表,请参阅 开放问题。
(回到顶部)
贡献
贡献是使开源社区成为如此令人惊叹的学习、灵感和创造场所的原因。非常感谢您做出的任何贡献。
如果您有改进建议,请 fork 仓库并创建拉取请求。您也可以简单地打开带有 "enhancement" 标签的问题。别忘了给项目点个星!再次感谢!
- Fork 项目
- 创建功能分支 (
git checkout -b feature/AmazingFeature) - 提交您的更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 打开拉取请求
(回到顶部)
构建
- 运行
./gradlew build以构建模组。 - 重映射后的 jar 文件位于
build/libs/中。 - 开发版 jar 文件位于
build/devlibs/中(不用于分发)。
许可证
根据 MIT 许可证分发。有关更多信息,请参阅 LICENSE。
(回到顶部)
联系方式
项目链接:
(回到顶部)
致谢
本 README 模板灵感来源于:
(回到顶部)
Show My Item
Elegantly display your held item, inventory, or ender chest in chat — making sharing easier!
Explore the docs »
View Modrinth Page
·
View GitHub Page
·
Report Bug
·
Request Feature
Table of Contents
About The Project
![]()
Show My Item is a lightweight Minecraft Fabric mod designed for servers. It allows players to share their held item, entire inventory, or ender chest in chat using simple placeholders like [item], [inventory], or [enderchest]. Other players can hover over item names to see full tooltips, or click links to view a read-only container of the shared inventory.
What problem does it solve?
- No more manually typing complicated item names or making friends guess what you're holding.
- Share your inventory or ender chest instantly without complicated commands.
- Hover to see details, click to view the full inventory — communication becomes intuitive and visual.
- Purely for sharing and showing off, with no cheating or game-breaking elements.
Why choose it?
- Simple: Natural language placeholders, works with both English and Chinese.
- Powerful: Supports main hand, offhand, inventory (including armor and offhand), and ender chest.
- Configurable: Carpet-like chat menu for adjusting expiration time, max snapshots, and language on the fly.
- Lightweight: Server-side only; clients do not need to install the mod.
- Compatible: Built on Fabric API, compatible with most mods.
Of course, no mod can satisfy everyone. If you have any suggestions, feel free to open an Issue or Pull Request.
Built With
- Minecraft 1.21.4
- Fabric Loader (>=0.16.9)
- Fabric API (>=0.119.4)
- Java 21
Getting Started
To use this mod on your server (or in singleplayer), follow these steps.
Prerequisites
- Minecraft 1.21.4 server or client (if playing singleplayer).
- Fabric Loader 0.16.9 or higher.
- Fabric API (required on server; not required on client, but having it doesn't hurt).
Installation
-
Download the mod
Download the latest JAR file from Modrinth or GitHub Releases. -
Place the mod
Put the JAR file into themodsfolder of your server.
For singleplayer, also put it into the client'smodsfolder (it will work on the integrated server). -
Start the game/server
No extra configuration needed — the mod will work automatically, and a config file will be created atconfig/showmyitem.json.
Usage
Placeholders
The mod supports the following placeholders that can be used directly in chat (these are the English version placeholders; see the Chinese documentation for Chinese placeholders):
| Placeholder | Description |
|---|---|
[item] |
Main hand item |
[offhand] |
Offhand item |
[inventory] |
Share your entire inventory (including armor and offhand); generates a clickable link |
[enderchest] |
Share your ender chest; generates a clickable link |
[!NOTE] Placeholders are independent of server language. You can use these English placeholders in any language environment. If you prefer Chinese, you can also use the Chinese equivalents
[物品],[副手],[背包],[末影箱].
Basic Usage
- Make sure you are holding an item.
- Type a message containing placeholders, for example:
Check this out! [item] My inventory: [inventory] My ender chest: [enderchest] - After sending, placeholders will be replaced with item names or clickable links.
- Other players can hover over item names to see tooltips, or click
[Player's Inventory]/[Player's Ender Chest]to open a read-only view.
Interaction Details
- Hover: Hovering over an item name shows its full tooltip (enchantments, durability, custom name, etc.).
- Click inventory/ender chest links: Opens a secure, read-only container showing the target's main inventory, armor, offhand, or ender chest. Items cannot be moved or taken, preventing item duplication exploits.
- Permission: Only the snapshot creator or OPs can open a link; others will receive an error message.
Configuration
The mod features a Carpet-like chat menu accessible via the /showmyitem command.
Commands
| Command | Description | Permission |
|---|---|---|
/showmyitem |
Show all settings and version info | Everyone |
/showmyitem category <category> |
Show settings for a category | Everyone |
/showmyitem find <query> |
Fuzzy search for settings | Everyone |
/showmyitem viewinv <snapshotID> |
View inventory snapshot | Creator or OP |
/showmyitem viewender <snapshotID> |
View ender chest snapshot | Creator or OP |
/showmyitem set <key> <value> |
Modify a config option | OP (level 2) |
/showmyitem reloadconfig |
Reload configuration from file | OP (level 2) |
Configuration Options
Config file is located at config/showmyitem.json. You can edit it directly or change values in-game using the menu/commands:
snapshotExpiryMs: Expiration time for snapshots in milliseconds (default 300000 = 5 minutes).maxSnapshots: Maximum number of snapshots stored at once (default 100).defaultLanguage: Server default language, eitheren_usorzh_cn.
After editing, use /showmyitem reloadconfig to apply changes without restarting.
Roadmap
- Main hand item display (
[item]) - Offhand item display (
[offhand]) - Inventory sharing with armor and offhand (
[背包]/[inventory]) - Ender chest sharing (
[末影箱]/[enderchest]) - Server-side only architecture
- Multi-language support (English / Chinese) with auto-detection of placeholders
- Carpet-style config menu with clickable settings
- Config hot-reload
- Secure read-only containers to prevent item duplication
- Share more info: health, hunger, etc.
- Share targeted block/entity
- More language support
See open issues for a full list of requested features and known issues.
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Building
- Run
./gradlew buildto build the mod. - The remapped jar is located in
build/libs/. - The development jar is placed in
build/devlibs/(not for distribution).
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Project Link:
Acknowledgments
This README template was inspired by:
下载 Show My Item
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Show My Item
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Show My Item
下载 Show My Item
下载 Show My Item
下载 Show My Item
下载 Show My Item
下载 Show My Item
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Show My Item
下载 Show My Item
1.3.0 版本更新内容
✨ 新功能
- 将 Minecraft 和 Fabric 版本更新至 1.21.11,添加 Modrinth Maven 仓库,集成由 @PhantomPixel-0418 开发的 fabric-permissions-api
? 其他
- v1.3.0+1.21.11 by @PhantomPixel-0418
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧