{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "offhand": {
            "predicates": {
              "minecraft:custom_data": {"cnk":{"cookbook":true}}
            }
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "mainhand": {
            "predicates": {
              "minecraft:custom_data": {"cnk":{"cookbook":true}}
            }
          }
        }
      }
    }
  ]
}