{
  "parent": "minecraft:recipes/root",
  "criteria": {
    "has_recipe": {
      "conditions": {
        "items": [
          {
            "items": "compactmachines:wall"
          }
        ]
      },
      "trigger": "minecraft:inventory_changed"
    },
    "has_the_recipe": {
      "conditions": {
        "recipe": "compactmachines:new_machine_farming"
      },
      "trigger": "minecraft:recipe_unlocked"
    }
  },
  "requirements": [["has_the_recipe", "has_recipe"]],
  "rewards": {
    "recipes": ["compactmachines:new_machine_farming"]
  }
}
