ezshow
ezshow 是一款专为 Minecraft Forge 1.12.2 设计的模组,用于在聊天中分享手中持有的物品。输入 /show 即可发送类似 <Steve> [Diamond Sword] 的消息,其外部格式与普通玩家聊天一致。悬停该物品可查看正常的工具提示(tooltip),包括附魔、耐久度、自定义名称(lore)以及模组相关的 NBT 数据。
ezshow 保持独立、轻量且极简,同时支持仅服务端安装、冷却时间、权限控制以及针对普通物品名称的按查看者本地化显示。
功能特性
- 单一命令:
/show。
- 优先使用主手;当主手为空时自动切换至副手。
- 采用原版
SHOW_ITEM 悬停数据,确保与已注册的模组物品广泛兼容。
- 默认物品名称由每位查看者的客户端进行翻译;锻造台重命名后的名称及动态组装的模组物品名称则保留物品自身的显示文本。
- 提供按玩家的冷却机制以防止聊天刷屏,可通过设置为
0 来禁用。
- 提供 Forge PermissionAPI 节点,可供权限模组覆盖配置。
- 同一个 JAR 文件既可用于单人游戏、局域网主机,也可作为仅服务端模组运行。
安装方法
- 使用 Minecraft 1.12.2 搭配 Forge 14.23.5.2859 或兼容的更高版本 1.12.2 Forge 构建。
- 将
ezshow.jar 放入相应的 mods 文件夹中。
- 启动或重启游戏/服务器。
| 游玩方式 |
ezshow 安装位置 |
是否需要客户端安装? |
| 专用服务器 |
服务器端 |
否 |
| 单人游戏 / 局域网主机 |
主机客户端 |
是,需安装在主机上 |
| 未安装 ezshow 的远程服务器 |
仅客户端 |
不支持 |
使用方法
手持一个物品并执行:
/show
选择逻辑是确定性的:
- 若主手非空,则分享主手物品。
- 否则,若副手非空,则分享副手物品。
- 若双手均为空,命令将显示正确的用法提示:
/show。
- 默认启用 3 秒冷却时间。
不支持参数。无效参数或因冷却时间被拒绝的请求也会显示正确的 /show 用法提示,而不会广播任何消息。
配置
Forge 会在首次启动后创建 config/ezshow.cfg 配置文件:
general {
I:cooldownSeconds=3
permissions {
S:bypassCooldown=OP
S:showCommand=ALL
}
}
cooldownSeconds: 成功分享之间的间隔秒数,取值范围为 0 到 86400;设为 0 可禁用冷却。
- 权限默认值接受
ALL、OP 或 NONE,修改后需要重启游戏。
| 权限节点 |
默认值 |
用途 |
ezshow.command.show |
ALL |
允许使用 /show 命令。 |
ezshow.cooldown.bypass |
OP |
绕过冷却时间限制。 |
提供 Forge 1.12.2 PermissionAPI 处理程序的权限模组可以直接管理这些节点。
ezshow
ezshow is a focused Minecraft Forge 1.12.2 mod for sharing held items in chat. Type /show to send a message such as <Steve> [Diamond Sword], using the same outer format as ordinary player chat. Hover the item to see its normal tooltip, including enchantments, durability, lore, and modded NBT data.
ezshow stays independent, lightweight, and minimal while supporting server-only installation, cooldowns, permissions, and per-viewer localization of ordinary item names.
Features
- One command:
/show.
- Main hand first; automatically falls back to the off hand when the main hand is empty.
- Vanilla
SHOW_ITEM hover data for broad compatibility with registered mod items.
- Default item names are translated by each viewer's client; anvil names and dynamically assembled mod item names preserve the item's own display text.
- A per-player cooldown prevents chat spam and can be disabled with
0.
- Forge PermissionAPI nodes that permission mods can override.
- The same JAR works in single player, on a LAN host, or as a dedicated-server-only mod.
Installation
- Use Minecraft 1.12.2 with Forge 14.23.5.2859 or a compatible newer 1.12.2 Forge build.
- Put
ezshow.jar in the relevant mods folder.
- Start or restart the game/server.
| Where you play |
Install ezshow on |
Client installation required? |
| Dedicated server |
Server |
No |
| Single player / LAN host |
Hosting client |
Yes, on the host |
| Remote server without ezshow |
Client only |
Unsupported |
Usage
Hold an item and run:
/show
Selection is deterministic:
- A non-empty main hand is shared.
- Otherwise, a non-empty off hand is shared.
- If both hands are empty, the command shows the localized correct usage:
/show.
- A 3-second cooldown is enabled by default.
Arguments are not supported. Invalid arguments and requests rejected by the cooldown also show the correct /show usage without broadcasting a message.
Configuration
Forge creates config/ezshow.cfg after the first launch:
general {
I:cooldownSeconds=3
permissions {
S:bypassCooldown=OP
S:showCommand=ALL
}
}
cooldownSeconds: seconds between successful shares, from 0 to 86400; 0 disables the cooldown.
- Permission defaults accept
ALL, OP, or NONE and require a restart after editing.
| Permission node |
Default |
Purpose |
ezshow.command.show |
ALL |
Allows /show. |
ezshow.cooldown.bypass |
OP |
Bypasses the cooldown. |
Permission mods that provide a Forge 1.12.2 PermissionAPI handler can manage these nodes directly.
评论 0
登录后参与评分
还没有评论,来抢沙发吧