跳到正文

Tetra Material Overhaul

作者:yiran1457

允许你在数据包中使用 contexts 字段控制属性效果的作用范围

收藏

介绍

介绍由机器翻译自 CurseForge 原页面,仅供参考。

在 tetra 的模块、材料和改良项中添加了 contexts。
模块和改良项的用法相同。
下面是材料和模块中的示例。

材料:

{
  "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]
      }
    }
  }
}

模块:

{
    "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 支持哪些 Minecraft 版本?

Tetra Material Overhaul 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Tetra Material Overhaul 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

yiran1457 的其他作品

查看全部 →