Minecraft Unify 模组
“Unify” Minecraft 模组旨在通过减少物品重复来简化游戏玩法。以下是其工作原理及配置选项的详细说明:
工作原理
-
物品统一:该模组使用正则表达式搜索路径匹配特定模式的物品。如果物品具有相同的路径或属于同一组路径,它们将被统一。如果发现重复项,它会选择一个作为统一版本,并从各种游戏元素(如战利品表、标签、配方、创造模式标签页、进度和配方查看器 REI、JEI 等)中移除其他重复项。
-
继承:统一版本会从其重复版本继承标签、配方等功能,以确保功能得以保留。
-
创造模式标签页:你可以在 Unify 创造模式标签页中找到重复物品,其提示框会显示统一版本的信息。
-
右键替换:可以通过右键点击将重复物品替换为其统一版本。
-
统一配方:会添加合成配方,用于将重复物品替换为统一版本。
配置
该模组高度可配置,允许你自定义哪些物品需要统一以及如何识别重复项。以下是配置选项的详细介绍:
-
globalSearch:此部分允许你设置用于识别重复物品的全局规则。
-
itemsToIgnore:模组将忽略的物品列表。这些物品不会被统一,也不会被视为重复项。
"itemsToIgnore": [ "examplemod:lead_block" ] -
namespacePriorities:命名空间的优先级列表。模组将按照列表中出现的顺序,优先选择来自这些命名空间的物品作为统一版本。
"namespacePriorities": [ "techreborn", "modern_industrialization" ] -
pathStartsWith:指定物品标识符路径开头必须匹配的模式。可以是字符串或字符串列表。当提供列表时,匹配列表中任意模式的物品将被归为一组。
"pathStartsWith": [ "raw_" ] -
pathEndsWith:指定物品标识符路径结尾必须匹配的模式。可以是字符串或字符串列表。当提供列表时,匹配列表中任意模式的物品将被归为一组。
"pathEndsWith": [ "_ore", [ "_block", "_storage_block" ], "_ingot", "_nugget", "_dust", "_plate", "_rod", "_gear" ]
-
-
itemsToUnify:此部分允许你手动指定哪些物品应该被统一。键是统一后的物品,值是一个包含重复物品的数组。
"itemsToUnify": { "modern_industrialization:lead_block": [ "techreborn:lead_storage_block" ] } -
replaceOnUse:允许通过右键点击将重复物品替换为其统一版本。
"replaceOnUse": true -
generateUnificationRecipes:添加合成配方,用于将重复物品替换为统一版本。
"generateUnificationRecipes": true -
hideDuplicatesInItemGroups:在创造模式物品组中隐藏重复物品。
"hideDuplicatesInItemGroups": true -
hideDuplicatesInRecipeViewers:在配方查看器(REI、JEI 等)中隐藏重复物品。
"hideDuplicatesInRecipeViewers": true
示例配置
以下是一个示例配置,展示了如何设置该模组:
{
"globalSearch": {
"itemsToIgnore": [
"examplemod:lead_block"
],
"namespacePriorities": [
"techreborn",
"modern_industrialization"
],
"pathStartsWith": [
"raw_"
],
"pathEndsWith": [
"_ore",
[
"_block",
"_storage_block"
],
"_ingot",
"_nugget",
"_dust",
"_plate",
"_rod",
"_gear"
]
},
"itemsToUnify": {
"modern_industrialization:lead_block": [
"techreborn:lead_storage_block"
]
},
"replaceOnUse": true,
"generateUnificationRecipes": true,
"hideDuplicatesInItemGroups": true,
"hideDuplicatesInRecipeViewers": true
}
此配置确保不同模组的 raw_lead 等物品根据指定的模式和优先级进行统一,而 examplemod:lead_block 则被忽略。lead_block 和 lead_storage_block 等物品将被归为一组,其中一个作为统一版本,另一个作为重复项。
通过自定义这些设置,你可以使模组符合你的具体需求和偏好,从而优化你的 Minecraft 游戏体验。
Unify Mod for Minecraft
The "Unify" Minecraft mod is designed to simplify gameplay by reducing item duplication. Here's a breakdown of how it works and its configuration options:
How It Works
-
Item Unification: The mod uses regex to search for items whose paths match specific patterns. Items are unified if they have the same path or belong to the same group of paths. If it finds duplicates, it selects one as the unified version and removes the others from various game elements like loot tables, tags, recipes, creative tabs, advancements and recipe viewers (REI, JEI, ...).
-
Inheritance: The unified version inherits tags, recipes, etc., from its duplicate versions, ensuring that functionality is preserved.
-
Creative Tab: You can find duplicate items in the Unify creative tab, with a tooltip indicating the unified version.
-
Replace on Right-Click: Duplicate items can be replaced with their unified version by right-clicking them.
-
Unification Recipes: Crafting recipes are added to replace duplicates with their unified version.
Configuration
The mod is highly configurable, allowing you to customize which items are unified and how duplicates are identified. Here's a detailed look at the configuration options:
-
globalSearch: This section allows you to set global rules for identifying duplicate items.
-
itemsToIgnore: List of items that the mod will ignore. These items won't be unified or considered duplicates.
"itemsToIgnore": [ "examplemod:lead_block" ] -
namespacePriorities: A prioritization list of namespaces. The mod will favor items from these namespaces in the order they appear to be the unified version.
"namespacePriorities": [ "techreborn", "modern_industrialization" ] -
pathStartsWith: Specifies patterns that the start of the item identifier path must match. This can be a string or a list of strings. When a list is provided, items matching any of the patterns in the list will be grouped together.
"pathStartsWith": [ "raw_" ] -
pathEndsWith: Specifies patterns that the end of the item identifier path must match. This can be a string or a list of strings. When a list is provided, items matching any of the patterns in the list will be grouped together.
"pathEndsWith": [ "_ore", [ "_block", "_storage_block" ], "_ingot", "_nugget", "_dust", "_plate", "_rod", "_gear" ]
-
-
itemsToUnify: This section allows you to manually specify which items should be unified. The key is the unified item, and the value is an array of duplicate items.
"itemsToUnify": { "modern_industrialization:lead_block": [ "techreborn:lead_storage_block" ] } -
replaceOnUse: Allows replacing duplicate items with their unified version by right-clicking.
"replaceOnUse": true -
generateUnificationRecipes: Adds crafting recipes to replace duplicates with their unified version.
"generateUnificationRecipes": true -
hideDuplicatesInItemGroups: Hide duplicates in Creative Item Groups.
"hideDuplicatesInItemGroups": true -
hideDuplicatesInRecipeViewers: Hide duplicates in recipes viewers (REI, JEI, ...).
"hideDuplicatesInRecipeViewers": true
Example Configuration
Here's an example configuration that demonstrates how you might set up the mod:
{
"globalSearch": {
"itemsToIgnore": [
"examplemod:lead_block"
],
"namespacePriorities": [
"techreborn",
"modern_industrialization"
],
"pathStartsWith": [
"raw_"
],
"pathEndsWith": [
"_ore",
[
"_block",
"_storage_block"
],
"_ingot",
"_nugget",
"_dust",
"_plate",
"_rod",
"_gear"
]
},
"itemsToUnify": {
"modern_industrialization:lead_block": [
"techreborn:lead_storage_block"
]
},
"replaceOnUse": true,
"generateUnificationRecipes": true,
"hideDuplicatesInItemGroups": true,
"hideDuplicatesInRecipeViewers": true
}
This configuration ensures that items like raw_lead from different mods are unified according to the specified patterns and priorities, while examplemod:lead_block is ignored. Items like lead_block and lead_storage_block will be grouped together, with one being the unified version and the other a duplicate.
By customizing these settings, you can tailor the mod to fit your specific needs and preferences, streamlining your Minecraft gameplay experience.
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
下载 Unify
修复了一些小问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧