{
    "criteria": {
      "has_lava_bucket": {
        "conditions": {
          "items": [
            {
              "items": "minecraft:lava_bucket"
            }
          ]
        },
        "trigger": "minecraft:inventory_changed"
      },
      "has_the_recipe": {
        "conditions": {
          "recipe": "minecraft:chainmail_leggings"
        },
        "trigger": "minecraft:recipe_unlocked"
      }
    },
    "requirements": [
      [
        "has_the_recipe",
        "has_lava_bucket"
      ]
    ],
    "rewards":{
        "recipes":[
            "minecraft:chainmail_leggings"
        ]
    }
}