{  
  "anvil_cost": 2,
  "description": {
    "translate": "enchantment.minecraft.bane_of_arthropods"
  },
  "exclusive_set": "#minecraft:exclusive_set/damage",
  "supported_items": "#minecraft:enchantable/weapon",
  "primary_items": "#minecraft:enchantable/sword",
  "weight": 5,
  "max_level": 5,
  "min_cost": {
    "base": 5,
    "per_level_above_first": 8
  },
  "max_cost": {
    "base": 25,
    "per_level_above_first": 8
  },
  "slots": [
    "mainhand"
  ],
  "effects": {
    "minecraft:damage": [
      {
        "effect": {
          "type": "minecraft:add",
          "value": {
            "type": "minecraft:linear",
            "base": 2.5,
            "per_level_above_first": 2.5
          }
        },
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "effects": {
              "minecraft:infested": {}
            }
          }
        }
      },
      {
        "effect": {
          "type": "minecraft:add",
          "value": {
            "type": "minecraft:linear",
            "base": 2.5,
            "per_level_above_first": 2.5
          }
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "type": "#minecraft:sensitive_to_bane_of_arthropods"
              }
            }
          ]
        }
      }
    ],
    "minecraft:post_attack": [
      {
        "enchanted": "attacker",
        "affected": "victim",
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:slowness",
          "min_duration": 1.5,
          "max_duration": {
            "type": "minecraft:linear",
            "base": 1.5,
            "per_level_above_first": 0.5
          },
          "min_amplifier": 3,
          "max_amplifier": 3
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "type": "#minecraft:sensitive_to_bane_of_arthropods"
              }
            },
            {
              "condition": "minecraft:damage_source_properties",
              "predicate": {
                "is_direct": true
              }
            }
          ]
        }
      },
      {
        "enchanted": "attacker",
        "affected": "victim",
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:slowness",
          "min_duration": 1.5,
          "max_duration": {
            "type": "minecraft:linear",
            "base": 1.5,
            "per_level_above_first": 0.5
          },
          "min_amplifier": 1,
          "max_amplifier": 1
        },
        "requirements": {
          "condition": "minecraft:all_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:infested": {}
                }
              }
            },
            {
              "condition": "minecraft:damage_source_properties",
              "predicate": {
                "is_direct": true
              }
            }
          ]
        }
      }
    ]
  }
}