{
  "parent": "minecraft:recipes/root",
  "rewards": {
    "recipes": [
      "minecraft:yellow_carpet"
    ]
  },
  "criteria": {
    "has_yellow_wool": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
            "item": "minecraft:wool",
            "data": 4
          }
        ]
      }
    },
    "has_the_recipe": {
      "trigger": "minecraft:recipe_unlocked",
      "conditions": {
        "recipe": "yellow_carpet"
      }
    }
  },
  "requirements": [
    [
      "has_yellow_wool",
      "has_the_recipe"
    ]
  ]
}