简介
一款功能强大的 Minecraft MITE 一体化库与实用模组,为模组开发者提供庞大的 API、事件钩子、世界生成、实体、配方、网络以及多项生活质量(QoL)修复。
概述
RustedIron Core (RIC) 是一款专为 MITE Minecraft 模组开发环境构建的核心库模组。它集成了全面的事件系统、注册接口、世界生成工具、网络实用程序、实体逻辑钩子以及各种兼容性补丁。该模组大幅降低了其他模组的二次开发难度,避免了重复编写 Mixin,修复了许多原版和 MITE 原生 Bug,并确保在多模组环境中的稳定运行。它是大量 MITE 生态模组所必需的依赖项。
核心特性
1. 丰富的事件与处理器系统
完整的事件总线及专用处理器覆盖了几乎所有游戏逻辑环节,支持通过预注册/后注册来控制执行优先级:
玩家相关:玩家生成、维度切换、死亡、属性修改(生命值、饥饿值、饱和度、等级上限、胰岛素抗性)、营养值同步、客户端连接及按键绑定注册。
战斗系统:修改受到的伤害、护甲保护、近战伤害、方块/实体交互范围、挖掘速度、击退及坠落伤害。
实体与生成:实体事件监听、ServerPlayer 死亡事件、特定生物群系的自定义生物生成规则、实体追踪器及网络同步配置。
村民与交易:完整的村民职业与交易系统,添加/删除/编辑交易条目,禁用特定职业,实时自动同步交易 UI。
合成与熔炼:高级配方注册、自定义物品消耗规则、合成物品的品质保留、特殊熔炉配方、熔炼配方的热量值要求配置。
提示框与显示:在多个位置向物品提示框注入自定义内容,支持完整的物品堆栈信息。
Tick 与渲染:分离的客户端/服务器 Tick 监听器,用于逐帧逻辑的渲染 Tick 钩子。
2. 世界与生物群系生成
强大的世界生成 API,无需复杂的 Mixin 即可自定义地形、矿石、结构和生物群系:
矿石生成:专用的矿石注册处理器,下界矿石的专用高度规则,支持注销现有矿石条目,修复了下界的崩溃及无效生成问题。
生物群系系统:修改可生成的生物群系,向指定生物群系添加生物生成,控制要塞生成,支持下界生物群系的注册与装饰,移除下界中无效的平原。
结构与地图生成:新的 MapGenHandler 用于结构和地图生成元素的注册,重构了结构注册逻辑。
区块与世界信息:从 level.dat 读写数据,区块加载/卸载监听器,下界生成代理(默认启用)。
3. 物品、方块与模型支持
简化了各类物品、方块和模型的注册与渲染解决方案:
统一物品接口:一站式配置燃料、可燃物品、宝石物品、桶材料、弓/箭材料、护甲材料及可保留的合成物品。自动适配木碗和牛奶桶以修复 getPeer 崩溃。
JSON 模型加载器:原生支持 JSON 方块/物品模型,自动从 blockstates 和 models 文件夹加载资源,兼容库存、掉落物品及手持渲染。
战利品表:扩展沙漠神殿、丛林神殿、下界堡垒、矿洞和要塞的原版战利品表;自定义砂砾掉落规则,提供添加/移除战利品条目的功能。
特殊物品逻辑:特定物品的烧烤式直接熔炼,快速注册箭、门、钓鱼竿和工作台(无需额外的 Mixin)。
4. 网络与数据包优化
稳定且扩展的网络系统,修复原版同步问题:
扩展的 PacketByteBuf 支持读取/写入 short、long、double 等数据类型;暴露内部 IO 流。
全局广播数据包方法,可向所有在线玩家发送消息。
修复空数据包读取错误及导致玩家被踢出的字符串长度问题。
优化营养值与属性同步数据包(不再每 Tick 发送,仅在指定时刻同步以减少网络负载)。
修复玩家重生或维度传输后营养值的客户端-服务器不同步问题。
5. 兼容性、Bug 修复与 QoL
跨版本与模组兼容性:完全兼容常规 MITE 和实验性 MITE 版本;优化 Gradle 构建脚本以利于团队协作;标准化包名以避免 Mixin 冲突;修复由中文键引起的配置解析错误。
主要 Bug 修复:解决了未注册的牛奶桶导致的崩溃、重复的村民交易配方、缺失的生物纹理、砂砾战利品错误、熔炉配方忽略热量值等问题。
可配置的调整:可切换核心模组启动公告(持续时间缩短至 30 秒,可完全禁用);针对服务器在线模式有专用设置,可自动隐藏公告。
开发实用工具:平台信息查询工具、本地化枚举、独立日志文件的日志工具、Fabric 兼容性工具及面向开发者的 Javadoc 注释。
Introduction
A powerful all-in-one library & utility mod for Minecraft MITE, providing massive APIs, event hooks, world generation, entity, recipe, network and quality-of-life fixes for mod developers.
Overview
RustedIron Core (RIC) is a core library mod specially built for MITE Minecraft modding environments. It integrates a comprehensive set of event systems, registration interfaces, world generation tools, network utilities, entity logic hooks and various compatibility patches. This mod greatly reduces the difficulty of secondary development for other mods, avoids repeated Mixin writing, fixes many vanilla and MITE native bugs, and ensures stable operation in multi-mod environments. It is a mandatory dependency for a large number of MITE ecosystem mods.
Core Features
1. Rich Event & Handler System
A complete event bus and dedicated handlers cover almost all game logic links, supporting pre/post registration to control execution priority:
Player Related: Player spawn, dimension switch, death, attribute modification (health, hunger, saturation, level cap, insulin resistance), nutrition value synchronization, client connection & key binding registration.
Combat System: Modify incoming damage, armor protection, melee damage, block/entity interaction range, mining speed, knockback and fall damage.
Entity & Spawn: Entity event listening, ServerPlayer death event, custom mob spawn rules for specific biomes, entity tracker & network sync configuration.
Villager & Trade: Full villager profession & trading system, add/delete/edit trade entries, disable specific professions, auto-sync trade UI in real time.
Crafting & Smelting: Advanced recipe registration, custom item consumption rules, quality retention for crafted items, special furnace recipes, heat value requirement configuration for smelting recipes.
Tooltip & Display: Inject custom content into item tooltips at multiple positions, complete item stack information support.
Tick & Render: Separate client/server tick listeners, render tick hook for per-frame logic.
2. World & Biome Generation
Powerful world generation APIs to customize terrain, ores, structures and biomes without complex Mixin:
Ore Generation: Dedicated ore registration handler, dedicated height rules for Nether ores, support unregister existing ore entries, fixed crashes & invalid generation in Nether.
Biome System: Modify spawnable biomes, add mob spawns to appointed biomes, control stronghold generation, support Underworld biome registration & decoration, remove invalid plains in Underworld.
Structure & Map Gen: New MapGenHandler for structure & map generation element registration, refactored structure registration logic.
Chunk & World Info: Read/write data from level.dat, chunk load/unload listeners, underworld generation proxy (enabled by default).
3. Item, Block & Model Support
Simplified registration and rendering solutions for various items, blocks and models:
Unified Item Interfaces: One-stop configuration for fuel, burnable items, gem items, bucket materials, bow/arrow materials, armor materials and retainable crafting items. Auto-adapt wooden bowls and milk buckets to fix getPeer crashes.
JSON Model Loader: Native support for JSON block/item models, auto-load resources from blockstates & models folders, compatible with inventory, dropped items and in-hand rendering.
Loot Table: Expand vanilla loot tables for desert temples, jungle temples, nether fortresses, mineshafts and strongholds; custom gravel drop rules with add/remove loot entry functions.
Special Item Logic: Barbecue-style direct smelting for specific items, arrow, door, fishing rod and workbench quick registration (no extra Mixin required).
4. Network & Packet Optimization
Stable and expanded network system to fix vanilla sync issues:
Extended PacketByteBuf supports reading/writing short, long, double and other data types; exposed internal IO stream.
Global broadcast packet method to send messages to all online players.
Fixed empty packet reading errors and string length issues causing player kicks.
Optimized nutrition value & attribute sync packets (no per-tick sending, sync only at specified moments to reduce network load).
Fixed client-server desync of nutrition value after player respawn or dimension transfer.
5. Compatibility, Bug Fixes & QoL
Cross-version & Mod Compatibility: Fully compatible with regular MITE and experimental MITE versions; optimized Gradle build scripts for team collaboration; standardized package names to avoid Mixin conflicts; fixed config parsing errors caused by Chinese keys.
Major Bug Fixes: Resolved crashes from unregistered milk buckets, duplicate villager trade recipes, missing mob textures, gravel loot errors, furnace recipes ignoring heat values and more.
Configurable Tweaks: Toggle core mod startup announcements (duration shortened to 30s, can be fully disabled); dedicated settings for server online-mode to auto-hide announcements.
Development Utilities: Platform information query tool, localization enum, log tool for independent log files, Fabric compatibility tools and developer-friendly Javadoc comments.
评论 0
登录后参与评分
还没有评论,来抢沙发吧