Restrict Armor

Power Type

Restricts the entity that has the power from equipping items as armor (via right-click, dispensing or by dragging and dropping the item in the equipment slot(s)) in the specified equipment slot(s).

Type ID: origins:restrict_armor

Note

This power type does not support a condition. If the condition field is present, it will be ignored. If you wish to check for an entity condition before applying the restriction, you can use the Conditioned Restrict Armor power type instead.

Fields

Field Type Default Description
head Item Condition Type optional If specified, items which fulfills this condition cannot be equipped in the head equipment slot.
chest Item Condition Type optional If specified, items which fulfills this condition cannot be equipped in the chest equipment slot.
legs Item Condition Type optional If specified, items which fulfills this condition cannot be equipped in the legs equipment slot.
feet Item Condition Type optional If specified, items which fulfills this condition cannot be equipped in the feet equipment slot.

Examples

{
    "type": "origins:restrict_armor",
    "head": {
        "type": "origins:armor_value",
        "comparison": ">",
        "compare_to": 2
    },
    "chest": {
        "type": "origins:armor_value",
        "comparison": ">",
        "compare_to": 5
    },
    "legs": {
        "type": "origins:armor_value",
        "comparison": ">",
        "compare_to": 4
    },
    "feet": {
        "type": "origins:armor_value",
        "comparison": ">",
        "compare_to": 1
    }
}

This example will prevent the entity from equipping any armor which has more defense than chainmail.

{
    "type": "origins:restrict_armor",
    "head": {
        "type": "origins:ingredient",
        "ingredient": {
            "item": "minecraft:turtle_helmet"
        }
    },
    "chest": {
        "type": "origins:ingredient",
        "ingredient": {
            "item": "minecraft:elytra"
        }
    }
}

This example will prevent the entity from equipping a Turtle Shell or an Elytra.