{
  "description": {
    "translate": "ring.absorption.enchantment"
  },
  "supported_items": "minecraft:ghast_tear",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "anvil_cost": 0,
  "slots": [
    "hand"
  ],
  "effects": {
    "minecraft:post_attack": [
      {
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:poison",
          "min_duration": 1,
          "max_duration": 3,
          "min_amplifier": 0,
          "max_amplifier": 1
        },
        "enchanted": "victim",
        "affected": "attacker"
      },
      {
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:wither",
          "min_duration": 1,
          "max_duration": 3,
          "min_amplifier": 0,
          "max_amplifier": 0
        },
        "enchanted": "victim",
        "affected": "victim"
      },
      {
        "effect": {
          "type": "minecraft:apply_mob_effect",
          "to_apply": "minecraft:regeneration",
          "min_duration": 1,
          "max_duration": 3,
          "min_amplifier": 0,
          "max_amplifier": 3
        },
        "enchanted": "attacker",
        "affected": "attacker"
      }
    ],
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:run_function",
          "function": "ws:item/ring/absorption"
        }
      }
    ]
  }
}