▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Emerald Drop(绿宝石滴落)
Emerald Drop(绿宝石滴落)

Emerald Drop(绿宝石滴落)

A mod about villagers and emeralds 一个关于村民和绿宝石的模组

168
1

Emerald Drop(绿宝石滴落) 1.3.0

release7 марта 2026 г.

移除成就系统 Remove the achievement system

Emerald Drop(绿宝石滴落) 1.2.0

release3 марта 2026 г.

Emerald Drop v1.2.0

一个为 Minecraft 1.21.11 设计的 Fabric 模组,添加了绿宝石相关的增强功能和丰富的成就系统。

📦 模组信息

  • 版本: 1.2.0
  • Minecraft: 1.21.11
  • Fabric Loader: 0.18.4+
  • Fabric API: 0.141.3+
  • 许可证: LGPL-3.0

✨ 核心功能

1. 绿宝石防火

  • 绿宝石物品不会被火焰和岩浆烧毁
  • 类似下界合金的防火特性
  • 可通过游戏规则配置

2. 村民掉落绿宝石

  • 村民死亡掉落 1-2 个绿宝石
  • 流浪商人死亡掉落 3-6 个绿宝石
  • 掉落数量可配置

3. 村民重生系统

  • 村民死亡后在绑定的床位置重生
  • 严格验证床的存在性
  • 防止床被破坏后重生

4. 村民掉落经验

  • 村民掉落 5-20 点经验
  • 流浪商人掉落 50 点经验
  • 使用加权随机算法

5. 调试指令系统

  • /emeralddrop debug <true|false> - 开启/关闭调试模式
  • 调试消息显示在聊天栏(64格范围内)
  • 实时查看模组事件

6. 成就系统(48个成就)

  • 收集类:9个成就
  • 交易类:5个成就
  • 村民类:4个成就
  • 防火类:2个成就
  • 经验类:1个成就
  • 探索类:8个成就
  • 战斗类:4个成就
  • 建筑类:5个成就
  • 生存类:3个成就
  • 职业类:7个成就

🏆 成就亮点

挑战成就(高经验奖励)

  • 绿宝石传奇 - 1000 XP(拥有3456个绿宝石)
  • 绿宝石王座 - 500 XP(拥有256个绿宝石方块)
  • 绿宝石之雨 - 300 XP(拥有1728个绿宝石)
  • 绿宝石信标 - 200 XP(拥有164个绿宝石方块)
  • 全职业大师 - 150 XP(与所有职业村民交易)

总经验奖励

所有成就完成可获得 2,830 点经验值

🌍 多语言支持

  • ✅ 简体中文 (zh_cn)
  • ✅ 繁体中文 (zh_tw)
  • ✅ English (en_us)
  • ✅ 日本語 (ja_jp)

所有成就、游戏规则和命令消息均已完整翻译。

🎮 游戏规则

规则名称默认值说明
emeraldFireImmunetrue绿宝石防火
villagerDropEmeraldtrue村民掉落绿宝石
villagerRespawntrue村民重生
villagerDropExperiencetrue村民掉落经验
villagerEmeraldMin1村民绿宝石最小值
villagerEmeraldMax2村民绿宝石最大值
traderEmeraldMin3流浪商人绿宝石最小值
traderEmeraldMax6流浪商人绿宝石最大值
villagerExperienceMin5村民经验最小值
villagerExperienceMax20村民经验最大值
traderExperience50流浪商人经验值

📊 性能数据

  • 模组大小: 68.21 KB
  • 初始化时间: ~22ms
  • 内存占用: < 1MB
  • TPS 影响: 可忽略
  • 事件处理: < 1ms

🚀 安装方法

  1. 确保已安装 Fabric Loader 0.18.4+
  2. 确保已安装 Fabric API 0.141.3+
  3. emerald-drop-1.2.0.jar 放入 mods 文件夹
  4. 启动游戏

🎯 快速开始

开启调试模式

/emeralddrop debug true

测试绿宝石防火

/give @s minecraft:emerald 64
/setblock ~ ~ ~1 minecraft:fire

将绿宝石扔进火焰,观察不会被烧毁。

测试村民重生

/summon minecraft:villager ~ ~ ~
/setblock ~ ~ ~3 minecraft:white_bed[part=foot]

等待村民绑定床位,然后击杀村民,观察重生。

查看成就

L 键打开成就界面,查找 "Emerald Drop" 分类。

🏗️ 成就树结构

绿宝石之旅 (Root)
├─ 收集类成就
│  ├─ 绿宝石囤积者 → 绿宝石收藏家 → 绿宝石大亨
│  └─ 绿宝石方块 → 绿宝石装甲 → 绿宝石信标
│     └─ 绿宝石大师 → 绿宝石之雨
├─ 交易类成就
│  └─ 村民交易者 → 交易大师 → 交易帝国 → 全职业大师
├─ 探索类成就
│  ├─ 绿宝石探险家 → 绿宝石矿工 → 山脉之王
│  └─ 维度旅行者 → 下界绿宝石 / 末地绿宝石
├─ 战斗类成就
│  └─ 绿宝石战士 → 掠夺者猎人 → 袭击守卫者
├─ 建筑类成就
│  └─ 绿宝石建筑师 → 绿宝石宫殿 → 绿宝石王座 → 绿宝石传奇
└─ 职业类成就
   ├─ 绿宝石农夫 → 牧羊人 / 屠夫 / 渔夫
   ├─ 绿宝石附魔师 → 图书管理员
   └─ 绿宝石战士 → 制箭师 / 铁匠

⚡ 性能优化

针对 FCL(手机端)

  • 减少内存分配
  • 优化事件处理
  • 快速类型检查

客户端优化

  • Mixin 注入点优化
  • 减少方法调用
  • 优化日志输出

服务端优化

  • 查找表优化
  • 缓存配置值
  • 位运算替代除法

🐛 已修复的 BUG

  1. ✅ 床被破坏后村民仍能重生
  2. ✅ 整数溢出风险
  3. ✅ 空指针异常
  4. ✅ 成就背景材质问题
  5. ✅ 竞态条件问题

📝 配置文件

配置文件位置:config/emerald-drop.json

{
  "enableEmeraldFireImmune": true,
  "enableVillagerDropEmerald": true,
  "enableVillagerRespawn": true,
  "enableVillagerDropExperience": true,
  "villagerEmeraldRange": [1, 2],
  "traderEmeraldRange": [3, 6],
  "villagerExperienceRange": [5, 20],
  "traderExperience": 50
}

🔧 开发环境

构建项目

./gradlew build

运行客户端

./gradlew runClient

运行服务器

./gradlew runServer

📚 文档

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

本项目采用 LGPL-3.0 许可证。

👤 作者

RedLotus

🙏 致谢

感谢所有测试者和贡献者的支持!


Emerald Drop v1.2.0 - 让绿宝石更有价值! 💎✨

Emerald Drop(绿宝石滴落) 1.0.1

release1 марта 2026 г.

修复了村民不会掉落绿宝石的BUG Fixed the bug where villagers would not drop emeralds

Emerald Drop(绿宝石滴落) 1.0.0

release28 февраля 2026 г.

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 using BlockTags.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!

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Создатели

Детали

Лицензия:LGPL-3.0-or-later
Опубликован:2 месяца назад
Обновлён:2 месяца назад
Главная