{
  "criteria": {
    "craft_item_0": {
      "trigger": "minecraft:recipe_crafted",
      "conditions": {
        "recipe_id": "cake",
        "player": [
          {
            "condition": "entity_scores",
            "entity": "this",
            "scores": {
              "OverlyRealistic.Player.WisdomStats.Cookery": {
                "min": 5
              }
            }
          },
          {
            "condition": "random_chance",
            "chance": 0.15
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "craft_item_0"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/wisdom/cookery/actions/get_cake"
  }
}