{
  "exclusive_set": ["minecraft:power"],
  "anvil_cost": 1,
  "description": "Hexed",
  "max_cost": {
    "base": 50,
    "per_level_above_first": 10
  },
  "max_level": 3,
  "min_cost": {
    "base": 20,
    "per_level_above_first": 10
  },
  "slots": ["mainhand"],
  "supported_items": "#minecraft:enchantable/bow",
  "weight": 10,
  "effects": {
    "minecraft:post_attack": [
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "attacker",
          "predicate": {
            "equipment": {
              "mainhand": {
                "predicates": {
                  "minecraft:enchantments": [
                    {
                      "enchantments": "kiwi:hexed",
                      "levels": 1
                    }
                  ]
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:run_function",
          "function": "kiwi:enchantment_function/tier_2/hexed_1"
        },
        "enchanted": "attacker",
        "affected": "victim"
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "attacker",
          "predicate": {
            "equipment": {
              "mainhand": {
                "predicates": {
                  "minecraft:enchantments": [
                    {
                      "enchantments": "kiwi:hexed",
                      "levels": 2
                    }
                  ]
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:run_function",
          "function": "kiwi:enchantment_function/tier_2/hexed_2"
        },
        "enchanted": "attacker",
        "affected": "victim"
      },
      {
        "requirements": {
          "condition": "minecraft:entity_properties",
          "entity": "attacker",
          "predicate": {
            "equipment": {
              "mainhand": {
                "predicates": {
                  "minecraft:enchantments": [
                    {
                      "enchantments": "kiwi:hexed",
                      "levels": 3
                    }
                  ]
                }
              }
            }
          }
        },
        "effect": {
          "type": "minecraft:run_function",
          "function": "kiwi:enchantment_function/tier_2/hexed_3"
        },
        "enchanted": "attacker",
        "affected": "victim"
      }
    ]
  }
}