Skip to content

[Version 4.0] TConstruct

Insane96 edited this page Jan 24, 2023 · 2 revisions

Mobs equipment can get Tinkers' Construct Modifiers and have different materials.

Materials

  • materials: A string list where each entry is a Tinkers' Construct material.
    The materials are applied in the same order as they can be seen in-game by pressing CTRL on a TiCon tool
    Either this or random must exist.
  • random: An object that will make the tool have a random materials. Either this or materials must exist.
    • max_tier: A number representing the max material tier that the item can have

Examples

This makes zombies wield a Tinkers' Construct Pickaxe with the head made of flint, the binding out of slimewood and the handle out of wood

{
    "mob_id": "minecraft:zombie",
    "equipment": {
        "main_hand": {
            "items": [
                {
                    "id": "tconstruct:pickaxe",
                    "weight": 1,
                    "tcon_materials": {
                        "materials": [
                            "tconstruct:flint",
                            "tconstruct:wood",
                            "tconstruct:slimewood"
                        ]
                    }
                }
            ]
        }
    }
}

This makes zombies wield a Tinkers' Construct Axe with random materials up to tier 3

{
    "mob_id": "minecraft:zombie",
    "equipment": {
        "main_hand": {
            "items": [
                {
                    "id": "tconstruct:pickaxe",
                    "weight": 1,
                    "tcon_materials": {
                        "random": {
                            "max_tier": 3
                        }
                    }
                }
            ]
        }
    }
}

Modifiers

  • id: A string representing the modifier id. Mandatory
  • level: A Range Object representing the level of the modifier. If omitted will default to 1
  • chance: A Modifiable Value Object representing the percentage chance (between 0 and 1) to add the modifier to the tool. If omitted will default to 100%

Examples

This makes zombies wield a Tinkers' Construct Pickaxe with Luck I to III

{
    "mob_id": "minecraft:zombie",
    "equipment": {
        "main_hand": {
            "items": [
                {
                    "id": "tconstruct:pickaxe",
                    "weight": 1,
                    "tcon_modifiers": [
                        {
                            "id": "tconstruct:luck",
                            "level": {
                                "min": 1,
                                "max": 3
                            }
                        }
                    ],
                    "tcon_materials": {
                        "materials": [
                            "tconstruct:iron",
                            "tconstruct:wood",
                            "tconstruct:slimewood"
                        ]
                    }
                }
            ]
        }
    }
}
Clone this wiki locally