{
    "anvil_cost": 2,
    "description": "Deflection",
    "effects": {
      "minecraft:damage_immunity": [
        {
          "requirements": [
            {
              "condition": "minecraft:all_of",
              "terms": [
                {
                  "condition": "minecraft:damage_source_properties",
                  "predicate": {
                    "tags": [
                      {
                        "id": "minecraft:is_projectile",
                        "expected": true
                      }
                    ]
                  }
                },
                {
                  "condition": "minecraft:random_chance",
                  "chance": {
                    "type": "minecraft:enchantment_level",
                    "amount": {
                      "type": "minecraft:linear",
                      "base": 0.05,
                      "per_level_above_first": 0.05
                    }
                  }
                }
              ]
            }
          ],
          "effect": {}
        }
      ]
    },
    "max_cost": {
      "base": 90,
      "per_level_above_first": 30
    },
    "max_level": 5,
    "min_cost": {
      "base": 30,
      "per_level_above_first": 30
    },
    "slots": [
      "chest"
    ],
    "supported_items": "#minecraft:enchantable/chest_armor",
    "weight": 2
  }