[
  {
    "function": "minecraft:filtered",
    "item_filter": {
      "items": [
        "minecraft:crossbow",
        "minecraft:bow"
      ]
    },
    "on_pass": {
      "function": "minecraft:set_item",
      "item": "minecraft:warped_fungus_on_a_stick"
    }
  }
]