{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:consume_item",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "head": {
                  "predicates": {
                    "minecraft:custom_data": "{armor:\"savanna_helmet\"}"
                  }
                }
              }
            }
          }
        ],
        "item": {
          "items": "#mt:gold_edibles"
        }
      }
    }
  },
  "rewards": {
    "function": "mt:items/food/gold_edibles"
  }
}
