{
  "anvil_cost": 8,
  "description": "Spore Defense",
  "effects": {
    "minecraft:post_attack": [
      {
        "affected": "attacker",
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:run_function",
              "function": "kiwi:enchantment_function/tier_3/flower_hat/flower_hat_fx"
            }
          ]
        },
        "enchanted": "victim",
        "requirements": {
          "chance": {
            "type": "minecraft:enchantment_level",
            "amount": {
              "type": "minecraft:linear",
              "base": 0.15,
              "per_level_above_first": 0.15
            }
          },
          "condition": "minecraft:random_chance"
        }
      }
    ]
  },
  "max_cost": {
    "base": 60,
    "per_level_above_first": 20
  },
  "max_level": 3,
  "min_cost": {
    "base": 10,
    "per_level_above_first": 20
  },
  "slots": [
    "any"
  ],
  "supported_items": "#minecraft:enchantable/head_armor",
  "weight": 1
}