ashutoshswamy/crabcraft-mod

GitHub: ashutoshswamy/crabcraft-mod

CrabCraft 是一个 Minecraft 模组,通过添加螃蟹生物和移动能力来扩展游戏玩法。

Stars: 0 | Forks: 0

# ep it in English. But in the examples, the translated parts are the common words, not the proper nouns. CrabCraft 是一个适用于 **NeoForge 1.21.1** 的 **Minecraft Java Edition** 模组,它添加了自定义的螃蟹生物、螃蟹主题物品和一个移动能力系统。 ![CrabCraft Banner](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/2488494574184752.png) ## 功能 - 新的自定义生物:**螃蟹** - 默认为中立,受到攻击时变为敌对 - 螃蟹 AI: - 支持游泳和水中寻路 - 在海滩/水域附近随机漫步 - 避开僵尸 - 反击 + 近战攻击目标 - 生物群系生成于: - 沙滩 - 温暖海洋 - 红树林沼泽 - 螃蟹掉落: - **生螃蟹肉**(普通) - **螃蟹钳**(稀有,10%) - **螃蟹钳**(可消耗能力物品): - 消耗后进行侧向冲刺 - 速度效果(2秒) - 临时击退抗性处理 - 溅射 + 拖尾粒子效果 - 6秒冷却时间 - 烹饪支持: - 营火 - 熔炉 - 烟熏炉 - 高炉 ## 技术栈 - Minecraft: `1.21.1` - 加载器/API: `NeoForge 21.1.x` - Java: `21` - 动画库: `GeckoLib 4.7.6` ## 项目结构 ``` com.ashu.crabcraft ├── client/ ├── entity/ ├── event/ ├── item/ ├── network/ ├── registry/ └── util/ ``` ## 所需资源 这些文件应放置在 `src/main/resources/assets/crabcraft/` 目录下: - `textures/entity/crab.png` - `textures/item/crab_claw.png` - `textures/item/raw_crab_meat.png` - `geo/crab.geo.json` - `animations/crab.animation.json` - `lang/en_us.json` ## 构建 ``` ./gradlew build ``` ## 运行客户端(开发) ``` ./gradlew runClient ``` ## 游戏内快速测试 1. 使用 `crab_spawn_egg` 生成一只螃蟹。 2. 验证螃蟹的移动、游泳以及被攻击时的敌对行为。 3. 从螃蟹掉落物中获取 `raw_crab_meat`。 4. 烹饪生螃蟹肉得到 `crab_claw`。 5. 消耗螃蟹钳,验证冲刺能力 + 冷却时间。 ## 烹饪指南 ![Crab Cooking Guide](https://static.pigsec.cn/wp-content/uploads/repos/2026/05/0cf753faa0184755.png) ## 备注 - 螃蟹的渲染/定位已在代码中通过渲染器偏移进行了调整。 - 如果你重新制作螃蟹模型,你可能需要在 `CrabRenderer` 中重新调整渲染器 Y 轴偏移。 ## 许可证 MIT
标签:GeckoLib, JS文件枚举, Minecraft, NeoForge, 事件处理, 冷却时间, 动物mob, 动画库, 域名枚举, 战斗系统, 掉落物, 模组开发, 沙盒游戏, 注册机制, 游戏开发, 游戏模组, 烹饪指南, 烹饪系统, 物品系统, 生存游戏, 生成机制, 生物AI, 移动能力, 粒子效果, 网络同步, 能力系统, 自定义生物, 虚拟世界, 螃蟹