[
  {
    "function": "minecraft:set_enchantments",
    "enchantments": {
      "minecraft:fortune": {
        "type": "minecraft:score",
        "target": "this",
        "score": "farmer.buffer"
      }
    }
  }
]
