Common Types - MUKSC/TaCZTweaks GitHub Wiki

Value Range

{
    // Exact value
    "min": 3.0,
    "max": 3.0,

    // Closed-ended range
    "min": 0.0,
    "max": 5.0,

    // Open-ended range with no upper bound
    "min": 0.0,

    // Open-ended range with no lower bound
    "max": 5.0
}

Target

{
    // In the "all_of" target type, you specify other target types
    // Matches if all of them are valid
    "type": "all_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "any_of" target type, you specify other target types
    // Matches if any of them is valid
    "type": "any_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "inverted" target type, you specify other target type
    // Matches if it doesn't match (in other words, it inverts the condition)
    "type": "inverted",
    "term":{
        "type": ...
    },

    // In the "gun" target type, you specify gun ids
    "type": "gun",
    "values": [
        "tacz:m320"
    ],

    // In the "ammo" target type, you specify ammo ids
    "type": "ammo",
    "values": [
        "tacz:40mm"
    ],

    // In the "regex" target type, you specify a regex pattern
    // You can specify either "gun" or "ammo" in the "match" field to change the target
    "type": "regex",
    "match": "gun",
    "regex": "tacz:scar_.+",

    // In the "damage" target type, you specify a range of damage (see "Value Range")
    // This always refers to the current damage of the bullet, rather than the damage on the specs
    "type": "damage",
    "values": [
        ...
    ],

    // In the "speed" target type, you specify a range of speed (see "Value Range")
    // This always refers to the current speed of the bullet, rather than the speed on the specs
    // As a reference, Glock has a speed value of 150
    "type": "speed",
    "values": [
        ...
    ]
}

Block Target

{
    // In the "all_of" block target type, you specify other block target types
    // Matches if all of them are valid
    "type": "all_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "any_of" block target type, you specify other block target types
    // Matches if any of them is valid
    "type": "any_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "inverted" block target type, you specify other block target type
    // Matches if it doesn't match (in other words, it inverts the condition)
    "type": "inverted",
    "term":{
        "type": ...
    },

    // In the "block" block target type, you specify block ids
    "type": "block",
    "values": [
        "minecraft:stone"
    ],

    // In the "block_tag" block target type, you specify block tag ids
    "type": "block_tag",
    "values": [
        "#forge:glass"
    ],

    // In the "regex" block target type, you specify a regex pattern
    "type": "regex",
    "regex": "minecraft:(?!blue_).+",

    // In the "tier" block target type, you specify a mining level
    "type": "tier",
    "tier": "minecraft:netherite",

    // In the "hardness" block target type, you specify a range of hardness values (see "Value Range")
    "type": "hardness",
    "range": ...
}

Entity Target

{
    // In the "all_of" entity target type, you specify other entity target types
    // Matches if all of them are valid
    "type": "all_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "any_of" entity target type, you specify other entity target types
    // Matches if any of them is valid
    "type": "any_of",
    "terms": [
        {
            "type": ...
        }
    ],

    // In the "inverted" entity target type, you specify other entity target type
    // Matches if it doesn't match (in other words, it inverts the condition)
    "type": "inverted",
    "term":{
        "type": ...
    },

    // In the "entity" entity target type, you specify entity ids
    "type": "entity",
    "values": [
        "minecraft:creeper"
    ],

    // In the "entity_tag" entity target type, you specify entity tag ids
    "type": "entity_tag",
    "values": [
        "#minecraft:skeletons"
    ],

    // In the "regex" entity target type, you specify a regex pattern
    "type": "regex",
    "regex": ".+zombie.+",

    // In the "health" entity target type, you specify a range of health value (see "Value Range")
    // You can specify either "raw" or "percentage" in the "unit" field to change the unit
    "type": "health",
    "unit": "raw",
    "range": ...,

    // In the "armor" entity target type, you specify a range of armor values (see "Value Range")
    "type": "armor",
    "range": ...,

    // In the "armor_toughness" entity target type, you specify a range of armor toughness values (see "Value Range")
    "type": "armor_toughness",
    "range": ...
}
⚠️ **GitHub.com Fallback** ⚠️