RemapIDs
将任何物品、方块、流体或实体的 ID 重映射到另一个:数据驱动,零配置代码。
RemapIDs 是一款专为 整合包开发者 设计的实用模组,允许你通过简单的 JSON 文件在整个游戏中重定向注册表 ID。统一不同模组间的重复矿石、替换已弃用的物品,或在模组版本间迁移世界……无需编写一行代码。
Wiki:
功能特性
注册表重映射 支持跨 7 种注册表类型进行重映射:
重映射应用得非常彻底:配方、战利品表、标签、背包和容器中的 NBT 数据都会自动重写。
数据驱动配置 只需将 JSON 文件放入 config/remapids/remaps/ 目录即可:
{
"remaps": [
{
"source": "iceandfire:silver_ingot",
"target": "othermod:silver_ingot",
"types": ["item", "recipe", "loot_table"]
}
]
}
通配符模式 使用单条规则批量重映射整组物品:
{
"source": "iceandfire:silver_*",
"target": "othermod:silver_*"
}
标签转物品配方转换 将配方中的标签原料替换为特定物品:
{
"source": "#forge:ingots/silver",
"target": "othermod:silver_ingot",
"types": ["recipe"]
}
智能链式解析 如果 A 重映射到 B,且 B 重映射到 C,模组会自动将其扁平化为 A→C。循环依赖会被检测并拒绝。
实时重载 标签、配方和战利品表的重映射会在执行 /reload 命令时重新应用——无需重启游戏。
零运行时开销 方块、物品、流体和实体的重映射在游戏启动时作为注册表别名应用。此后不会产生任何性能损耗。
支持版本
| Minecraft |
加载器 |
| 1.20.1 |
Forge |
| 1.20.1 |
Fabric |
| 1.21.1 |
NeoForge |
| 1.21.1 |
Fabric |
使用场景
- 矿石统一:将所有来自 5 个不同模组的银锭重定向到一个标准 ID
- 模组迁移:在不破坏现有世界的情况下,用替代品替换被移除模组的物品
- 战利品/配方清理:重写战利品表和配方以使用你想要的物品
- 世界升级:通过加载时的 NBT 数据重映射背包和容器中已有的物品
快速上手
- 为你的加载器安装该模组
- 如果不存在,请创建
config/remapids/remaps/ 目录
- 添加任意数量的
.json 文件以定义你的重映射规则
- 启动游戏,重映射规则将自动生效
RemapIDs
Remap any item, block, fluid, or entity ID to another: data-driven, zero-config code.
RemapIDs is a utility mod for modpack developers that lets you redirect registry IDs throughout the entire game using simple JSON files. Unify duplicate ores across mods, replace deprecated items, or migrate worlds between mod versions… all without writing a single line of code.
Wiki:
Features
Registry Remapping Remap across 7 registry types:
- Blocks, Items, Fluids, Entity Types
- Tags, Recipes, Loot Tables
Remaps are applied deeply: recipes, loot tables, tags, NBT data in inventories and containers are all automatically rewritten.
Data-Driven Configuration Drop JSON files into config/remapids/remaps/ and you're done:
{
"remaps": [
{
"source": "iceandfire:silver_ingot",
"target": "othermod:silver_ingot",
"types": ["item", "recipe", "loot_table"]
}
]
}
Wildcard Patterns Bulk-remap entire families of items with a single rule:
{
"source": "iceandfire:silver_*",
"target": "othermod:silver_*"
}
Tag-to-Item Recipe Conversion Replace tag ingredients in recipes with specific items:
{
"source": "#forge:ingots/silver",
"target": "othermod:silver_ingot",
"types": ["recipe"]
}
Smart Chain Resolution If A remaps to B and B remaps to C, the mod automatically flattens this to A→C. Circular dependencies are detected and rejected.
Live Reloading Tag, recipe, and loot table remaps are reapplied on /reload - no restart needed.
Zero Runtime Overhead Block, item, fluid, and entity remaps are applied as registry aliases at startup. After that, there's no performance cost.
Supported Versions
| Minecraft |
Loader |
| 1.20.1 |
Forge |
| 1.20.1 |
Fabric |
| 1.21.1 |
NeoForge |
| 1.21.1 |
Fabric |
Use Cases
- Ore unification: Redirect all silver ingots from 5 different mods to one canonical ID
- Mod migration: Swap out a removed mod's items for replacements without breaking existing worlds
- Loot/recipe cleanup: Rewrite loot tables and recipes to use the items you want
- World upgrades: Items already in inventories and containers are remapped via NBT on load
Getting Started
- Install the mod for your loader
- Create
config/remapids/remaps/ if it doesn't exist
- Add any number of
.json files with your remap definitions
- Launch the game, remaps are applied automatically
评论 0
登录后参与评分
还没有评论,来抢沙发吧