Entity Numbering Mod
仓库:
概述
Entity Numbering Mod 是一个 Fabric 模组,它按物种为 Minecraft 中的实体添加累计编号,并提供死亡消息广播功能。

功能
- 为游戏中的实体添加唯一编号(可禁用)
- 已命名的实体将拥有标签
entity_numbering.named,该标签也可用于防止实体被命名
- 广播实体死亡消息(可禁用)
- 可自定义死亡消息的广播范围
- 可自定义实体名称与编号之间的分隔符
- 对僵尸感染村民和苦力怕爆炸进行了特殊处理
- 添加了
resetname 命令以清除名称
已知问题
- 它会影响世界中所有未命名的活体实体,因为我目前不知道如何区分预先存在的实体和新生成的实体
安装
- 确保已安装 fabric-api 和 Fabric 加载器,且加载器版本 >=0.16.0
- 下载此模组的 .jar 文件
- 将下载的 .jar 文件放入你的 Minecraft
mods 文件夹中
- 启动游戏!
配置
模组的配置文件应位于 .minecraft/config/entity_numbering.json。你可以根据需要修改以下设置:
{
"enableNumbering": true,
"enableDeathMessages": true,
"boardcastNeedName": true,
"boardcastDistance": 128,
"nameSeparator": " #"
}
enableNumbering: 是否启用实体编号功能
enableDeathMessages: 是否启用死亡消息广播
boardcastNeedName: 是否仅对已命名的实体广播死亡消息
boardcastDistance: 死亡消息广播的范围(以方块为单位)
nameSeparator: 实体名称与编号之间的分隔符
出于调试目的,你可以打开 /saves/<world_name>/data/entity_counter.json 来修改每种实体的当前数量计数
卸载
- 修改
.minecraft/config/entity_numbering.json 并将 enableNumbering 设置为 false
- 运行
/resetname @e[tag=entity_numbering.named],确保所有已命名的实体都受到影响(某些实体可能位于未加载的区块中)
- 运行
/execute as @e[tag=entity_numbering.named] unless data entity @s CustomName run tag @s remove entity_numbering.named 以从未设置自定义名称的实体上移除标签
- 关闭游戏
- 从
mods 文件夹中删除 entity_numbering-x.x.x.jar 文件
兼容性
此模组兼容 Minecraft 版本 1.21-1.21.1。
其他版本尚未经过测试。
贡献
欢迎提交 Issue 和 Pull Request。
许可证
本项目根据 MIT 许可证授权。
Entity Numbering Mod
Repository:
Overview
Entity Numbering Mod is a Fabric mod that adds cumulative numbering to entities in Minecraft by species and provides death message broadcasting functionality.

Features
- Adds unique numbering to entities in the game (can be disabled)
- Named entities will have the tag:
entity_numbering.named, which can also be used to prevent entities from being named
- Broadcasts entity death messages (can be disabled)
- Customizable death message broadcast range
- Customizable separator between entity name and number
- Special handling for zombies infecting villagers and creeper explosions
- Added the
resetname command to clear names
Known Issues
- It affects all unnamed living entities in the world, as I currently don't know how to distinguish between pre-existing entities and newly spawned ones
Installation
- Make sure you have fabric-api and Fabric loader installed, with loader version >=0.16.0
- Download the .jar file of this mod
- Place the downloaded .jar file into your Minecraft
mods folder
- Launch the game!
Configuration
The mod's configuration file should be located at .minecraft/config/entity_numbering.json. You can modify the following settings as needed:
{
"enableNumbering": true,
"enableDeathMessages": true,
"boardcastNeedName": true,
"boardcastDistance": 128,
"nameSeparator": " #"
}
enableNumbering: Whether to enable entity numbering feature
enableDeathMessages: Whether to enable death message broadcasting
boardcastNeedName: Whether to broadcast death messages only for named entities
boardcastDistance: The range of death message broadcasting (in blocks)
nameSeparator: The separator between entity name and number
For debugging purposes, you can open /saves/<world_name>/data/entity_counter.json to modify the current number count for each type of entity
Uninstallation
- Modify
.minecraft/config/entity_numbering.json and set enableNumbering to false
- Run
/resetname @e[tag=entity_numbering.named], make sure all named entities are affected (some entities might be in unloaded chunks)
- Run
/execute as @e[tag=entity_numbering.named] unless data entity @s CustomName run tag @s remove entity_numbering.named to remove the tag from entities without a custom name
- Close the game
- Delete the
entity_numbering-x.x.x.jar file from the mods folder
Compatibility
This mod is compatible with Minecraft version 1.21-1.21.1.
Other versions have not been tested.
Contributions
Issues and pull requests are welcome.
License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧