Список изменений
Emerald Drop
一个增强村民互动的 Fabric 模组 / A Fabric mod that enhances villager interactions
让村民死亡时掉落绿宝石、经验,甚至能够重生!
Causes villagers to drop emeralds and experience upon death, and even allows them to respawn!
✨ 主要功能 / Main Features
💚 绿宝石防火 / Fireproof Emeralds
- 绿宝石物品不会被火焰或岩浆烧毁。
Emerald items are not destroyed by fire or lava.
🔮 经验球防火 / Fireproof Experience Orbs
- 经验球同样免疫火焰与岩浆伤害。
Experience orbs are also immune to fire and lava damage.
👨🌾 村民掉落绿宝石 / Villagers Drop Emeralds
- 普通村民(任何职业、失业、傻子)死亡时掉落 1-2 个绿宝石。
Regular villagers (any profession, unemployed, or nitwit) drop 1-2 emeralds upon death. - 流浪商人死亡时掉落 3-6 个绿宝石。
Wandering traders drop 3-6 emeralds upon death.
🔄 村民重生系统 / Villager Respawn System
- 村民死亡后会在其绑定的床位置重生(仅当床完好且在同一维度)。
When a villager dies, it respawns at the location of its linked bed (only if the bed is intact and in the same dimension). - 重生后的村民会自动记住该床,确保下次也能重生。
The respawned villager will automatically remember the same bed, ensuring future respawns. - 如果床被破坏、消失或不在同一维度,村民将不会重生。
If the bed is destroyed, missing, or not in the same dimension, the villager will not respawn. - 床必须存在、已加载且在有效范围内(使用
BlockTags.BEDS验证)。
The bed must exist, be loaded, and be within a valid range (verified usingBlockTags.BEDS).
📈 村民掉落经验 / Villagers Drop Experience
村民死亡时根据加权随机系统掉落经验值,模拟不同等级村民的经验价值:
Villagers drop experience upon death based on a weighted random system, simulating the value of villagers at different levels:
| 概率 / Chance | 经验值 / XP | 等级 / Level |
|---|---|---|
| 40% | 5 XP | 新手 / Novice |
| 25% | 10 XP | 学徒 / Apprentice |
| 20% | 15 XP | 熟练工 / Journeyman |
| 10% | 20 XP | 专家 / Expert |
| 5% | 30 XP | 大师 / Master |
- 流浪商人固定掉落 30 XP(大师级)。
Wandering traders always drop 30 XP (Master level).
📦 版本信息 / Version Information
- 模组版本 / Mod Version: 1.0.0
- 作者 / Author: RedLotus
- 适用游戏版本 / Supported Game Versions: Minecraft 1.21.1+ (具体支持 1.21.11 / specifically supports 1.21.11)
- 平台 / Platform: Fabric
- 许可证 / License: GNU Lesser General Public License v3
🔧 依赖 / Dependencies
- Fabric API(推荐最新版本 / latest version recommended)
❓ 常见问题 / Frequently Asked Questions
Q:村民重生需要满足什么条件?
Q: What conditions are required for a villager to respawn?
A:村民死亡前必须绑定了一张床,且该床未被破坏、在同一维度、位置已加载且在世界边界内。重生后新村民会自动绑定同一张床。
A: The villager must have been linked to a bed before death. The bed must not be destroyed, must be in the same dimension, and its location must be loaded and within the world border. After respawning, the new villager will automatically link to the same bed.
Q:经验掉落概率是如何计算的?
Q: How is the experience drop probability calculated?
A:每个村民死亡时独立按照上述概率随机选择经验值。流浪商人固定为大师级经验。
A: Each villager independently selects an experience value upon death based on the probabilities listed above. Wandering traders are fixed at the Master level experience.
Q:是否兼容其他模组?
Q: Is this mod compatible with other mods?
A:本模组主要使用 Fabric Loot Table Events 和 Mixin,尽可能兼容。如遇冲突,请报告 Issue。
A: This mod primarily uses Fabric Loot Table Events and Mixin, striving for compatibility. If conflicts arise, please report the issue.
欢迎提出建议或报告问题。
Feedback and issue reports are welcome!

