{
  "anvil_cost": 8,
  "description": {
    "translate": "enchantment.dnt.antidote",
    "fallback": "Antidote"
  },
  "effects": {
    "minecraft:damage_immunity": [
      {
        "effect": {},
        "requirements": {
          "condition": "minecraft:damage_source_properties",
          "predicate": {
            "tags": [
              {
                "expected": true,
                "id": "nova_structures:magic"
              },
              {
                "expected": false,
                "id": "minecraft:bypasses_invulnerability"
              }
            ]
          }
        }
      }
    ],
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:change_item_damage",
          "amount": 1
        },
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:poison": {
                    "amplifier": 0
                  }
                },
                "periodic_tick": 25
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:poison": {
                    "amplifier": {
                      "min": 1,
                      "max": 3
                    }
                  }
                },
                "periodic_tick": 12
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:poison": {
                    "amplifier": {
                      "min": 4
                    }
                  }
                },
                "periodic_tick": 10
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:wither": {
                    "amplifier": 0
                  }
                },
                "periodic_tick": 40
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:wither": {
                    "amplifier": 1
                  }
                },
                "periodic_tick": 20
              }
            },
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:wither": {
                    "amplifier": {
                      "min": 2
                    }
                  }
                },
                "periodic_tick": 10
              }
            }
          ]
        }
      }
    ]
  },
  "exclusive_set": "#minecraft:exclusive_set/armor",
  "max_cost": {
    "base": 30,
    "per_level_above_first": 0
  },
  "max_level": 1,
  "min_cost": {
    "base": 1,
    "per_level_above_first": 0
  },
  "slots": [
    "armor"
  ],
  "supported_items": "#minecraft:enchantable/chest_armor",
  "weight": 30
}