🌐 您正在以中文阅读本文。想切换吗?
📖 阅读英文原文
或选择您喜欢的语言:

Tetra Material Overhaul Mod 通过为自定义物品和装备部件添加上下文(context)字段扩展了 Tetra。它允许您通过数据包为材质奖励、模块升级和改进设置特定条件。您可以针对精确的武器槽位和部件,使自定义属性仅在您需要的地方生效。这使得构建自定义物品集变得更加整洁,并让整合包作者能够直接控制装备平衡。

Tetra Material Overhaul Mod

特性:

  • 为 Tetra 材质、模块和改进添加了 contexts 字段。
  • 让您能够控制属性加成和效果倍率在何处生效。
  • 将模块部件直接链接到数据包中匹配的材质上下文键。
  • 将自定义攻击伤害、攻击速度和工具统计数据应用于选定的武器变体。
  • 支持使用标准数据包 JSON 文件来调整武器和工具的制作平衡。

配置:

以下是在自定义材质 JSON 文件中添加上下文区块的示例:

{
  "key": "test",
  "category": "bone",
  "primary": 5,
  "secondary": 1.9,
  "tertiary": 4.5,
  "durability": 120,
  "integrityCost": 1,
  "integrityGain": 5,
  "magicCapacity": 108,
  "toolLevel": "minecraft:stone",
  "toolEfficiency": 4.5,
  "tints": {
    "glyph": "bone_glyph",
    "texture": "bone"
  },
  "textures": [
    "bone",
    "crude"
  ],
  "material": {
    "items": [
      "minecraft:heart_of_the_sea"
    ]
  },
  "requiredTools": {
    "hammer_dig": "minecraft:wood"
  },
  "contexts": {
    "test": {
      "attributes": {
        "generic.attack_speed": 114514
      },
      "effects": {
        "test": [10, 5]
      }
    }
  }
}

以下是在模块 JSON 文件中匹配该上下文的方法:

{
  "replace": true,
  "slots": [ "sword/blade" ],
  "type": "tetra:basic_major_module",
  "improvements": [
    "tetra:sword/basic_blade/",
    "tetra:sword/shared_blade/",
    "tetra:sword/shared/",
    "tetra:shared/"
  ],
  "variants": [
    {
      "materials": [ "tetra:wood/", "tetra:stone/", "tetra:metal/", "tetra:gem/", "tetra:bone/" ],
      "key": "basic_blade/",
      "attributes": {
        "generic.attack_speed": -1.9
      },
      "effects": {
        "sweeping": 1
      },
      "tools": {
        "cut": [ 1, 2 ]
      },
      "aspects": {
        "edged_weapon": 2,
        "breakable": 2
      },
      "durability": -20,
      "tags": [ "forge:swords" ],
      "contexts": ["test"],
      "extract": {
        "primaryAttributes": {
          "generic.attack_damage": 1
        },
        "durability": 0.9,
        "integrity": -1,
        "magicCapacity": 1,
        "glyph": {
          "textureX": 0
        },
        "availableTextures": [ "metal", "shiny", "grainy", "crude" ],
        "models": [ { "location": "tetra:item/module/sword/blade/basic/" } ]
      }
    }
  ]
}

前置需求:

Tetra Material Overhaul Mod 下载链接

适用于 Minecraft 1.20.1, 1.20, Client

Forge 13 KB Aug 31, 2026
点击为这篇文章评分!
[Total: 0 Average: 0]