Tetra Material Overhaul

Allows you to use the contexts field in data packs to control the scope of attribute effects

Added contexts in tetra's module, material, and improvement.
The usage of module and improvement is the same.
Below are examples in material and module.

material:

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

module:

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

The Tetra Material Overhaul Team

profile avatar
  • 14
    Followers
  • 35
    Projects
  • 5.2M
    Downloads

More from yiran1457View all

  • RS Tetra project image

    RS Tetra

    • 14
    • Mods

    An addon mod bridging RS and Tetra, adding modular storage disk with customizable components.

    • 14
    • June 4, 2026
    • Mods
  • TetraModify Core project image

    TetraModify Core

    • 1.0K
    • Mods

    A lib to modify Tetra.

    • 1.0K
    • June 3, 2026
    • Mods
  • TetraOverHoning project image

    TetraOverHoning

    • 123.7K
    • Mods

    Allows you to continue accumulating honing progress after completing honing.

    • 123.7K
    • June 3, 2026
    • Mods
  • GeoTetraArmor project image

    GeoTetraArmor

    • 291.0K
    • Mods

    Add Tetra modular armor using GeckoLib models.

    • 291.0K
    • June 3, 2026
    • Mods
  • RS Tetra project image

    RS Tetra

    • 14
    • Mods

    An addon mod bridging RS and Tetra, adding modular storage disk with customizable components.

    • 14
    • June 4, 2026
    • Mods
  • TetraModify Core project image

    TetraModify Core

    • 1.0K
    • Mods

    A lib to modify Tetra.

    • 1.0K
    • June 3, 2026
    • Mods
  • TetraOverHoning project image

    TetraOverHoning

    • 123.7K
    • Mods

    Allows you to continue accumulating honing progress after completing honing.

    • 123.7K
    • June 3, 2026
    • Mods
  • GeoTetraArmor project image

    GeoTetraArmor

    • 291.0K
    • Mods

    Add Tetra modular armor using GeckoLib models.

    • 291.0K
    • June 3, 2026
    • Mods