{
    "description": "Wither",
    "supported_items": "minecraft:stone_sword",
    "weight": 1,
    "max_level": 1,
    "min_cost": {
      "base": 999999,
      "per_level_above_first": 999
    },
    "max_cost": {
      "base": 999999,
      "per_level_above_first": 9999
    },
    "anvil_cost": 9999,
    "slots": [
      "mainhand"
    ],
    "effects": {
      "minecraft:post_attack": [
        {
          "requirements": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.25
            },
            {
              "condition": "minecraft:damage_source_properties",
              "predicate": {
                "tags": [
                  {
                    "id": "minecraft:is_player_attack",
                    "expected": true
                  }
                ]
              }
            }
          ],
          "effect": {
            "type": "minecraft:all_of",
            "effects": [
              {
                "type": "minecraft:apply_mob_effect",
                "to_apply": "minecraft:wither",
                "min_duration": 7,
                "max_duration": 7,
                "min_amplifier": 1,
                "max_amplifier": 1
              }
            ]
          },
          "enchanted": "attacker",
          "affected": "victim"
        }
      ]
    }
  }