{
  "parent": "minecraft:recipes/root",
  "criteria": {
    "has_glass": {
      "conditions": {
        "items": [
          {
            "items": [
              "minecraft:purple_stained_glass"
            ]
          }
        ]
      },
      "trigger": "minecraft:inventory_changed"
    },
    "has_the_recipe": {
      "conditions": {
        "recipe": "minecraft:purple_stained_glass_pane"
      },
      "trigger": "minecraft:recipe_unlocked"
    }
  },
  "requirements": [
    [
      "has_glass",
      "has_the_recipe"
    ]
  ],
  "rewards": {
    "recipes": [
      "minecraft:purple_stained_glass_pane"
    ]
  }
}