Tetra Material Overhaul

模组

· 作者 yiran1457

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

0 本站下载 0 关注 更新于 6 个月前

最新 Tetra Material Overhaul-6.9.0-1.0.1.jar · 1.20.1 · Forge

一键开服(送7天)

在 tetra 的模组、材质和改进中添加了上下文。
模组和改进的使用方式相同。
以下是材质和模组的示例。

材质:

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

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源