{
  "description": {
    "translate": "",
    "fallback": "Deadly Thorns"
  },
  "supported_items": "#minecraft:leg_armor",
    "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": [
    "legs"
  ],
  "effects": {
    "minecraft:post_attack": [
      {
        "requirements": {
          "condition": "minecraft:random_chance",
          "chance": 0.33
        },
        "effect": {
          "type": "minecraft:all_of",
          "effects": [
            {
              "type": "minecraft:spawn_particles",
              "particle": {
                "type": "minecraft:happy_villager"
              },
              "horizontal_position": {
                "type": "in_bounding_box",
                "offset": 1,
                "scale": 1
              },
              "vertical_position": {
                "type": "in_bounding_box",
                "offset": 0,
                "scale": 0.001
              },
              "horizontal_velocity": {
                "base": 1,
                "movement_scale": 1
              },
              "vertical_velocity": {
                "base": 0,
                "movement_scale": 0.001
              },
              "speed": 0.1
            },
            {
              "type": "minecraft:damage_entity",
              "damage_type": "mt:custom",
              "min_damage": 12,
              "max_damage": 18
            },
            {
              "type": "minecraft:play_sound",
              "sound": "minecraft:enchant.thorns.hit",
              "volume": 1,
              "pitch": 2
            }
          ]
        },
        "enchanted": "victim",
        "affected": "attacker"
      }
    ]
  }
}