{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:effects_changed",
      "conditions": {
        "player": {
          "equipment": {
            "chest": {
              "predicates": {
                "minecraft:custom_data": "{armor:\"swamp_chestplate\"}"
              }
            }
          }
        }
      }
    }
  },
  "rewards": {
    "function": "mt:items/armor/swamp/clear"
  }
}